Skip to content
Module 6 · Lesson 13 of 25

Alignment is the only thing that matters

Part of KumoMTA: High-Volume Sending Engine, in the DKIM Signing, SPF & DMARC Alignment module.

Author

SPF check is on MAIL FROM (envelope/Return-Path). DKIM check is on the d= tag in the signature. DMARC enforces that at least one of those matches the visible From: header domain.

Practical rule: for full DMARC alignment, set:

KumoMTA controls Return-Path via:

kumo.on('smtp_server_message_received', function(msg)
  msg:set_meta('queue', msg:recipient():host())
  msg:set_meta('routing_domain', msg:recipient():host())
  -- Use VERP for bounce attribution
  local vrp = 'bounce+' .. msg:id() .. '@bounce.example.com'
  msg:set_meta('return_path', vrp)
end)

Publish:

example.com         IN TXT "v=spf1 include:_spf.example.com -all"
_spf.example.com    IN TXT "v=spf1 ip4:198.51.100.0/29 -all"
bounce.example.com  IN TXT "v=spf1 ip4:198.51.100.0/29 -all"

example.com         IN TXT "v=DMARC1; p=reject; rua=mailto:dmarc@example.com; sp=reject;"

Without alignment, you fail DMARC even with passing SPF+DKIM. This is the #1 misconfiguration for new senders.

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