Email blocklists (DNSBLs)
Updated
A DNS blocklist, or DNSBL, is a list of IP addresses that have been seen sending spam or that should not be sending email directly at all, such as many home connections. Mail servers can consult one or more lists and refuse or distrust mail from addresses on them.
How a check works
The list is published through DNS, so checking it is just a DNS lookup. The address is written backwards and placed in front of the list's domain name. If the name exists, the address is listed. If it does not, it is not.
203.0.113.7 on the list example-bl.test: 7.113.0.203.example-bl.test -> 127.0.0.2 (listed) 7.113.0.203.example-bl.test -> no such name (not listed)
A listed answer is an address in 127.0.0.0/8, and many lists use the exact value to say why the address was listed.
Reading a result
- Each list has its own rules, so being on one does not mean being on all of them
- Mailbox providers choose which lists they use, so a listing matters only to those who consult that list
- A listing can be old, or caused by someone else on a shared or recycled address
- Some lists, such as Spamhaus, refuse questions that arrive through public DNS resolvers, so a tool using public resolvers cannot check them. The mail server check says which lists it could not use
If your server is listed
Find and fix the cause first, for example a hacked account or an open relay. Then follow the list's own removal process, which is on its website. Asking for removal before fixing the cause usually gets the address listed again. Setting up reverse DNS, SPF, DKIM and DMARC properly makes listings less likely.
Check mail servers against blocklists