EN · $ USD
Business Email and Mail Servers

My IP Address Is Blacklisted: How to Check and Get Delisted

7 min read Updated: Sunucu Atlas technical team

In short

You check whether your IP address is blacklisted by querying DNS-based lists such as Spamhaus ZEN and Barracuda BRBL. Listings are usually caused by a compromised mail account, an open relay or a malicious script. First find and fix the root cause and clear spam from the queue, then submit a removal request through each list's own form; requests made before the cause is fixed usually end in a quick relisting.

In this guide
  1. What is a DNSBL and how does it work?
  2. How to run an IP blacklist check
  3. Finding the root cause
  4. Cleanup: before you request removal
  5. Delisting: requesting removal
  6. Your own IP or shared infrastructure?
  7. Next step

If your outgoing mail suddenly starts bouncing and the error message says something like blocked using zen.spamhaus.org or listed at b.barracudacentral.org, your mail server's IP address has been added to a blacklist (blocklist, DNSBL). The fix has three steps: find out which lists you are on, find and close the problem that got you listed, then submit a removal (delisting) request. The order matters: a request made before the root cause is fixed ends in a relisting within hours.

What is a DNSBL and how does it work?

A DNSBL (DNS-based Blackhole List) publishes IP addresses caught sending spam over DNS. When a mail server receives a connection, it reverses the sender's IP address, appends the list's domain and runs a DNS query. If an answer comes back, the IP is listed; if it returns NXDOMAIN, it is clean. The receiving server then rejects the message or raises its spam score based on the result.

These are the main lists you should know:

ListQuery zoneWhat it listsRemoval
Spamhaus ZENzen.spamhaus.orgCombination of the SBL, CSS, XBL and PBL listsVia check.spamhaus.org; depends on the list
Barracuda BRBLb.barracudacentral.orgIPs that Barracuda appliances see as spam sourcesbarracudacentral.org removal form
SpamCopbl.spamcop.netUser complaints and spam trap hitsExpires automatically once complaints stop
SORBSdnsbl.sorbs.netHistorically spam, open relays and dynamic IPsAnnounced as shut down in 2024

A note on SORBS: its operator announced in 2024 that the SORBS list was shut down. Some older checking tools may still show a SORBS result; don't treat that result alone as a sign of trouble, and focus on Spamhaus and Barracuda instead.

How to run an IP blacklist check

Query from the command line

Reverse your IP address and append the list zone. For example, for 203.0.113.25 the query name is 25.113.0.203.zen.spamhaus.org:

# Spamhaus ZEN
dig +short 25.113.0.203.zen.spamhaus.org A

# Barracuda
dig +short 25.113.0.203.b.barracudacentral.org A

# SpamCop
dig +short 25.113.0.203.bl.spamcop.net A

Empty output means "not listed." The address Spamhaus returns tells you which list you are on:

  • 127.0.0.2: SBL, a spam source identified directly by the Spamhaus team
  • 127.0.0.3: CSS, low-reputation, spam-like sending behavior
  • 127.0.0.4 through 127.0.0.7: XBL, signs of malware or a compromised device
  • 127.0.0.10 or 127.0.0.11: PBL, an IP range that should not send mail directly
  • 127.255.255.254: your query was refused because it came through a public DNS resolver such as Google or Cloudflare; check the result with the web tool instead

That last one causes a lot of confusion: Spamhaus does not give real answers to queries from public DNS resolvers. If your server's /etc/resolv.conf contains 8.8.8.8 or 1.1.1.1, your own spam filter may not be using Spamhaus correctly either.

Check with web tools

If you don't use the command line, Spamhaus's own lookup page check.spamhaus.org and Barracuda's lookup at barracudacentral.org are the most reliable sources. Tools that scan dozens of lists at once give a quick overview, but they also include weak or poorly maintained lists, so don't give every red result the same weight.

Read the bounce message

The clearest clue is the bounced message itself. It usually states exactly which list rejected you:

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

For a detailed breakdown of the error codes, see 550 and 554 mail delivery failed error codes.

Finding the root cause

A blacklisting almost always comes down to one of these four causes.

1. Compromised email account

This is the most common cause. An attacker logs in with a weak or leaked password and sends thousands of messages using legitimate SMTP authentication. Find the account sending the most mail in your Postfix logs:

# Standard Postfix install
grep -o 'sasl_username=[^ ,]*' /var/log/mail.log | sort | uniq -c | sort -rn | head

# mailcow (run in the install directory)
cd /opt/mailcow-dockerized
docker compose logs --tail=20000 postfix-mailcow | grep -o 'sasl_username=[^ ,]*' | sort | uniq -c | sort -rn | head

If an account that normally sends little mail is at the top of the list, change its password right away and end its active sessions.

2. Open relay

An open relay is a misconfiguration that lets anyone, without authenticating, send mail to other domains through your server. Test it from a machine outside your server:

swaks --server mail.firmaniz.com --from test@baskaalan.example --to deneme@gmail.com

A correctly configured server should reject this with a response like 554 5.7.1 Relay access denied. If the message is accepted, review the smtpd_relay_restrictions and mynetworks settings in Postfix; mynetworks should only contain trusted networks such as 127.0.0.0/8.

3. Malicious script or hacked website

If a website runs on the same server, a vulnerable contact form or an uploaded malicious PHP file can send mail directly. If the headers of queued messages contain an X-PHP-Originating-Script line, that line points to the source.

