<domain>
Sets the signature algorithm. There are two values: rsa-sha256 — the default, and rsa-sha1 — a historical one.
There is nothing to choose here. The sha1 hash function is recognized as unfit for signatures: practical collisions have been demonstrated for it, and mail standards have forbidden it in DKIM. Large receivers either do not verify such a signature at all or consider it invalid.
The line remains for compatibility with old configurations. It should not be in a new one.
Leave the default. There is no other usable value.
Check inherited configurations. A line with rsa-sha1 moves over silently and devalues the signature.
Key length matters more than the algorithm. Keys shorter than 1024 bits are already rejected by some receivers; when generating, take 2048.
# the line should not be here; it is shown because it gets removed <domain *> dkim-algorithm rsa-sha256</domain>
what people get wrong and how it ends2 mistakes▶
our experience
our experience
1 relation
dkim-sign<domain>Does nothing until signing is enabled. § 3.3.10.21
pmta show settings gmail.com/vmta1 | grep -i dkim-algorithm 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.