_noob.tools
My IP
All guides

My IP is on a blacklist: how to check it and get delisted

How DNS blacklists work, how to check an IP against them, what each common listing means, and the order of steps that actually gets you removed.

By noob.tools · · 4 min read

Mail from your server starts bouncing with messages like 554 5.7.1 Service unavailable; Client host [203.0.113.10] blocked using zen.spamhaus.org. The receiving server looked your IP up in a DNS blacklist (DNSBL), found it, and refused the connection. This guide covers how to confirm the listing, read what it means, and get removed without being listed again a week later.

How a DNS blacklist lookup works

A DNSBL is an ordinary DNS zone. To check 203.0.113.10, the receiver reverses the octets and queries an A record under the list's zone:

dig +short 10.113.0.203.zen.spamhaus.org

No answer (NXDOMAIN) means not listed. An answer in 127.0.0.0/8 means listed, and the exact address says why: each list documents its return codes. A TXT query on the same name often returns a short reason and a link:

dig +short TXT 10.113.0.203.zen.spamhaus.org

Check every list at once

Checking lists one by one with dig is slow and easy to misread. The IP Blacklist & Abuse Check queries the common lists (Spamhaus ZEN, Barracuda, SpamCop, CBL, PSBL, UCEPROTECT, DroneBL and others) in parallel and links each one to its own lookup and removal page.

Try it yourselfIP Blacklist & Abuse CheckCheck if an IP is flagged for spam or abuse.

A second opinion helps: the IP Reputation Checker shows the address's abuse confidence score and how many reports it has received, which tells you whether the problem is mail only or the IP is also reported for scanning or brute-force attempts.

What the common listings mean

Not every listing is equal. Before you request removal, read which list you are on and why.

  • Spamhaus SBL: the IP was seen sending spam or hosting spam operations. Manual review, and removal needs evidence that the cause is fixed.
  • Spamhaus XBL / CBL: the IP showed signs of a compromised machine or malware (bots, proxies). The usual cause is an infected host or a hacked account behind your NAT. Self-service removal is possible once the infection is gone.
  • Spamhaus PBL: a policy list, not a punishment. It covers address ranges that should not send mail directly to other servers, typically residential or dynamic IPs. If a real mail server sits on such an address, send through your provider's relay. For a static server IP, the network owner can request an exclusion.
  • Barracuda: reputation-based. Removal is by request through its form and is usually processed within a day.
  • SpamCop: driven by recent user reports. Listings expire on their own after reports stop, so the job is to stop the source.
  • UCEPROTECT levels 2 and 3: they list whole ranges or networks because of other customers' behaviour. You often cannot fix these yourself, the entries expire over time, and fewer receivers use them than Spamhaus or Barracuda.

The order that gets you delisted

  1. Find and stop the source first. Requesting removal while the problem continues gets you listed again, and some lists apply longer delays to repeat listings. Typical causes: a compromised mailbox password sending spam through your server, an infected machine behind the same public IP, a web form or script that sends mail, an open relay, or a mailing list without consent.
  2. Check the basics receivers look at. The sending IP should have a reverse DNS (PTR) name that resolves back to the same IP. HELO should use a real hostname, and SPF, DKIM and DMARC should pass for your domain. Missing reverse DNS alone gets mail rejected by many large providers.
  3. Request removal list by list, using each list's own form, and explain what you fixed. Never pay a third party that promises to delist you from lists that remove for free.
  4. Recheck after the stated delay. DNS caching means some receivers keep seeing the old answer for a while after removal.

Find what is sending

On the server, look at the outgoing queue and recent log lines before anything else. On Postfix:

mailq | tail -n 5
grep -c 'status=sent' /var/log/mail.log
grep 'sasl_username=' /var/log/mail.log | awk '{print $NF}' | sort | uniq -c | sort -rn | head

A single authenticated user responsible for a large share of recent mail is the classic sign of a stolen password. Reset it, review the account's forwarding rules, and then requeue or delete the spam that is still waiting in the queue.

Catch the next listing early

A listing you discover from bounces is already hurting delivery. The Automated Blacklist Monitor checks an IP on a schedule you choose and emails you when its status changes, so you hear about it before your users do.

Checklist

  1. Confirm the listing with a lookup that does not go through a public resolver.
  2. Read which list and which return code: policy (PBL) and compromise (XBL/CBL) need different fixes.
  3. Stop the source: compromised account, infected host, open relay or a script.
  4. Verify PTR, HELO, SPF, DKIM and DMARC.
  5. Request removal on each list's own site, then monitor the IP.

Tools used in this guide