Skip to content
Module 5 · Lesson 12 of 26

Safe customization with local.d overrides

Part of Mailcow: Self-Hosted Mail Server Mastery, in the Rspamd Tuning module.

Author

Never edit files in /override/rspamd/override.d/, since those are version-pinned. Use /data/conf/rspamd/local.d/ for additions and /override.d/ for full replacements.

Common edits:

In local.d/actions.conf, adjust thresholds:

reject = 18;
add_header = 7;
greylist = 5;

In local.d/multimap.conf, block a sender domain:

SENDER_BLOCKLIST {
  type = "from";
  filter = "email:domain";
  map = "/etc/rspamd/custom/sender_blocklist.map";
  symbols_set = ["BAD_DOMAIN"];
  score = 15.0;
}

In local.d/dkim_signing.conf, add an ARC sign requirement for forwarded mail.

After editing, restart:

docker compose restart rspamd-mailcow

⚠️ Don't disable greylisting. It's the single biggest spam reducer in the stack, and Mailcow's implementation only defers once and remembers good 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