Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: missing edit-log entry for this revision

...

(EditHint: Are you saying don't bounce at all ? Or is there an envelope-from that's different from the "From:" in the subject line that I *can* bounce to ?)

Here's a recipe that I use with qmail and maildrop (if you use e.g. sendmail and procmail instead, it will not work) to delete and bounce all spam messages:

{{{$ cat .qmail

/var/qmail/bin/preline /usr/local/bin/maildrop
$ cat .mailfilter exception {
xfilter "/usr/bin/spamassassin"
}
if (/^X-Spam-Flag: *YES/)
{
echo "This message has been blocked as spam."
EXITCODE=100
exit
} }}}

This recipe is for one of my users who is drowning in hundreds of spam messages per day, and thus does not have time to weed through a spam folder. In case someone sends a legitimate message to her and it gets flagged as spam, they will receive a bounce message and thus be aware of the situation.