Skip to content
Module 10 · Lesson 21 of 26

Outbound DKIM with Rspamd

Part of Mailcow: Self-Hosted Mail Server Mastery, in the Anti-Spam + SPF/DKIM/DMARC in Mailcow module.

Author

Rspamd signs every outbound message that matches a configured DKIM key for the From domain.

Setup flow:

  1. UI → Email → Configuration → ARC/DKIM keys → Add (domain, selector, 2048-bit).
  2. Mailcow shows the DNS TXT to publish. Paste into your DNS host.
  3. Wait for propagation (1–10 min for most providers).
  4. Send a test to check-auth@verifier.port25.com and confirm dkim=pass.

Common gotchas:

  • Selector mismatch: the selector in DNS (s2025._domainkey) must match the one in Mailcow exactly.
  • Multiple keys: Rspamd will sign with all matching keys. Rotate by adding new selector first, waiting 48 h, then removing old.
  • Long DNS records: 2048-bit keys exceed 255 chars and must be split into multiple strings. Most DNS hosts handle this automatically.

ARC sealing: enable dkim_signing.conf with sign_authenticated = true; arc = true; so forwarded mail keeps its original auth chain.

Sign in to keep track of what you have read.

Pulse · email sending

Sending infrastructure that is yours alone.

Every domain gets its own MX host, IP, DKIM selector and certificate. Take it managed, and we run it for you, or buy a licence and run it on your own servers.

# on a fresh Ubuntu server
$ cd pulse && sudo ./install.sh
→ docker compose up · kumomta · stalwart · caddy
→ dashboard ready on https://pulse.yourdomain.com
$

Also from us:Beat: monitoring that tells you the fixConsulting: $65/hr, no retainer