raphting.dev

Remove Elliptic Curve from DKIM

Yesterday I explained which challenges the email community faces, especially self-hosters, in the light of the latest push to Post Quantum Cryptography (PQC).

If you use Stalwart, under Settings -> Outbound -> Sender Authentication -> DKIM -> DKIM Signing, you can remove ed25519 signatures. I stopped signing my outgoing mails with ed25519 (but keep RSA signatures active). I’ll wait 7 days. Then remove the ed25519 public keys from DNS. Changing DNS later will prevent slowly traveling mails from arriving with an unverifiable signature.

I also removed prepared code for DKIM ed25519 signing in Postern, the Mail Delivery Agent I wrote. Postern defaults to 2048-bit RSA signatures. The code I removed existed to enable ed25519 signing one day. This unused code became obsolete now.

Postern also already signs emails with DKIM2 and RSA 2048-bit. I don’t want to rush things here. In the coming days I will check if and how I can enable PQC for DKIM2 in Postern, and I will also check if 4096-bit signatures should become the new default.

By Raphael Sprenger