<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<div class="moz-cite-prefix"><font face="monospace">On 7/12/2022
6:17 μ.μ., Patrick Ben Koetter wrote:<br>
</font></div>
<blockquote type="cite"
cite="mid:20221207161736.s5xxuiftgubq2quv@sys4.de">
<blockquote type="cite" style="color: #007cff;">
<pre class="moz-quote-pre" wrap="">If I don't understand right, please correct me.
</pre>
</blockquote>
<pre class="moz-quote-pre" wrap="">I did. Was it understandable?</pre>
</blockquote>
<p><font face="monospace">Perfectly so! Thank you!</font></p>
<p><font face="monospace">Would it also be possible to load these
exceptions (for @client_ipaddr_policy and
@author_to_policy_bank_maps) from file?</font></p>
<p><font face="monospace">For example we could have a file with ip
addresses named "client_ip_whitelist": <br>
</font></p>
<blockquote><font face="monospace">10.20.30.40<br>
10.20.30.50<br>
10.20.30.60 <br>
...<br>
</font></blockquote>
<p><font face="monospace">and a file for DKIM-signed domains named
"dkim_whitelist": <br>
</font></p>
<blockquote>
<p><font face="monospace">example.com<br>
example.net<br>
example.org<br>
...</font></p>
</blockquote>
<p><font face="monospace">Would it be possible to load them into
@client_ipaddr_policy and @author_to_policy_bank_maps
respectively? How?</font></p>
<font face="monospace">I guess the latter could probably be done
like:</font>
<blockquote>
<p><font face="monospace">read_hash(\%whitelist_dkim_domain,
'/etc/amavisd/</font><font face="monospace"><font
face="monospace">dkim_whitelist</font>');<br>
</font><font face="monospace"><font face="monospace">@author_to_policy_bank_maps</font>
= (\%whitelist_dkim_domain);<br>
</font></p>
</blockquote>
<p><font face="monospace">Would that work?<br>
</font></p>
<p><font face="monospace">The former seems more tricky. Any
suggestions to read ip addresses from file into </font><font
face="monospace"><font face="monospace">@client_ipaddr_policy</font>?
Would the list accept IPv6 addresses as well?<br>
</font></p>
<p><font face="monospace"></font></p>
<p><font face="monospace">Thanks a lot,<br>
Nick<br>
</font></p>
<p>
</p>
</body>
</html>