Dear Barry, thanks for your follow-up on this. That's a good idea too. I've checked the past messages in the queue and spamassassin scores range from 3.4 to 4.9 (with a trigger score required of 5.2). However, can you get a rejection message sent to the originator of the message? When blocking at Postfix level, the message is not accepted in the system & a bounce is issued. A genuine email originator would get a bounce explaining the bounce and try another method to get in contact. With spamassassin the message would just get dropped, wouldn't it? (apologies, my spamassassin coding is a bit crusty) Kindest regards, Olivier On 17/03/2016 05:32, bzs@theworld.com wrote:
[is this OT, how did this start?]
I use spamassassin system-wide to increase the spam score of a message from certain TLDs to near the threshold where it's just rejected.
So for example in local.cf I add a rule like:
header DOTTOP_RULE From =~ /.*\.top/i describe DOTTOP_RULE BZS 20160226 score DOTTOP_RULE 2.5
which means just having a .TOP TLD in the From gives it a base score of 2.5, so it wouldn't take much more, tripping some other spamassassin rules, to just get it blocked entirely.
But it means in theory a very non-spammy msg from that TLD might still get through.
-- Olivier MJ Crépin-Leblond, PhD http://www.gih.com/ocl.html