Skip to main content

Blocklists

Spamhaus XBL: Compromised or Infected Sending IPs

By Tom Sather•Published •8 min read

A Spamhaus XBL listing means your IP showed signs of compromise, like malware or a hijacked device. Find and fix the source, then delist at check.spamhaus.org.

On this page

Your IP is on the Spamhaus XBL (Exploits Blocklist) because Spamhaus saw traffic from it that looks like a compromised machine: malware, a hijacked device, a proxy app, or a brute-force attack. It's an automated listing, not a judgment about your marketing. The fix is to find the infected or misused device behind that IP, clean it up, and then request removal at check.spamhaus.org, which is the only place XBL removals are handled.

If you delist without finding the cause, you'll be relisted. The XBL is driven by live detections, so the listing comes back as soon as the device does its thing again.

What an XBL rejection looks like

Most receivers check Spamhaus ZEN, a combined zone that includes the XBL, so the bounce usually names ZEN:

554 5.7.1 Service unavailable; Client host [203.0.113.7] blocked
using zen.spamhaus.org; https://check.spamhaus.org/query/ip/203.0.113.7

ZEN answers with a different return code for each list. Spamhaus says the XBL currently uses only one:

Return codeMeaning
127.0.0.4XBL: the IP shows signs of compromise

If you get an answer starting with 127.255.255, that's not a listing. It's an error caused by how the lookup was made, usually through a large public DNS resolver. See why blocklist checks give wrong answers.

What the XBL is

Spamhaus describes the XBL as "a realtime database of IP addresses used by hijacked devices compromised by 3rd party exploits." A few things follow from that:

  • It's automatic. Listings are added when Spamhaus has evidence a device is insecure, compromised or infected. Nobody can nominate your IP, and no human decided to list you.
  • It lists IPs, not people. If 50 laptops share one public IP through an office router (NAT), and one of them is infected, the shared IP gets listed. Spamhaus can only see what comes out of the public address.
  • It includes the old CBL. The Composite Blocking List (cbl.abuseat.org) was folded into the XBL years ago, and in early 2021 Spamhaus moved all CBL data to be served from the XBL. If a bounce or checker mentions the CBL or abuseat.org, you're dealing with the same data and the same removal process.

The XBL is different from its siblings. The PBL is a policy list about what kind of IP you have. The SBL and CSS are about spam you sent. The XBL is about a machine on your network that someone else is controlling. For how the Spamhaus lists fit together, see the Spamhaus overview.

Common causes, most likely first

  1. An infected device behind a shared IP. A laptop, phone, smart TV or IoT gadget on the office network running malware. Spamhaus notes that some listings come from a device hitting a botnet sinkhole, which is a server researchers took over to watch infected machines check in.
  2. A compromised server or web application. An outdated CMS, a vulnerable plugin, or a stolen admin password on a server that shares your mail IP. The attacker uses it to send spam or attack other systems.
  3. Brute-force attacks from your IP. Spamhaus lists participation in brute-force attacks on a service as one of the behaviors it detects. That's usually a compromised machine, not something your staff are doing.
  4. "Free VPN" or proxy apps. Spamhaus specifically calls out free VPN-type apps that turn the user's device into a proxy for other people's traffic. One employee installing one is enough.
  5. A previous tenant of a dynamic IP. On residential or dynamic address space, the listing may belong to whoever had the IP before you. Spamhaus says this is why providers shouldn't use the XBL to block their own users.

If you send through an ESP, Google Workspace or Microsoft 365, an XBL listing on your office IP shouldn't affect that mail, because receivers check the IP that connects to them, which is your provider's server. Check which IP the bounce actually names before you go hunting. Reading the bounce message covers how.

How to fix it

  1. Look up the IP. Go to check.spamhaus.org and enter the IP from the bounce. The result tells you which Spamhaus list it's on and often includes detail about what was detected. Write that down before you do anything else.
  2. Work out what sits behind the IP. Is it a single server, a firewall doing NAT for an office, a guest Wi-Fi network, a hosting account shared with other sites? Your search area depends on the answer.
  3. Find the device. For an office network, check firewall logs for outbound connections on port 25 from anything that isn't your mail server, and for connections matching the detection time or destination Spamhaus gave you. For a server, look at the mail queue, web server logs and any recently modified files.
  4. Clean it up. Remove the malware, patch or remove the vulnerable application, reset passwords that may have been stolen, and turn on two-factor authentication where you can. Spamhaus's own advice includes keeping software updated, using 2FA, and checking your HELO and reverse DNS settings.
  5. Close outbound port 25 for everything except your mail server. Spamhaus recommends this. It stops an infected device from sending mail directly. But it doesn't remove the infection, and blocking the device from reaching a sinkhole doesn't either. You still have to fix the machine.
  6. Request removal. Once you're confident the source is fixed, go back to check.spamhaus.org and follow the removal steps for the XBL listing.
⚠️
Don't just click delist and move on. The XBL is fed by live detection, so if the infected device is still there, Spamhaus will see it again and relist the IP. Spamhaus's FAQ is blunt about it: the IP is relisted "because the detected problem has not been corrected."

How to confirm it's fixed

  • Re-check the IP at check.spamhaus.org. Spamhaus says the XBL zone rebuilds every five minutes, so fixed problems come off quickly.
  • Watch your logs for zen.spamhaus.org rejections to stop. Different receivers refresh their data at different speeds, and Spamhaus asks you to allow 24 hours after delisting before opening a ticket about a block you're still seeing.
  • If the listing comes back within days, the device is still compromised or there's a second one. Go back to step 3.

Keeping it from coming back

  • Block outbound port 25 on your network for everything except your real mail servers. This is the single most useful control.
  • Separate your mail IP from everything else. Don't let the IP your mail server uses double as the NAT address for staff laptops and guest Wi-Fi. If one device gets infected, you don't want it to take your mail down with it.
  • Keep servers and web apps patched, and remove plugins and apps you no longer use.
  • Use 2FA on admin accounts, mail accounts and hosting panels.
  • Have a policy on VPN and proxy apps for company devices.
  • Monitor your IPs. A daily check of your sending IPs against Spamhaus catches a new listing before your sales team does. Use a method that queries Spamhaus correctly, for the reasons in false results.

When to get help

If the listing keeps coming back and you can't find the device, or your mail IP is shared with infrastructure you don't control, it's worth bringing in someone who has traced these before. Get in touch.

FAQ

Does an XBL listing mean I'm sending spam?

Not necessarily you. It means something using your IP showed signs of being compromised. The traffic may be spam, attacks or proxy activity from an infected device you didn't know about.

How long does an XBL listing last?

Spamhaus says XBL listings expire automatically once the malicious behavior is no longer detected, and you can request removal at check.spamhaus.org after you've fixed the cause. It doesn't publish a fixed expiry time.

Is the CBL the same as the XBL?

Effectively, yes. The CBL was part of the XBL for years, and since early 2021 its data has been served from the XBL. Removals are handled through Spamhaus's lookup pages.

Do I have to pay to get off the XBL?

No. The self-service removal at check.spamhaus.org is how XBL listings come off, and legitimate blocklists don't charge for delisting. If someone offers to get you off Spamhaus for a fee, walk away.

Sources

Related guides

Still stuck?

Some deliverability problems take an experienced eye to untangle. Tell me what you're seeing and I'll tell you what I'd check first. The first 30-minute call is free.