Module 10 · Lesson 21 of 26

Outbound DKIM with Rspamd

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

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 · self-hosted sending

Own the infrastructure your pipeline depends on.

One install script on your own server. Pulse sets up the MTA, mailboxes, certificates and dashboard; you add domains and start sending.

# 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