[exim] Dkim + From + Sender

Page principale
Supprimer ce message
Répondre à ce message
Auteur: technique@dreamhosting.fr
Date:  
À: Exim-users
Sujet: [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