<div dir="ltr"><div>hi, in our amavis we need to sign DKIM for a few domains using corresponding keys, AND also need to use one key to sign for some other domains. As I can collect, the relevant conf could look like:</div><div><pre><code>dkim_key('<a href="http://domain1.com">domain1.com</a>', "dkim", "/var/lib/dkim/domain1.com.pem");
</code><code><code><code><code>dkim_key('<a href="http://domain2.com">domain2.com</a>', "dkim", "/var/lib/dkim/domain2.com.pem");
</code></code></code></code><code><code><code><code><code><code><br>dkim_key('<a href="http://others.com">others.com</a>', "dkim", "/var/lib/dkim/others.com.pem");
</code></code></code></code></code>
@dkim_signature_options_bysender_maps = ( {
"." => { d => "<a href="http://others.com">others.com</a>", a => 'rsa-sha256', ttl => 10*24*3600 },
});<br></code></pre><pre><code>In my understanding the above would:<br></code></pre><pre><code>* sign <a href="http://domain1.com">domain1.com</a> using that <a href="http://domain1.com">domain1.com</a> key<br>* sign <a href="http://domain2.com">domain2.com</a> using that <a href="http://domain2.com">domain2.com</a> key<br></code></pre><pre><code>* sign domainX.com using that <a href="http://others.com">others.com</a> key<br>* sign domainY.com using that <a href="http://others.com">others.com</a> key<br></code></pre><pre><code>Is that true?<br></code></pre><pre><code>I can't find doc that definitely support the above, can someone point me to the right link?<br><br><a href="https://www.ijs.si/software/amavisd/amavisd-new-docs.html">https://www.ijs.si/software/amavisd/amavisd-new-docs.html</a> appears to suggest that although I'm not quite sure.<br></code></pre><pre><code>How to make sure <a href="http://others.com">others.com</a> key is NOT used to sign for domain <a href="http://domain1.com">domain1.com</a> ? As that will create big chaos for the existing domain.<br><br></code></pre><pre><code>Thanks!<br></code></pre></div></div>