Skip to content

What to do when rspamd flags legitimate newsletters

rspamd on cPanel sometimes scores legitimate newsletters into the spam zone. Here is how to diagnose the rule that triggered and tune without weakening filtering.

A subscriber forwards a screenshot of their inbox: your weekly newsletter is sitting in the Junk folder, with the same subject line that has been delivering cleanly for two years. Nothing about the mailing changed. What changed, almost always, is either an rspamd rule scoring threshold update, a new module enabled on the cPanel server, or a small drift in the message content that crossed a score boundary that was always there.

What’s happening

rspamd assigns each message a numeric score by summing the symbols that match — headers, body patterns, URL reputation, sender authentication, and Bayesian learning. The default add_header threshold on cPanel is around 6, reject around 15. A newsletter usually sits around 2 to 4. When the score creeps past add_header, downstream filters at Gmail and Outlook see the X-Spam-Flag and route to Junk even though your own server didn’t reject the message.

How to verify

Pull a recent message that landed in spam and inspect what rspamd added to it:

exim -Mvh <message-id> | grep -iE 'x-spam|x-rspamd'

Or query rspamd directly with the original message:

rspamc symbols < /path/to/saved-message.eml

The output lists every symbol that fired with its individual score. Common culprits on newsletters: MIME_HTML_ONLY, R_MIXED_CHARSET, R_SUSPICIOUS_URL, BAYES_SPAM, HFILTER_URL_ONLY. Add the per-symbol scores; the total tells you exactly how far over the threshold you are and which symbols are the cheapest to fix.

The fix

Fix the message first, the rules second. If MIME_HTML_ONLY is firing, ship a text/plain alternative part — every newsletter platform supports this. If R_SUSPICIOUS_URL fires, audit the tracking links: long redirect chains and unbranded shortener domains both hurt. If BAYES_SPAM is significant, the sender’s Bayesian classifier has been trained against your patterns; reset it on the affected account with rspamc learn_ham < good-message.eml against several recent legitimate sends.

For server-side rule tuning, adjust scores in /etc/rspamd/local.d/groups.conf rather than editing the shipped configs. Lowering a single rule by 0.5 to 1.0 is usually enough; turning off entire modules masks real spam. Reload rspamd with systemctl reload rspamd and verify the next send.

Newsletter deliverability is a recurring tuning problem. If you’d rather not own the rspamd config personally, this falls under our monitoring and support engagement.