On Jan 2, 2015, at 2:28 AM, LinuxAdmin <[email protected]> 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/




-- 
## List details at https://lists.exim.org/mailman/listinfo/exim-users
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/

Reply via email to