<domain>
A signature has two name fields. d= is the key domain, taken from the domain-key declaration. i= is the signing identity, and it is set by this line. By default the node takes it from the Sender header, or from From if there is none.
Why it gets touched. Sending on behalf of a client: From has the client’s domain, but you have no key for that domain — the client controls it. By setting your own domain as the signing identity, you sign the message with your own key and your own DNS record, while From stays the client’s.
There is one restriction, and it is strict. The signing identity must match the key domain or be its subdomain. You can sign with your own domain, not with someone else’s.
The separate strict-from value requires an exact match of the domain from From: neither subdomains nor the Sender header take part in the key search anymore.
The default is almost always right. A signing identity from the headers is what the receiving server expects.
Your own domain — only when there is no key for the other one. And understanding the cost: the mismatch of d= with From is noticeable to the recipient.
strict-from narrows the key search. It is useful where subdomains must not be signed with the parent key — but it will also silently leave unsigned everything that did not match exactly.
# sending on behalf of a client: From has the client's domain, the signature is ours domain-key key1, esp456.com, /etc/pmta/key1.esp456.com.pem <domain yahoo.com> dkim-sign yes dkim-identity @esp456.com</domain>
what people get wrong and how it ends3 mistakes▶
§ 3.3.10.27
our experience
§ 3.3.10.27
2 relations
pmta show settings yahoo.com/vmta1 | grep -i dkim-identity grep -i 'DKIM-Signature' /var/log/pmta/pmta.log | tail -3
3 articles
◇A license for a fleet, not for a serverThe license is not bound to a server: it is installed on as many machines as the instance limit allows, and the nodes send volume statistics to the vendor every hour.◇How the node selects a source and combines its settingsA connection falls under all source blocks whose addresses cover it, and they act merged — the narrow one overrides the wide one; named blocks are attached only by direct reference.◇Address lists — named and unnamedA list of addresses, domains, patterns or hashes; a named one is attached by directives such as suppression, an unnamed one lives inside an inbound mail processor.