<div dir="ltr"><br><div class="gmail_extra"><div class="gmail_quote"><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail_quote">
<br>
but somehow amavis is ignoring the bypass_header_checks_maps for $policy_bank{'MYNETS'}<br>
<br>
anymore ideas to get things working would be awesome ;)<br>
<br><div><div><br>
<blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail_quote">
<br></blockquote></div></div></blockquote><div> do you have these lines<br><br> <br> $mydomain = '<a target="_blank" href="http://yourdomain.com">yourdomain.com</a>'; # a convenient default for other settings <br><br><br> $notify_method = 'smtp:[127.0.0.1]:10025';<br> $forward_method = 'smtp:[127.0.0.1]:10025'; # set to undef with milter! <br><br><br><br></div><div>in addition to that , if you want to bypass spam checks based on sender you can add this to amavisd.conf file<br><br><br> @whitelist_sender_maps = read_hash("$MYHOME/white.lst")<wbr>;<br><br><br>in white.lst file , you can add your domain and other trusted domains line by line.<br><br>you can have black.lst as well. <br><br> @blacklist_sender_maps = read_hash("$MYHOME/black.lst")<wbr>;<br><br><br></div><div>Anther example. ( I have NOT DONE it. I saw this in the internet.<br><br></div><div>source. - <a target="_blank" href="http://www.iredmail.org/forum/topic4681-iredmail-support-solved-how-to-bypass-amavisd-for-some-senders.html">http://www.iredmail.org/forum/<wbr>topic4681-iredmail-support-<wbr>solved-how-to-<span class="gmail-il">bypass</span>-amavisd-<wbr>for-some-senders.html</a></div><div><br><p><b>1) I created the file /etc/amavisd/whitelist</b><br>where I inserted the addresses of the senders that I wanted to whitelist, one per line.<br>it works also for whole domains (but without the @)<br>Example:<br></p><div><pre><code><a target="_blank" href="mailto:user1@example.com">user1@example.com</a>
<a target="_blank" href="mailto:user2@example.org">user2@example.org</a>
<a target="_blank" href="http://example.net">example.net</a>
<a target="_blank" href="http://example.eu">example.eu</a></code></pre></div><br><p><b>2) in /etc/amavisd/amavisd.conf I decommented AND modified the following section:</b></p><div><pre><code># This policy will perform virus <span>checks</span> only.
read_hash(\%whitelist_sender, '/etc/amavisd/whitelist');
@whitelist_sender_maps = (\%whitelist_sender);
$interface_policy{'10026'} = 'VIRUSONLY';
$policy_bank{'VIRUSONLY'} = { # mail from the pickup daemon
bypass_spam_checks_maps => ['@whitelist_sender_maps'], # don't spam-check this mail
bypass_banned_checks_maps => ['@whitelist_sender_maps'], # don't banned-check this mail
<span>bypass_header_checks_maps</span> => ['@whitelist_sender_maps'], # don't <span>header</span>-check this mail
};</code></pre></div><br></div><div><br><br><br><br> <br></div><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail_quote"><div><div><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail_quote">
<br>
<br>
<br>
<br>
<br>
-- <br>
cat /etc/motd<br>
<br>
Thank you<br>
Indunil Jayasooriya<br>
<a target="_blank" rel="noreferrer" href="http://www.theravadanet.net/">http://www.theravadanet.net/</a><br>
<a target="_blank" rel="noreferrer" href="http://www.siyabas.lk/sinhala_how_to_install.html">http://www.siyabas.lk/sinhala_<wbr>how_to_install.html</a> - Download Sinhala Fonts<br>
<br>
</blockquote>
<br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br><div><div dir="ltr">cat /etc/motd<br><br>Thank you<br>Indunil Jayasooriya <br><a target="_blank" href="http://www.theravadanet.net/">http://www.theravadanet.net/</a><br><a target="_blank" href="http://www.siyabas.lk/sinhala_how_to_install.html">http://www.siyabas.lk/sinhala_<wbr>how_to_install.html</a> - Download Sinhala Fonts<br><br></div></div>
</div></div>