Email deliverability·8 min read·By the OmegaCloud team

IP blacklisting on DNSBLs: causes, checks and delisting

Server administrator checking a terminal showing a DNS blacklist lookup for a mail server IP address

To find out whether your IP is on an IP blacklist, read the rejection code (550 5.7.1 or 554), then query the list it names with dig on the reversed IP. Fix the cause first (compromised server, open relay, missing PTR record), then request delisting on the list's official page. In almost every case, delisting is free.

In brief

  • A DNSBL is a list of IPs queried over DNS: a reply in 127.0.0.x means "listed", and NXDOMAIN means "not listed".
  • A reply in 127.255.255.x from Spamhaus is an error code, not a listing.
  • On a VPS, the most common causes are a compromised server, an open relay, an abused web form or a missing PTR record.
  • Fix the problem first, request delisting second, and never pay to be removed.
  • SPF, DKIM, DMARC, a consistent PTR record and one-click unsubscribe reduce the risk of being listed again.

What is an IP blacklist?

An IP blacklist is a reputation list on which an address (or a domain) has been recorded, and which mail servers and firewalls consult. Emails sent from a listed IP are rejected or filed as spam. Delisting means fixing the cause, then either asking the list operator to remove you or waiting for the entry to expire automatically.

This article covers IP lists (DNSBLs). It does not cover a website being flagged by a search engine.

What is a DNSBL and how does it work?

A DNSBL (DNS-based Blackhole List, also called an RBL) is a database of addresses that you query with an ordinary DNS lookup. Its format is described in RFC 5782, an "Informational" document published by the IRTF in February 2010.

The receiving server works in three steps: it reverses the octets of the sending IP, appends the list's zone, then sends a DNS query of type A. For the IP 203.0.113.25 and Spamhaus's ZEN zone, it looks up 25.113.0.203.zen.spamhaus.org.

To test your own IP, two lines are enough:

IP=203.0.113.25
dig +short $(echo $IP | awk -F. '{print $4"."$3"."$2"."$1}').zen.spamhaus.org A

To check that your resolver works, the official Spamhaus FAQ gives a test address: dig +short 2.0.0.127.zen.spamhaus.org should return 127.0.0.2, 127.0.0.4 and 127.0.0.10. A TXT query (dig 2.0.0.127.zen.spamhaus.org TXT) usually returns the reason for the listing and a removal link.

The codes in the combined ZEN zone read as follows:

Code Content
127.0.0.2 SBL (Spamhaus data)
127.0.0.3 CSS (Spamhaus data)
127.0.0.4 XBL (exploits, CBL data)
127.0.0.10 PBL (dynamic or residential ranges)

