NewCode CLOUD — 20% off your first month on all cloud VPSClaim

How to Check if Your Server IP Is Blacklisted (and How to Get Delisted)

An IP address on a blacklist (also called a blocklist or DNSBL) can stop your email being delivered, trigger security warnings, or get your server’s traffic filtered by other networks. Listings happen for a reason — usually spam or malicious traffic from the IP, sometimes from its previous user. This guide shows how to check, how to read the results, and how to get removed for good.

What blacklists are

A DNSBL is a list of IP addresses (or domains) that a service believes sends spam or abuse, published through DNS so mail servers can query it in milliseconds. When your server sends email, the receiving server looks up your IP in the lists it trusts and may reject, filter or accept the message based on the result.

Not all lists are equal:

List Weight Notes
Spamhaus (SBL, XBL, CSS, PBL) Very high Used by a huge number of mail systems
Barracuda (BRBL) High Common in corporate filters
SpamCop Medium Based on user spam reports; listings expire automatically
Microsoft (Outlook.com SNDS) High for Microsoft mailboxes Not a public DNSBL; Microsoft has its own delisting portal
UCEPROTECT Level 2/3 Low Lists whole networks; many admins ignore it
Many smaller lists Low Rarely used by major providers

A listing on a high-weight list needs attention. A listing on an obscure list that nobody uses may not affect delivery at all.

How to check

Online multi-list checkers

Web tools such as MXToolbox’s blacklist check, MultiRBL and similar services query dozens of lists at once. Enter your server’s IP (and your domain, for domain blocklists).

From the command line

To query a DNSBL manually, reverse the IP’s octets and append the list’s zone:

# IP 203.0.113.20 on Spamhaus ZEN
dig +short 20.113.0.203.zen.spamhaus.org
  • No answer: not listed.
  • An answer in 127.0.0.x: listed; the last number indicates which sub-list.

Note that Spamhaus restricts queries from large public resolvers, so results from a server using 8.8.8.8 or 1.1.1.1 may be unreliable — use their website’s lookup tool for a definitive answer.

Check what receivers tell you

Bounce messages usually name the list:

550 5.7.1 Service unavailable; client [203.0.113.20] blocked using zen.spamhaus.org

Search your mail log:

sudo grep -iE "blocked|blacklist|blocklist|spamhaus|reject" /var/log/mail.log | tail

Find the cause before asking for removal

Requesting delisting without fixing the cause leads to relisting — and some lists make each relisting harder to remove. Common causes:

  1. A compromised account or script sending spam. Check the mail queue and logs:
sudo postqueue -p | tail                         # Postfix queue
sudo grep "status=sent" /var/log/mail.log | awk '{print $7}' | sort | uniq -c | sort -rn | head

A web script (a vulnerable contact form, a malicious PHP file) can also send mail directly. Look for PHP files sending mail and for unknown processes connecting to port 25: sudo ss -tnp | grep :25. See has my server been hacked?.

  1. Malware or a bot on the server (scanning, DDoS) — lists such as Spamhaus XBL/CSS cover infected machines, not just spam.
  2. Open relay or open proxy misconfiguration.
  3. Bulk or marketing email to purchased or old lists, causing complaints and spam-trap hits.
  4. Previous user of the IP. Addresses are reused; a listing may predate your use.
  5. Policy lists such as Spamhaus PBL, which list IP ranges that should not send mail directly. These are not accusations — they reflect network policy.

Request removal

Once fixed, go to each list’s own website and use its lookup/removal tool:

  • Spamhaus: the IP and Domain Reputation Checker explains the listing and offers removal where self-service is possible. For listings that need provider action, contact your hosting provider’s support.
  • Barracuda: removal request form; usually processed within a day or so.
  • SpamCop: listings expire automatically about 24 hours after reports stop.
  • Microsoft: use the Outlook.com delisting portal and consider registering for SNDS to monitor your IP.
  • UCEPROTECT: levels 2 and 3 list whole provider ranges; they expire on their own and most major mail providers do not use them.

Be honest in requests: describe what happened and what you changed. Never pay for “express delisting” offered by low-quality lists.

Prevent future listings

  • Authenticate your mail with SPF, DKIM and DMARC — setup guide.
  • Set correct reverse DNS — PTR records explained.
  • Secure the server: strong passwords, updated software, Fail2ban on mail and web logins, and no open relay.
  • Rate-limit outgoing mail per user in your mail server, so a compromised account cannot send thousands of messages.
  • Monitor: check your IPs weekly with a monitoring service or a cron job that queries the main lists and alerts you.
  • Use a professional email provider for business mailboxes and transactional mail where possible. Self-hosting mail is manageable, but reputation work is ongoing.

Notes for Server.HK customers

  • Ports 25/465/587 are blocked by default on Hong Kong and Japan VPS and on dedicated servers; they are open on US VPS, where you can also set rDNS yourself.
  • Server.HK has a zero-tolerance spam policy: a single spam complaint can lead to suspension, and bulk or marketing email is not accepted. See the Acceptable Use Policy.
  • If a newly delivered IP is already listed (for example from a previous user), open a ticket with the listing details and we will look into it.

Quick reference

# Is my IP listed on Spamhaus ZEN? (use a resolver that is not a large public one)
dig +short $(echo 203.0.113.20 | awk -F. '{print $4"."$3"."$2"."$1}').zen.spamhaus.org

# Barracuda
dig +short $(echo 203.0.113.20 | awk -F. '{print $4"."$3"."$2"."$1}').b.barracudacentral.org