4. Malware on the server

A Spamhaus XBL listing usually means the machine itself is compromised. Check for processes other than your mail software opening connections to port 25:

ss -tnp state established '( dport = :25 )'

Cleanup: before you request removal

  1. Shut down the source: Change the passwords of compromised accounts, close the open relay and delete malicious scripts.
  2. Review the queue: Inspect pending messages with postqueue -p (on mailcow, docker compose exec postfix-mailcow postqueue -p). Delete entries you are sure are spam with postsuper -d; otherwise the server will keep trying to send them.
  3. Set sending limits: An hourly per-account sending limit caps the damage a compromised account can do. In mailcow, you can set this limit at the domain and mailbox level.
  4. Harden authentication: Use two-factor authentication on admin accounts and rate-limit login attempts against brute-force attacks.
  5. Check the basic records: If PTR, SPF, DKIM or DMARC is missing, deliverability problems will continue even after you are delisted. For PTR setup, see the PTR (reverse DNS) record guide.

Delisting: requesting removal

  • Spamhaus: Look up your IP at check.spamhaus.org; the results page shows which list you are on and the path to follow. XBL and CSS listings can usually be removed with the self-service removal form once the problem is fixed. SBL listings require review by the Spamhaus team. PBL is not a penalty but a statement by the network owner that "no direct mail should come from this range"; if you run a real mail server, you can request an exclusion there.
  • Barracuda: Fill in the removal request form at barracudacentral.org. Briefly and concretely explain how you fixed the problem.
  • SpamCop: No separate request is needed; the listing expires on its own shortly after complaints stop.
  • Microsoft: If you can't deliver to Outlook.com and Hotmail addresses, ask for your IP to be unblocked through Microsoft's sender support portal (sender.office.com).

Be clear and honest in your requests: explain what went wrong, what you did and how you will prevent it from happening again. If the same IP gets relisted soon after, later requests become much harder to get approved.

Your own IP or shared infrastructure?

If you run your own mail server, you are directly responsible for your IP reputation: full control comes with full responsibility. Sunucu Atlas mail server plans come with mailcow preinstalled, your own IP address, the Rspamd spam filter and ClamAV virus scanning; you manage sending limits and users yourself. For small teams that don't want to monitor IP reputation, mail hosting plans are a better fit: the SpamAssassin spam filter and SPF and DKIM support are ready to go, hourly per-account sending limits are in place, and the provider maintains the server infrastructure. We cover reasons other than blacklists for mail landing in spam in why my emails are going to spam.

Next step

To avoid the same problem after you are delisted, choose the infrastructure that fits your needs. If you want full control with multiple domains and unlimited mailboxes, SA-MAILSERVER-1 gets you started with mailcow, your own IP address and root access. If your team only uses a few business addresses, SA-MAIL-2, with 25 email accounts and a sending limit of 300 messages per hour, lets you hand off IP reputation management entirely. If you get stuck during migration, you can open a support ticket in Turkish.

Frequently asked questions

How do I know if my IP address is blacklisted?

The error message in bounced mail usually names the list. You can also look up your IP directly at check.spamhaus.org and barracudacentral.org, or with the dig command.

How long does it take to get off a blacklist?

It depends on the list and the listing type. Automated lists like SpamCop expire on their own once complaints stop, while manually reviewed listings such as Spamhaus SBL require your request to be evaluated.

My Spamhaus query returns 127.255.255.254. Am I listed?

No. That answer means your query went through a public DNS resolver and was refused. Check the result at check.spamhaus.org or with your own resolver.

Do I have to pay to get removed from a blacklist?

Removal requests are free on widely used lists such as Spamhaus and Barracuda. The real requirement is that the problem that caused the listing has been fixed.

What happens if I request removal before fixing the cause?

Because the spam keeps flowing, the IP gets relisted quickly. Repeated listings make later removal requests harder to get approved.

What should I do if the IP is blacklisted on shared mail hosting?

Since mail is sent from the provider's IP, open a support ticket and include the error message. Also check your own account for unusual sending activity and change your passwords.

For this guide

Recommended plans

Choose a mail server with mailcow preinstalled if you want full control of your own IP, or mail hosting with spam filtering and sending limits if you'd rather never deal with IP reputation, and manage blacklist risk the way that fits you.

SA-MAILSERVER-1

mailcow
Recommended

6 GB RAM

$50.12/yr

+VAT

  • Processor2 CPU
  • Disk250 GB NVMe
  • LocationIstanbul
  • 1G Port
  • mailcow Pre-installed
  • No Account or Domain Limits
  • Your Own IP Address

SA-MAILSERVER-2

mailcow

8 GB RAM

$70.17/yr

+VAT

  • Processor4 CPU
  • Disk500 GB NVMe
  • LocationIstanbul
  • 1G Port
  • mailcow Pre-installed
  • No Account or Domain Limits
  • Your Own IP Address

SA-MAILSERVER-3

mailcow

12 GB RAM

$100.26/yr

+VAT

  • Processor6 CPU
  • Disk750 GB NVMe
  • LocationIstanbul
  • 1G Port
  • mailcow Pre-installed
  • No Account or Domain Limits
  • Your Own IP Address

Mail Server — tüm paketler Mail Hosting — tüm paketler

Need help with setup?

Send questions about your service in a support ticket, and our technical team will walk you through it step by step.