<div dir="ltr"><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_extra"><br><div class="gmail_quote">On 26 February 2018 at 16:34, Dominic Raferd <span dir="ltr"><<a href="mailto:dominic@timedicer.co.uk" target="_blank">dominic@timedicer.co.uk</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I have now updated my 50-user.conf to this:<br>
$interface_policy{'10024'} = 'INCOMING';<br>
$policy_bank{'INCOMING'} = {<br>
<span class=""> whitelist_sender_maps => [ read_hash('/etc/amavis/<wbr>whitelist') ],<br>
</span>};<br></blockquote><div> </div></div></div><div class="gmail_extra"><div class="gmail_default" style="font-size:small">Note that this whitelisting technique works on the address given in the 'From:' header, not the envelope sender (aka Return-Path).</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">Each address in /etc/amavis/whitelist (one per line, comments and blank lines are ignored) can be whole email address, domain only, or domain preceded by dot in which case it matches emails from domain *and* any subdomains:</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small"># example amavis whitelist file</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small"><a href="mailto:amavis-users@amavis.org">amavis-users@amavis.org</a></div><div class="gmail_default" style="font-size:small">.<a href="http://currys.co.uk">currys.co.uk</a></div><div class="gmail_default" style="font-size:small"><a href="http://zpg.co.uk">zpg.co.uk</a></div><br></div><div class="gmail_extra"><div class="gmail_default" style="font-size:small">After updating the file you (probably - untested) have to reload amavis for it to take account of the changes. If you have systemd:</div><div class="gmail_default" style="font-size:small">systemctl reload-or-restart amavis</div><br></div></div>