Skip to content

Removing a cPanel sending IP from Spamhaus PBL, SBL, or XBL

How to identify which Spamhaus list your cPanel sending IP is on, fix the underlying cause, and submit the correct removal form so the delisting actually sticks.

Spamhaus runs three lists that matter to cPanel operators, and each has its own removal path. PBL targets dynamic and residential ranges that should not be sending direct. SBL is for known sources of spam — manual additions by Spamhaus staff. XBL covers compromised hosts and botnets, populated from honeypot data. Submitting the wrong form, or submitting before the underlying cause is fixed, gets you ignored or relisted within hours.

What’s happening

Receivers query Spamhaus in real time during the SMTP transaction. A match returns 5xx and the message is refused. A single listing across PBL, SBL, or XBL is enough to cut delivery to a significant share of receivers — Spamhaus is one of the most widely deployed blocklist providers. The list code returned by the lookup tells you which list matched and what to do next.

How to verify

Look up the IP against Spamhaus directly:

dig +short A 1.2.3.4.zen.spamhaus.org

Replace 1.2.3.4 with your IP reversed. The return code tells you the list:

  • 127.0.0.10 or 127.0.0.11: PBL
  • 127.0.0.2: SBL
  • 127.0.0.4 through .7: XBL/CBL

Cross-check on the Spamhaus website’s IP/Domain Lookup; the listing page shows the reason and the removal link.

The fix

  1. Fix the underlying cause first. Spamhaus will relist within hours if the abuse continues. For XBL, that means finding and removing the malware or compromised script (see the queue-spike-source KB). For SBL, it usually means a spamtrap hit — review your list hygiene and stop the campaign that triggered it. For PBL, your range was already classified as residential and Spamhaus considers direct sending from it inappropriate.
  2. For PBL listings on a server IP, your hosting provider or RIR must update the rDNS classification. cPanel customers usually need to escalate to the upstream ISP to get the IP reclassified as a mail-sending host.
  3. For XBL listings, use the Spamhaus removal form at spamhaus.org/lookup. The form requires you to certify the compromise is resolved. Lying gets you a permanent block.
  4. For SBL listings, contact via the form linked from the listing page and explain what you’ve changed. SBL removals are reviewed by humans — be specific about list hygiene improvements, suppression list management, and authentication.
  5. Confirm removal with the same dig command after the form is processed, and re-verify after 24 and 72 hours. Caching means some receivers see the old verdict for a day.

For environments where blocklist hits are part of a larger reputation problem and not a one-off, Stack Harbor handles the recovery as part of environment management.