Re: proper syntax for SenderHeaders in opendkim.conf
On Wed, 15 Apr 2015, Arnoldas Brazys wrote:
> I didn't get it. How do I sign emails based on Sender header (on behalf),
> wildcard does not fit, as I have a lot of keys in my opendkim setup. I need
> opendkim to use correct key/domain what is in Sender header.
>
> In v2.9.0 I am happy with using this:
> SenderHeaders Sender,From
>
> As "SenderHeaders" is deprecated in 2.10
> How do I correctly convert to newest version?
You would use the Lua hooks to do this now. The man page for
opendkim-lua(3) should have the information you need to set this up, but
basically you would write a script that pulls out the Sender header field,
then makes a signing request based on what's in there. This would need to
be referenced as the "setup" Lua script. So:
sender = odkim.get_header(ctx, "Sender", 0)
[whatever logic you want here, then]
odkim.sign(ctx, name-of-key-to-use)
The "name-of-key-to-use" is expected to be a name that appears in your
KeyTable.
-MSK
Received on Sun Apr 19 2015 - 04:41:18 PST
This archive was generated by hypermail 2.3.0
: Sun Apr 19 2015 - 04:45:01 PST