Re: [exim] Exim, DKIM and DomainKeys - possible?

Top Page

Reply to this message
Author: Mike Cardwell
To: exim-users
Subject: Re: [exim] Exim, DKIM and DomainKeys - possible?
Tomasz Chmielewski wrote:

> Is it possible to set up Exim to sign outgoing emails with both DKIM and DomainKeys?

I think there's a patch for it, but it's not in the latest stable
release yet. In the mean time, I've achieved this by configuring exim to
sign the message with domainkeys, then reconnect back to it's self to
route the message a second time, whist signing with dkim. Not ideal, but
it works.

dnslookup uses remote_smtp which does the dkim signing. Before the
dnslookup router I have:

  driver              = manualroute
  domains             = ! +local_domains
  condition           = ${if eq{$h_Grepular-DK-Signed:}{}}
  headers_add         = Grepular-DK-Signed: $tod_epoch
  transport           = remote_dk_smtp
  route_list          = * ""
  self                = send

And the transport:

  driver             = smtp
  dk_selector        = dk1
  dk_private_key     = /etc/exim4/dk/
  dk_canon           = nofws
  dk_strict          = false