spamassasins: how add new DNSBL?

Questions and answers about how to do stuff
Post Reply
enricosx
Posts: 3
Joined: 29 Mar 2018 11:52

spamassasins: how add new DNSBL?

Post by enricosx »

sorry , but i'm a noob.
i have EFA, ho can i add to spamassasin more DNSBL servers and how to check wich are enabled?

example:

all.s5h.net b.barracudacentral.org bl.spamcop.net
blacklist.woody.ch bogons.cymru.com cbl.abuseat.org
combined.abuse.ch db.wpbl.info dnsbl-1.uceprotect.net
dnsbl-2.uceprotect.net dnsbl-3.uceprotect.net dnsbl.anticaptcha.net
dnsbl.dronebl.org dnsbl.sorbs.net dnsbl.spfbl.net
drone.abuse.ch duinv.aupads.org dul.dnsbl.sorbs.net
dyna.spamrats.com dynip.rothen.com http.dnsbl.sorbs.net
ips.backscatterer.org ix.dnsbl.manitu.net korea.services.net
misc.dnsbl.sorbs.net noptr.spamrats.com orvedb.aupads.org
pbl.spamhaus.org proxy.bl.gweep.ca psbl.surriel.com
relays.bl.gweep.ca relays.nether.net sbl.spamhaus.org
singular.ttk.pte.hu smtp.dnsbl.sorbs.net socks.dnsbl.sorbs.net
spam.abuse.ch spam.dnsbl.anonmails.de spam.dnsbl.sorbs.net
spam.spamrats.com spambot.bls.digibase.ca spamrbl.imp.ch
spamsources.fabel.dk ubl.lashback.com ubl.unsubscore.com
virus.rbl.jp web.dnsbl.sorbs.net wormrbl.imp.ch
xbl.spamhaus.org z.mailspike.net zen.spamhaus.org
zombie.dnsbl.sorbs.net
User avatar
shawniverson
Posts: 3644
Joined: 13 Jan 2014 23:30
Location: Indianapolis, Indiana USA
Contact:

Re: spamassasins: how add new DNSBL?

Post by shawniverson »

You have 4 options, in order of resource intensity.

Postscreen (kill it before it even gets considered)
Postfix (kill it before it reaches the rest of the system)
MailScanner (kill it during processing)
SpamAssassin (kill it during spam scoring)

Out of the box, a single RBL exists in /etc/postfix/main.cf as an example for Spamhaus.

We do need an easy way to add RBLs, lots to do :D

Here's a good write up on the spamassassin way:

https://www.aligrant.com/web/blog/2018- ... amassassin

Note we aren't using spamd. Do this instead to commit changes to local.cf and clear the SpamAssassin cache:

Code: Select all

sudo rm /var/spool/MailScanner/incoming/SpamAssassin.cache.db
sudo systemctl restart mailscanner
enricosx
Posts: 3
Joined: 29 Mar 2018 11:52

Re: spamassasins: how add new DNSBL?

Post by enricosx »

thanks
User avatar
marjohn56
Posts: 5
Joined: 24 Sep 2020 10:47

Re: spamassasins: how add new DNSBL?

Post by marjohn56 »

I use blocklists in my firewall too, stops them before they even get to postfix!
Post Reply