testing Amavisd results by command-line with a source message
Noel Jones
njones at megan.vbhcs.org
Mon Apr 18 20:06:09 CEST 2011
On 4/18/2011 12:22 PM, david touzeau wrote:
> Le lundi 18 avril 2011 à 06:16 -0500, Noel Jones a écrit :
>> On 4/18/2011 4:29 AM, david touzeau wrote:
>>> Dear all
>>> Is there a tool or a command line in order to test amavisd results by
>>> giving a source message in the same way of spamassassin (eg spamassassin
>>> -D< /tmp/message.txt ?
>>>
>>> best regards
>>>
>>>
>>
>> amavisd doesn't have a "test mode", but you can manually
>> inject messages using a command-line SMTP tool such as
>> mini_sendmail. Something like:
>>
>> (on one line in case it gets mangled in transmission)
>> mini_sendmail -p10025 -f sender at example.com
>> recipient at example.org< testmail
>>
>> where testmail is a rfc822 message.
>>
>>
>> -- Noel Jones
>>
>
> Thanks but the goal is to analyze/traps debug results in order to verify
> rules without sending the message trough the MTA process.
>
>
>
... but since that isn't possible, the next best thing is to
send a test message to a known recipient outside of the normal
MTA channel.
If you're wanting to test spamassassin results, use the
existing SA tools.
-- Noel Jones
More information about the amavis-users
mailing list