On 26 February 2018 at 16:34, Dominic Raferd <[email protected]>
wrote:

> I have now updated my 50-user.conf to this:
> $interface_policy{'10024'} = 'INCOMING';
> $policy_bank{'INCOMING'} = {
>   whitelist_sender_maps => [ read_hash('/etc/amavis/whitelist') ],
> };
>

Note that this whitelisting technique works on the address given in the
'From:' header​, not the envelope sender (aka Return-Path).

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:

# example amavis whitelist file

[email protected]
.currys.co.uk
zpg.co.uk

​After updating the file you (probably - untested) have to reload amavis
for it to take account of the changes.​ If you have systemd:
systemctl reload-or-restart amavis

Reply via email to