We have users using the simple autoreply process for vacation notices. This sets up using the /etc/usermin/forware/autoreply.pl script in the user's procmailrc to manage handling automated replies.
We've found that this process seems to be ignoring the "x-spam-flag" header flag, set by spamassassin through another process on a different server.
In order to mitigate processing spam messages as auto-replies, we have added the following code to the autoreply.pl script. Hopefully, this can get added into future releases :)
We added this code around line 60, just before other header checks. If the header exists, it's spam and we don't want to attempt auto replies for it.
if ($header{'x-spam-flag'}) {
print STDERR "Cancelling autoreply - message already marked as spam\n";
exit 0;
}
Thanks for your product!
Regards,
M. Huttinger
Thanks - I will include this in the next Usermin release.
Hello, unfortunately this hits when the X-Spam-Flag header contains "No." which it does here because of amavis.