Re: [exim] OT: DKIM - but nothing to do with Exim!

Top Page

Reply to this message
Author: Luca Bertoncello
To: exim-users
Subject: Re: [exim] OT: DKIM - but nothing to do with Exim!
Ron White <> schrieb:

> Now, another domain comes on stream with this shared MTA - say
> 'anotherdomain.null'. How can this ever send mail that is DKIM signed
> when the private key is for somehosting.null?
> Obviously I'm missing something really obvious here in my understanding.
> Can anyone put me out of my misery?

Hi, Ron!

I can't say you how to do that with other MTAs as Exim, but with Exim is
really simple!
This is my configuration (just the part used to send out E-Mails):


  driver = dnslookup
  transport = ${if exists {/etc/exim/domainKeys/$sender_address_domain}
                     {remote_smtp_DK} {remote_smtp}}
  domains = !+local_domains

# Transport for sender domains WITHOUT DomainKeys
driver = smtp

# Transport for sender domains WITH DomainKeys
driver = smtp
dkim_canon = relaxed
dkim_domain = $sender_address_domain
dkim_selector = ${substr{0}{4}{$tod_zulu}}
dkim_private_key = /etc/exim/domainKeys/$dkim_domain/$dkim_selector.priv

Now, in /etc/exim/domainKeys I have many directories, with the name of the
domain on my server that use DKIM to sign outgoing E-Mails (for example, and so on).
Et voila! The E-Mail from something@??? will be signed with the DKIM
for, the E-Mail from someotherthing@??? (other domain on
my server) will be signed with the DKIM for

Really simple, isn't it? :)

Luca Bertoncello