A client’s monthly newsletter goes out and half the internal staff get it tagged [SPAM] in the subject, or it bounces with a score-based rejection. The newsletter is legitimate, opt-in, and authenticated. The default rspamd thresholds shipped with cPanel are tuned for transactional and personal mail, not for templated HTML newsletters that trip several heuristics by their nature.
What’s happening
rspamd assigns a numeric score to each message by summing rule weights. Default thresholds on a cPanel rspamd install are typically add_header = 6, rewrite_subject = 8, reject = 15. A well-built newsletter routinely scores 4–7 purely on structural rules: HTML_SHORT_LINK_IMG, MIME_HTML_ONLY, MANY_INVISIBLE_PARTS, R_SPF_SOFTFAIL if the ESP is not in SPF, URI_COUNT_ODD when image URLs and link URLs differ. None of these are abuse signals; they are stylistic patterns that overlap with spam.
Raising every threshold globally weakens spam filtering for the rest of the server. The right move is targeted: per-recipient or per-sender exceptions, plus rule weight adjustments only for the rules that misfire on legitimate mailings.
How to verify
Pull rspamd’s view of a recent flagged newsletter:
rspamadm controller history | grep -i newsletter@example.com | head
rspamc -h /var/run/rspamd/worker-controller.sock symbols < /path/to/raw/message.eml
The symbols output lists each triggered rule, its weight, and the total. That tells you which rules are pushing the score up. Then check the actions configured:
cat /etc/rspamd/local.d/actions.conf
cat /etc/rspamd/override.d/actions.conf 2>/dev/null
If both files set thresholds, override.d wins.
The fix
-
Identify the rules that fire on legitimate newsletters but rarely on real spam in your environment. Common ones:
MIME_HTML_ONLY,R_SPF_SOFTFAIL,URI_COUNT_ODD. Drop their weight, do not zero them.# /etc/rspamd/local.d/groups.conf group "html" { symbols { "MIME_HTML_ONLY" { weight = 0.2; } } } -
For internal newsletters from a known sender, add a multimap whitelist:
# /etc/rspamd/local.d/multimap.conf NEWSLETTER_WHITELIST { type = "from"; map = "/etc/rspamd/whitelist.newsletter"; score = -4.0; } -
Do not raise the global
rejectthreshold. The default of 15 protects the server from genuinely abusive traffic; the goal is to bring legitimate scores down, not raise the ceiling. -
Restart rspamd and watch the next mailing’s history. Iterate on rule weights, not the threshold.
If the newsletter platform is an ESP (Mailchimp, Brevo, etc.), the message should arrive over an authenticated relay and rspamd should pass it cleanly — if it does not, the ESP is likely not aligned in SPF or DKIM and that is the real fix.
Stack Harbor tunes rspamd for cPanel servers handling mixed transactional and newsletter traffic as part of Deployment Management. Get in touch if your mail filter is the wrong shape for your traffic.