Re: [exim] DKIM Signing while send mail from subdomain

Etusivu
Poista viesti
Vastaa
Lähettäjä: Robert Blayzor
Päiväys:  
Vastaanottaja: LinuxAdmin
Kopio: exim-users
Aihe: Re: [exim] DKIM Signing while send mail from subdomain
On Jan 2, 2015, at 2:28 AM, LinuxAdmin <linuxadm@???> wrote:
>
> DKIM_DOMAIN = ${lc:${domain:$h_from:}}
>
> remote_smtp:
> driver = smtp
> interface = ${if exists {/etc/exim/mailips}{${lookup{DKIM_DOMAIN}lsearch{/etc/exim/mailips}{$value}{}}}{}}
> dkim_domain = DKIM_DOMAIN
> dkim_selector = dkim
> dkim_private_key = /etc/exim/domain_key.private
> dkim_canon = relaxed



This may work for you:

DKIM_DOMAIN = ${lc:${if match{$sender_address_domain}{\N([^\.]+\.[^\.]+)$\N}{$1}}}


That should strip away the sub domains and use only the main domain...

--
Robert
inoc.net!rblayzor
http://inoc.net/