Work experience |

 Your Ad Here

Adding email to amavisd spam scan whitelist |


Recently, I got email from one site admins. Problem was, that their automaticaly generated e-mails didn't reach our mail server. After log checking I found problem:
Jan 24 10:09:57 mail amavis[6759]: (06759-06) Checking: <email@from.dom> -> <email@to.dom> Jan 24 10:09:58 mail amavis[6759]: (06759-06) spam_scan: hits=-3.835 tests=BAYES_00,HTML_30_40,HTML_MESSAGE,HTML_TAG_EXISTS_TBODY Jan 24 10:09:58 mail amavis[6759]: (06759-06) FWD via SMTP: [127.0.0.1]:10025 <email@from.dom> -> <email@to.dom>

As you can see, amavis spam scan detected those emails as spam messages. Simplest sollution was to add their host to whitelist there is fragment from /etc/amavisd.conf

# $whitelist_sender{''} = 1; # don't spam-check MTA bounces map { $whitelist_sender{lc($_)}=1 } (qw( nobody@cert.org slashdot@slashdot.org bugtraq@securityfocus.com ... email@from.dom ));


Comments:


Name:
captcha