<domain>
The usual behavior when no key is found is to send the message without a signature. This line offers a third way: if no key was found for the main signing name, take the fallback name and sign with it.
There is one clear scenario: a mixed stream. Some clients have given you keys for their domains, some have not. For the first, the message is signed with their key; for the second, with yours, instead of going out bare.
It works only together with dkim-identity — the manual says so directly. Without a main signing name, the fallback has nothing to fall back from.
Set a domain you have a key for. The fallback name follows the same rule: it must match the domain of some declaration or be its subdomain.
Watch the share. A growing number of messages signed with the fallback name means someone’s keys are no longer being found — a reason to investigate, not to rejoice.
Without dkim-identity the line does not work. This is a requirement of the manual, not a recommendation.
# the client's key was not found — we sign with our own instead of sending bare domain-key key1, esp456.com, /etc/pmta/key1.esp456.com.pem <domain yahoo.com> dkim-sign yes dkim-identity sender-or-from dkim-identity-fallback @esp456.com</domain>
what people get wrong and how it ends2 mistakes▶
§ 3.3.10.28
our experience
1 relation
pmta show settings yahoo.com/vmta1 | grep -i identity grep -i 'DKIM-Signature' /var/log/pmta/pmta.log | tail -3
3 articles
◇Do not send what will fail the check at the receiverThe node checks the SPF of its own mail before sending: if it fails, it bounces the message without waiting for someone else’s refusal.◇How the node signs messages and chooses a keyThe key is chosen by the sending domain from the headers, going through the declarations from top to bottom.◇A message header with which the submitting side adjusts the signatureFive parameters in X-DKIM-Options: selector, domain, signing identity, query method and key list.