Menu

#440 Usermin autoreply.pl doesn't always ignore spam

1.090
closed-fixed
autoreply (1)
5
2015-09-23
2015-06-02
No

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

Discussion

  • Jamie Cameron

    Jamie Cameron - 2015-06-03
    • status: open --> closed-fixed
     
  • Jamie Cameron

    Jamie Cameron - 2015-06-03

    Thanks - I will include this in the next Usermin release.

     
  • Matus UHLAR - fantomas

    Hello, unfortunately this hits when the X-Spam-Flag header contains "No." which it does here because of amavis.

     

Log in to post a comment.

MongoDB Logo MongoDB