DKIM keys for specific domains + multiple domains

John Luk john.luk98 at
Tue Mar 26 19:42:45 CET 2019

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:

dkim_key('', "dkim",
"/var/lib/dkim/");dkim_key('', "dkim",
dkim_key('', "dkim", "/var/lib/dkim/");
@dkim_signature_options_bysender_maps = ( {
    "."  => { d => "", a => 'rsa-sha256', ttl => 10*24*3600 },

In my understanding the above would:

* sign using that key
* sign using that key

* sign using that key
* sign using that key

Is that true?

I can't find doc that definitely support the above, can someone point
me to the right link? appears to
suggest that although I'm not quite sure.

How to make sure key is NOT used to sign for domain ? As that will create big chaos for the existing domain.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the amavis-users mailing list