Re: custom reject message in smtp-dialog

Damian <[email protected]>
Newsgroups gmane.mail.virus.amavis.user
Message-ID <[email protected]>
> usually when amavisd-new rejects mail as pre-queue filter, the 
> smtp-dialog-message is like "554 5.7.0 Reject, id=13158-01 - spam"
>
> I would like to customize the message, if the Spamassssin-Rule 
> SPF_FAIL triggers, e.g.
> "554 5.7.0 Reject, id=13158-01 - SPF Failure ; Please contact your 
> administrator"
>
> or on any other custom message on any other custom spamassassin-rule.
>
> How can i achieve this? 

Try this:

> $smtp_reason_by_ccat{&CC_SPAM} = '[~[:TESTS]|SPF_FAIL|SPF Failure ; 
> Please contact your administrator|spam]';
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.