Re: Whitelisting mail servers

Nikolaos Milas <[email protected]>
Newsgroups gmane.mail.virus.amavis.user
Organization National Observatory of Athens
Message-ID <[email protected]>
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 
"client_ip_whitelist":

    10.20.30.40
    10.20.30.50
    10.20.30.60
    ...

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

    example.com
    example.net
    example.org
    ...

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 
well?

Thanks a lot,
Nick
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.