Spamassasin set up not working at all

bitstomper

New member
Joined
Nov 9, 2026
Messages
1
Hi,

Somehow my spamassasin set up is not working.
I am not receiving any messages marked as spam.
For example I have tried to block the .pe domain fully.
Tried this using several (probably unnecessary) rules.
What am I missing?

required_score 5.0
rewrite_header subject *****SPAM*****


report_safe 1

blacklist_from *.*@*.*.pe
blacklist_from *.br
blacklist_from *.cyou
blacklist_from *.id
blacklist_from *.lk
blacklist_from *.lol
blacklist_from *.ma
blacklist_from *.pe
blacklist_from *.th
blacklist_from *@*.*.*.id
blacklist_from *@*.*.*.pe
blacklist_from *@*.*.*.tw
blacklist_from *@*.*.br
blacklist_from *@*.*.cl
blacklist_from *@*.*.ec
blacklist_from *@*.*.hn
blacklist_from *@*.*.id
blacklist_from *@*.*.pe
blacklist_from *@*.*.ru
blacklist_from *@*.*.th
blacklist_from *@*.br
blacklist_from *@*.cloud
blacklist_from *@*.ed.jp
blacklist_from *@*.edu
blacklist_from *@*.edu.*
blacklist_from *@*.*.edu.*
blacklist_from *@*.edu.bd
blacklist_from *@*.edu.mx
blacklist_from *@*.id
blacklist_from *@*.lol
blacklist_from *@*.pe
blacklist_from *@*.ro
blacklist_from *@*.ru
blacklist_from *@*.tw
blacklist_from *@*.uladech.pe
blacklist_from *@alchemer.com
blacklist_from *@dropshipacadamy.nl
blacklist_from *@eatcheesecakes.com
blacklist_from *@rotarypublicschool.org
 
First check the raw headers of one received test message. If there is no X-Spam-Status header, the issue is not these rules—SpamAssassin is not being called for that mailbox (or it is disabled in DA). Fix that before tuning patterns.

If the header is present, test the scanner with the official GTUBE string. Also run `spamassassin --lint` after changing the config; a parse error can make your custom file ineffective.

For the TLD match, most of those entries are redundant. `blacklist_from *@*.pe` is enough for From addresses under .pe. Note that `blacklist_from` checks the parsed sender address, not the sending server's country/TLD or links inside the message. A spammer using a non-.pe From address will not match.

I would also avoid `report_safe 1` while testing, because it wraps spam as an attachment and makes results less obvious. Temporarily inspect X-Spam-Status and the score/rules hit instead.
 
Back
Top