<div dir="ltr"><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_extra"><br><div class="gmail_quote">On 28 April 2017 at 11:34, Simon Wilson <span dir="ltr"><<a href="mailto:simon@simonandkate.net" target="_blank">simon@simonandkate.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi all,<br>
<br>
I have pflogsumm running log summaries on my postfix install, and sending to an address that resolves locally. All is on localhost, which is a newly installed CentOS7 server, amavisd-new 2.10.1 from EPEL.<br>
<br>
The pflogsumm emails from root are triggering BAYES_99 as they go through amavisd-new and spamassassin, and are often ending up marked as spam.<br>
<br>
What's the best way to ensure that those are not flagged as spam, or potentially to whitelist them somehow?</blockquote><div><br></div><div class="gmail_default" style="font-size:small">You can whitelist sender addresses, would this solve your problem? I have these lines in /etc/amavis/conf.d/50-user​:</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default"><div class="gmail_default" style="font-size:small">read_hash(\%whitelist_sender, '/etc/amavis/whitelist');</div><div class="gmail_default" style="font-size:small">@whitelist_sender_maps = (\%whitelist_sender);</div><div class="gmail_default" style="font-size:small">    bypass_spam_checks_maps   => ['@whitelist_sender_maps'],  # don't spam-check this mail</div><div class="gmail_default" style="font-size:small">    bypass_banned_checks_maps => ['@whitelist_sender_maps'],  # don't banned-check this mail</div><div class="gmail_default" style="font-size:small">    bypass_header_checks_maps => ['@whitelist_sender_maps'],  # don't header-check this mail</div><div style="font-size:small"><br></div><div>File /etc/amavis/whitelist contains a line-by-line list of whitelisted addresses. To whitelist a whole domain, just precede with a dot. Examples:</div><div><br></div><div><a href="mailto:fred@bloggs.com">fred@bloggs.com</a></div><div>.<a href="http://spammers-united.com">spammers-united.com</a></div><div><br></div><div>HTH, Dominic</div></div></div></div></div>