My list of banned mail servers
by Brian on Sep.16, 2007, under General Info
Just in case anyone cares, here’s the list of servers I refuse to accept mail from. This is a very large list, (over 22,500 hosts and networks) and is fairly restrictive. It covers all IP address space in China, Korea, most of Holland, and many others that have spammed my servers.
If you find yourself listed here, don’t email me. I don’t care. It’s my mailserver, and I’ll accept mail from whomever I please. Â :PÂ Â
P.S. If you are listed here by individual IP address, you suck. Stop spamming people. Loser.
Anyway, here’s the list:
https://cryptednets.org/bannedmailservers.csv
If you use OpenBSD’s PF, and want to use it in a table, copy the list to “/etc/bannedmail” and then you can add the list like so:
# pfctl -t <bannedmail> -T add `cat /etc/bannedmail`
then, just disallow these IP’s from connecting to your mail server:
First, add the table to the pf.conf:
table <bannedmail> persist file "/etc/bannedmail"
and
block drop in quick on $ext_if from <bannedmail> to any
or
rdr on $ext_if proto tcp from !<bannedmail> to $ext_if port 25Â -> $mailserver port 25