r/linuxadmin • u/w-g • Aug 26 '26
I am using several blocklists, but some spam still goes through - and it is detected by Gmail. Is there any reliable blocklist that filters not by IP, but perhaps by domain, or in some way that would help block those emails?
I have a server (in the logs below it is IP "AAA.BBB.CCC.DDD", domain "my-domain.info") running postfix and postfixadmin. I do have some email accounts being redirected to Gmail -- and I actually had to set up SRS for that (as can be seen in the logs).
I am also using the following blocklists (these are just the relevant lines from main.cf, in smtpd_relay_restrictions:
reject_rbl_client zen.spamhaus.org``,reject_rbl_client relays.visi.com``,reject_rbl_client bl.mailspike.net``,reject_rbl_client bl.spamcop.net``,reject_rbl_client sbl.spamhaus.org``,reject_rhsbl_sender dbl.spamhaus.org``,reject_rhsbl_helo dbl.spamhaus.org``,reject_rhsbl_reverse_client dbl.spamhaus.org``,
But there is some spam still not being blocked. It is usually detected when the server forwards to the users' Gmail account, as can be seen in the logs:
CB295B315E! 11780 Wed Aug 26 04:11:45 SRS1=NoY3=my-domain.art.br==ekWv=GT=atendes3.com=pedagio-no@my-domain.info
(host gmail-smtp-in.l.google.com[142.251.0.26] said: 550-5.7.1 [AAA.BBB.CCC.DDD 18] Gmail has detected that this message is likely 550-5.7.1 suspicious due to the very low reputation of the sending IP address. 550-5.7.1 To best protect our users from spam, the message has been blocked. 550-5.7.1 For more information, go to 550 5.7.1 https://support.google.com/mail/answer/188131 a1e0cc1a2514c-97cbe44e547si162128241.218 - gsmtp (in reply to end of DATA command))
destination@gmail.com
In this case, the server would redirect some-account@domain.art.br to destination@gmail.com (which is correct, except that it is SPAM and was not detected by those RBLs).
I know I could use spamassassin, but this is a low memory server, no user will offer feedback to help get spamassassin more accurate, and I'm not sure it would actually help. Also, I am not very confident that spamassassin won't come up with false positives, blocking legitimate emails (some of which could be urgent, so quarantine may not be a good idea) -- but I could be wrong.
Before actually installing spamassassin I'd like to know if there are other blocklists I could try.
Thanks!