There are three families of list. DNSBLs record IPs, domain lists (RHSBL, such as Spamhaus's DBL) record names, and dynamic-range lists (the PBL type) flag addresses that should not send mail directly.

Why does an IP end up on a blacklist?

Because abusive email has left that address, whether you intended it or not. Here are the causes on a VPS, in order of frequency:

  1. A compromised server: weak SSH password, an out-of-date CMS, or a malicious script sending spam. Start by setting up fail2ban to protect your Linux VPS.
  2. An open SMTP relay, or misconfigured authentication.
  3. A contact or sign-up form hijacked by bots, which use it as an email generator.
  4. Bulk sending to unqualified lists, with spamtrap addresses and a high number of complaints.
  5. A recycled IP that was already listed before you got it.
  6. A missing or generic reverse DNS record, which makes the IP look untrustworthy.
  7. A machine infected as part of a botnet, which feeds the exploit lists.

The commonest case we see is a WordPress site whose form has no captcha and no rate limiting. Bots can use it to push out large volumes of messages quickly, and the IP may be reported before the administrator has even opened the logs.

How do you check whether your IP is blacklisted?

Three steps, in this order.

  1. Read the bounce message. According to the enhanced status codes (RFC 3463), a 550 5.7.1 or 554 5.7.1 means the message was refused for policy reasons. The text often names the list and gives a removal URL.

  2. Query the list itself with the command above. For an IPv6 address, the query is written in nibble format: each hexadecimal digit is reversed and separated by a dot. Python produces it directly:

python3 -c "import ipaddress,sys;print(ipaddress.ip_address(sys.argv[1]).reverse_pointer.replace('.ip6.arpa',''))" 2001:db8::1

One trap: Spamhaus returns 127.255.255.254 to queries that arrive through a public or open resolver. According to its FAQ, this code signals a query error and must not be mistaken for a listing. Query from your own resolver instead (Unbound installed on the VPS, for example).

  1. Monitor your reputation with the mailbox providers using Google Postmaster Tools and Microsoft SNDS, which report complaints and the status of the IP. The official lookup pages of the list operators fill in the rest of the picture.
List What it targets Typical impact
Spamhaus ZEN (SBL, CSS, XBL, PBL) IPs sending spam, exploits, dynamic ranges Frequent rejection, very widely used
Spamhaus DBL Domains Rejection or spam folder, depending on the recipient
SpamCop IPs reported by users Variable, expires automatically
Barracuda (BRBL) IPs with a poor reputation Rejection at recipients protected by Barracuda
UCEPROTECT IPs and entire ranges Rarely used by the big mailbox providers, from what we see

How do you get your IP removed from a blacklist?

Fix first, ask second. A request made without a fix leads to a new listing, and the delays get longer with every repeat.

Cut off the source first:

mailq                      # Postfix queue
postsuper -d ALL           # purge, after saving anything you need to keep
grep -R "mail(" /var/www   # PHP scripts that send mail

Then comb through the Postfix logs (/var/log/mail.log on Debian and Ubuntu) to find the sending account or script. Look for suspicious processes, change every credential and update the CMS. Once the cause is sorted, fill in each list's official form. Further procedures are covered in our VPS security guides.

Procedures by type of list

  • Exploits and botnets (XBL, CSS): self-service removal after the fix, through the operator's lookup page.
  • Dynamic or residential ranges (PBL): removal is possible if the server is legitimate and has a clean PTR record.
  • Report-based lists (SpamCop): entries expire automatically once the reports stop. The length varies, so check the period the operator states.
  • Lists that charge for removal: do not pay. Wait for the expiry set by their own policy, particularly as the big mailbox providers make little use of them.

Timings depend on each operator, so read its procedure page rather than trusting a generic figure.

Protecting the reputation of a VPS's dedicated IP when it sends email

This is the checklist we apply to a new mail server. The full setup is covered in our tutorial on configuring a mail server on a VPS with Postfix.

  • PTR and FCrDNS: the PTR record must match the host name announced in the HELO, and the forward lookup must return the same IP. Check with dig -x 203.0.113.25 +short.
  • SPF, DKIM, DMARC: start with p=none, watch the reports, then tighten the policy.
  • Requirements of the big mailbox providers: since 1 February 2024, Google has required a spam rate below 0.3% in Postmaster Tools. Above 5,000 messages a day to Gmail, one-click unsubscribe is required for marketing messages. Valid forward and reverse DNS records for sending IPs are required from all email senders to Gmail accounts, since 1 February 2024. Since 5 May 2025, Microsoft has been routing to the junk folder messages from senders of more than 5,000 messages a day to Outlook.com that fail SPF, DKIM and DMARC, and it reserves the right to filter or block non-compliant mail. Outright rejection of non-compliant messages has been announced, but no date has been set.
  • Throughput and warm-up: limit sending and build up volume gradually on a new IP.
  • Forms: captcha and honeypot, plus WordPress maintenance on a VPS to close the holes that turn a site into a spam sender.
  • System hygiene: fail2ban, automatic updates, and monitoring of bounces and logs.
  • Separating traffic: transactional and marketing emails on separate IPs or subdomains.
  • New IP: test it against the lists before going into production.

What about IPv6?

IPv6 lists often target a whole prefix, a /64 for example, rather than a single address. Some mailbox providers are also stricter about mail sent over IPv6. Our advice: only enable SMTP over IPv6 if the PTR and SPF records properly cover the IPv6 address.

Frequently asked questions

How do I know if my IP is on a blacklist?

Read the rejection code in your bounced emails, then query the list concerned with dig from your own resolver. A reply in 127.0.0.x confirms the listing, and NXDOMAIN rules it out. Back this up with Google Postmaster Tools and Microsoft SNDS.

How long does it take to be removed from a DNSBL blacklist?

It depends on the list. Some entries expire on their own once the reports stop, while others require a request after you have fixed the problem. The operator's procedure page states its own timescale.

Do I have to pay to have my IP removed from a blacklist?

No. The major operators offer free removal once the cause has been fixed. If a list asks for money, wait for the expiry set by its policy: the big mailbox providers make little use of such lists.

Why is my VPS blacklisted when I don't send spam?

Three explanations come up again and again: a compromised script or account is sending mail without your knowledge, the IP was already listed before you got it, or a form is being hijacked by bots. The Postfix logs and mailq will settle it.

Can a blacklisted IP block anything other than email?

Yes, if a firewall or a service consults these lists to filter incoming traffic. The most common effect is still email being rejected or filed as spam. Also check for third-party services that refuse you access.

Is reverse DNS (PTR) compulsory for sending email from a VPS?

In practice, yes. A missing or generic PTR record gets the IP treated as untrustworthy, and Google asks for valid forward and reverse DNS records from all email senders to Gmail accounts, since 1 February 2024.

A VPS whose dedicated IP is genuinely yours

This checklist assumes you control the machine. Our high-performance Linux VPS comes with a dedicated IPv4 and IPv6 address, root access, and snapshots so you can roll back to a clean state after a compromise. It runs on KVM virtualisation with no resource over-allocation, is hosted in France, and has human support 24/7 to help with diagnosis.

To be transparent: the offers are currently available for pre-order only, with availability announced for 1 November 2026. No host can promise that an IP will never be listed. The offer page does not detail how reverse DNS is handled or what the policy on outbound port 25 is, so ask support before ordering if you plan to run a mail server.

Related articles

Hosting

Navigation