[exim] Dkim + From + Sender

Top Page
Delete this message
Reply to this message
Author: technique@dreamhosting.fr
Date:  
To: Exim-users
Subject: [exim] Dkim + From + Sender
Hi

Actually, I have in exim.conf :

DKIM_DOMAIN = ${lc:${domain:$h_from:}}
DKIM_FILE = /etc/dkim/${lc:${domain:$h_from:}}.pem
DKIM_PRIVATE_KEY = ${if exists{DKIM_FILE}{DKIM_FILE}{0}}

I want to do :
How to detect DKIM from $h_sender, if no DKIM with $h_from ?

So something like....
if DKIM_PRIVATE_KEY==0
{
DKIM_DOMAIN = ${lc:${domain:$h_sender:}}
DKIM_FILE = /etc/dkim/${lc:${domain:$h_sender:}}.pem
DKIM_PRIVATE_KEY = ${if exists{DKIM_FILE}{DKIM_FILE}{0}}
}

or like ...
DKIM_DOMAIN = ${lc:${domain:$h_from:}}
DKIM_FILE = /etc/dkim/${lc:${domain:$h_from:}}.pem
DKIM_PRIVATE_KEY = ${if exists{DKIM_FILE}{DKIM_FILE}{DKIM_DOMAIN =
${lc:${domain:$h_sender:}}
DKIM_FILE = /etc/dkim/${lc:${domain:$h_sender:}}.pem
DKIM_PRIVATE_KEY = ${if exists{DKIM_FILE}{DKIM_FILE}{0}}}}


What would be the good syntax ?


Best regards
--
http://dreamhosting.fr, hébergeur discount.
http://dreamad.org, régie pub.
MSN :dreamhosting@???
Skype : admin@???
Tél : 0960538133
Fax : 0972127568