Whitelisting mail servers

Nikolaos Milas nmilas at noa.gr
Wed Dec 7 22:16:27 CET 2022

On 7/12/2022 6:17 μ.μ., Patrick Ben Koetter wrote:
>> If I don't understand right, please correct me.
> I did. Was it understandable?

Perfectly so! Thank you!

Would it also be possible to load these exceptions (for 
@client_ipaddr_policy and @author_to_policy_bank_maps) from file?

For example we could have a file with ip addresses named 

and a file for DKIM-signed domains named "dkim_whitelist":


Would it be possible to load them into @client_ipaddr_policy and 
@author_to_policy_bank_maps respectively? How?

I guess the latter could probably be done like:

    read_hash(\%whitelist_dkim_domain, '/etc/amavisd/dkim_whitelist');
    @author_to_policy_bank_maps = (\%whitelist_dkim_domain);

Would that work?

The former seems more tricky. Any suggestions to read ip addresses from 
file into @client_ipaddr_policy? Would the list accept IPv6 addresses as 

Thanks a lot,
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.amavis.org/pipermail/amavis-users/attachments/20221207/30af5988/attachment.htm>

More information about the amavis-users mailing list