Mailcow Anti-Spam Tuning

Tune Rspamd and greylisting to reduce spam on your Mailcow mail server.

Category: Mailcow

Access Rspamd Web UI

Navigate to https://mail.yourdomain.com/rspamd. Login with the password in mailcow.conf (RSPAMD_PASSWORD).

Tune Spam Score Thresholds

# Edit Rspamd actions config
sudo nano /opt/mailcow-dockerized/data/conf/rspamd/override.d/actions.conf
actions {
  reject = 15;
  add_header = 6;
  greylist = 4;
}

Whitelist a Sender

# Add to whitelist
echo "trusted@example.com" >> /opt/mailcow-dockerized/data/conf/rspamd/custom/whitelist_sender.map
docker compose exec rspamd-mailcow rspamadm reload

Train Spam/Ham Filters

Use the Rspamd web UI to train the Bayes filter by marking messages as spam or ham. This improves accuracy over time.

Check Greylisting

# View greylist status
docker compose exec rspamd-mailcow rspamadm greylisting -l