My Domain Is Blocked: A Triage Guide

"Domain is blocked" can mean a blocklist listing, a spam-folder decision, or a hard rejection. Each one has a different fix, and the check comes first.

You send mail as usual and nothing lands. The panic thought is "my domain is blocked." That phrase hides three different problems. A blocklist listing, a spam-folder decision, and a hard rejection are separate failures with separate fixes. Triage first, then fix the one you actually have.

What "domain is blocked" actually means

The first outcome is a blocklist listing. Spamhaus's page says the SBL is a realtime database of IP addresses of spam sources. Mail servers can query it during the SMTP transaction. Spamhaus says the majority of malicious email is dropped at the SMTP transaction. It also says almost all modern mail servers can use the SBL by querying sbl.spamhaus.org.

The second outcome is spam foldering. Gmail accepts your message but files it under the spam label. Gmail's guidelines say messages sent from IP addresses on a blocklist are more likely to be marked as spam. But spam foldering happens for many reasons without any listing. If your mail goes to spam but is not rejected, you may not be on a blocklist at all.

The third outcome is a rejection. Gmail's FAQ says every rejection comes with a code and a reason. That code names the specific failure. Treat it as a diagnosis, not a verdict.

How to check whether your domain or IP is listed

Start with Spamhaus. Spamhaus's page says you can check whether your IP is in SBL using the IP and Domain Reputation Checker. Listing details can be viewed by IP, IP range, or SBL ticket number.

Then check Gmail Postmaster Tools. Gmail's guidelines say to check your spam rate and your domain and IP address reputation there. Gmail's FAQ says Postmaster Tools refreshes spam rates and its other data points every day.

One thing the Spamhaus check tells you is who you will be talking to. Spamhaus's page says only the network or hosting company responsible for an IP can deal with SBL removals. If the listing is on your IP, the conversation is with your ISP or host, not with Spamhaus support.

Note that Spamhaus also has informational listings. Spamhaus's page says these warn of poor IP behavior and do not block IPs. They are a warning shot. Spamhaus says an informational listing can lead to a full SBL listing if no action is taken.

Reading the rejection: what Gmail's error codes mean

If Gmail rejected your mail, the error code tells you why. Gmail's FAQ maps the common ones:

  • 4.7.23 means the sending IP address lacks a valid PTR record. The matching 5.7.25 code means the message was blocked for a missing PTR record too.
  • 4.7.27 points to an SPF check that failed. 5.7.27 means the block came from SPF not passing.
  • 4.7.29 means the message wasn't sent with a TLS connection.
  • 4.7.30 means DKIM authentication didn't pass.
  • 4.7.31 means the sending domain lacks a DMARC record or a DMARC policy.
  • 4.7.32 means the From: header isn't aligned with the authenticated SPF or DKIM organizational domain.

Gmail's guidelines say messages that are not authenticated might be marked as spam or rejected with a 5.7.26 error. A bounce with one of these codes is an authentication or setup problem, not a blocklist. Fix the named failure before you go hunting for listings.

Why domains get blocked: causes to check first

Most blocks trace back to something the sender did or failed to do. Check these before any removal request, because Spamhaus expects the underlying problem solved first.

Authentication gaps. Gmail's FAQ says mail without both SPF and DKIM can draw a temporary or permanent failure code, or land in the spam folder. If you use an email service provider, Gmail's guidelines say to verify that they authenticate your domain's email with SPF and DKIM.

List problems. Gmail's guidelines say not to purchase email addresses from other companies, and not to send messages to people who didn't sign up. Spamhaus recommends using double opt-in to avoid spam traps.

Shared IP reputation. Gmail's guidelines say a shared IP address is used by more than one email sender. The behaviour of any sender on that address affects the reputation of all of them. Someone else's behaviour can hurt you here.

Snowshoe ranges. Spamhaus says the SBL lists snowshoe spam ranges, which are ranges and domains with poor or frequently changing identification.

Test phishing. Gmail's guidelines say not to send test phishing messages or test campaigns from your domain. It says sending test phishing messages could hurt your domain's reputation and get it added to internet blocklists.

The removal process, done properly

For an SBL listing, the channel is fixed. Spamhaus's page says removal requests must be sent by the Internet Service Provider in charge of the listed IP address. Spamhaus says end users should contact their system administrator, ISP, or Email Service Provider to address an SBL problem. Your job is to fix the cause, then ask your provider to send the request. Spamhaus says system administrators should solve the spam problem permanently first. The ISP should request removal once the abuse issue has been terminated.

The network owner must also notify Spamhaus of changes affecting a listing and request removal when the causes no longer apply. Spamhaus says all removals from the SBL are the sole decision of The Spamhaus Project.

There is never a fee. Spamhaus says there is never any charge or fee for removing any Spamhaus listing. Any offer to remove a listing for a fee is a scam. Spamhaus says it has no affiliation with anyone offering a blocklist removal service, and no third party can influence or expedite removals. Deliverability consultants have no special privilege to influence, expedite or modify SBL listings.

For the Gmail side, fix the specific failure the error code named. Gmail's guidelines say to use the Google Admin Toolbox to check and fix settings for your domain. If problems persist, try the troubleshooting tool. Gmail's guidelines say it can take time for improvements in spam rate to reflect positively on spam classification, so do not expect instant recovery.

Preventing the next block

Gmail's guidelines say to make sure recipients opt in to get messages from you. Double opt-in is Spamhaus's own advice against spam traps. Gmail's guidelines say always give recipients an easy way to unsubscribe. If you send more than 5,000 messages per day, your marketing and subscribed messages must support one-click unsubscribe. The headers behind that are covered in one-click unsubscribe, line by line.

Watch your numbers. Gmail's guidelines say to regularly monitor your domain's spam rate in Postmaster Tools. It says a low spam rate helps senders be resilient to occasional spikes in user feedback. A high spam rate means more of your mail gets sorted as spam. Gmail's FAQ says one-click unsubscribe keeps a sender's spam rate low, and that low rate improves delivery.

One more check worth skipping: SORBS has been decommissioned, and SORBS says every query now returns NXDOMAIN, so a lookup against SORBS tells you nothing. Spamhaus says using one blocklist alone limits how well the data works. Check the live lists, fix the cause, and go through the proper channel.

Sources

Filed