Amavisd-new DKIM question

Discussion in 'Installation/Configuration' started by michu83, Jul 29, 2014.

  1. michu83

    michu83 New Member

    Hi,

    I was googling a lot and I can't find the solution.
    I need enable DKIM signing in amavisd-new, BUT only for few domains.

    Is that possible ? All tutorials say that I need configure dkim_key() for each domain. What if I ignore dkim_key() specified domains, but I add @dkim_signature_options_bysender_maps = ( { '.' => { ttl => 21*24*3600, c => 'relaxed/simple' } } );

    Would it work ?

    It must be done, because two of my domains send mails from other MTAs unfortunately not administered by us. It's hosted service that sends via local MTA without any possibility to configure it in other way (application uses php mail()) :/ We currently control it via SPF records, but it would be nice to enable DKIMs for other domains.

    Regards,
    Mike
     
  2. florian030

    florian030 Well-Known Member HowtoForge Supporter

    as long as you have no dkim_key for a domain in your amavis-config, amavis can´t sign mails for this domain. there is no need for a dkim_key for every domain.
     
  3. michu83

    michu83 New Member

    Hi Florian,

    Thank you very much for your response.

    But how about:
    @dkim_signature_options_bysender_maps = ( { '.' => { ttl => 21*24*3600, c => 'relaxed/simple' } } );
    This is catch-all configuration. If I understand you correct this will have no effect as long as dkim_key entry does not exist for domain. Is that true ?

    Regards,
    Mike
     
  4. florian030

    florian030 Well-Known Member HowtoForge Supporter

    You´re right.
     
  5. michu83

    michu83 New Member

    Now things are more clear. Thank you very much for help.
    Have a nice day.

    Regards,
    Mike
     

Share This Page