amavisd-new: disable e-mail filtering per destination domain

Testing SPAM filtering from shell

echo "XJS*C4JDBQADN1.NSBN3*2IDNEN*GTUBE-STANDARD-ANTI-UBE-TEST-EMAIL*C.34X" | mail -s Spam_test danman@example.com

Disable filtering for example.com

add following lines to /etc/amavis/conf.d/50-user (don’t forget the dot before domain, it has to be there):

@bypass_spam_checks_maps = (
[".example.com"],
);

@spam_lovers_maps = (
[".example.com"],
);

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.