On Mon, Aug 27, 2012 at 12:31 AM, technique@???
<technique@???> wrote: > 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}}
> }
For clarity and ease of reading, I like the first version better,
shown above. You can glance at it and say, "It didn't find a key
using the header from, so we'll repeat the dkim lookup steps using the
envelope sender".
...Todd
--
The total budget at all receivers for solving senders' problems is $0.
If you want them to accept your mail and manage it the way you want,
send it the way the spec says to. --John Levine