In this article5 sections

“Mail Delivery Subsystem: Delivery Status Notification (Failure)”. It arrives in your inbox looking like noise, full of technical lines, and most people read the first sentence and give up. But a bounce message is the most useful diagnostic you will get for an email problem, because the receiving server has told you, in writing, why it said no.

This guide explains how to read it: what the numbers mean, how to tell whose fault it is, and how to trace the usual causes (authentication, reputation, DNS, limits) with a few commands.

The anatomy of a rejection

Every SMTP reply starts with a three-digit code. The first digit is the part to read first:

  • 2xx: accepted. Nothing to fix.
  • 4xx: a temporary failure. The sending server will usually retry on its own, for hours or days. Postfix keeps trying for up to five days by default.
  • 5xx: a permanent failure. The message is rejected and will not be retried. You get a bounce.

Most modern servers add an enhanced status code in the form x.y.z, for example 5.1.1 or 5.7.26. The first digit repeats 2, 4 or 5; the second says which area (1 is addressing, 2 the mailbox, 3 the mail system, 4 the network, 5 protocol, 7 security and policy); the third is the detail. And then a text, which is the part written for humans, and often contains a link to the provider’s help page about exactly this rejection. Read it. It frequently names the exact cause.

Also check who rejected the message. A bounce generated by your own server (“Message rejected by the local system”, “relay access denied”) is a different problem from one that says “Remote server returned” followed by the other side’s reply.

The common ones, in plain words

550 5.1.1: user unknown. The recipient address does not exist on the other server. Usually a typo, an old address, or an account that was deleted. Check the address character by character. If it worked before, the account was removed or renamed.

552 5.2.2: mailbox full. The recipient has run out of space. Temporary in practice; ask them to clear space. If it is your own mailbox that is full, increase the quota or archive.

552 5.3.4 or “message size exceeds limit”. The message is too large. Share a link instead of a large attachment.

550 5.7.1 or 554 5.7.1: rejected by policy. The broadest family. Read the text. It might mean your IP is on a blocklist, the message failed SPF or DKIM, the content looked like spam, or your server is not allowed to send to that destination. The detail is in the words after the code.

550 5.7.26: not authenticated (Gmail). Gmail says the message fails both SPF and DKIM, or fails DMARC alignment. This is the most common rejection of recent years. The fix is to authenticate properly: see the guide on SPF, DKIM and DMARC for a domain that sends from several services.

550 5.7.25: no reverse DNS (Gmail). The sending IP has no PTR record, or the PTR name does not resolve back to that IP. This is a DNS record at the owner of the IP (your hosting provider), not in your domain’s DNS.

550 5.7.509: DMARC rejection (Microsoft). The sending domain’s DMARC policy is reject and the message failed it. The message is not authorised to use that domain.

554 5.7.1 “Relay access denied”. Your mail program tried to send through a server that does not accept mail from you for that destination, usually because it was not authenticated. Turn on SMTP authentication in the mail client, and use the right port (587 with STARTTLS or 465 with TLS, rather than 25).

553 5.1.8 or “sender address rejected: Domain not found”. The receiving server could not find DNS for your sender’s domain. Check that the domain’s MX or A record exists and resolves.

421, 450, 451, 452: try again later. Greylisting (a new sender is deliberately delayed), a rate limit (“too many messages from your IP”), a busy server, or a local problem. Do nothing for a while; if it persists beyond a few hours, read the text for the actual limit.

Trace it: step by step

1. Find the message in your own mail log

On Postfix, find the queue ID from the bounce or the recipient, then follow it:

sudo grep -i "[email protected]" /var/log/mail.log | tail
sudo grep QUEUEID /var/log/mail.log

You will see status=bounced or status=deferred and the reply from the other side, word for word. On Exim, use exigrep on /var/log/exim_mainlog, or exim -Mvl <message-id>.

To see what is waiting:

sudo postqueue -p
sudo exim -bp

2. Check authentication from outside

SPF, DKIM and DMARC are published in DNS. Look at what the world sees:

dig +short TXT example.com | grep spf1
dig +short TXT selector._domainkey.example.com
dig +short TXT _dmarc.example.com

Send a test message to a mailbox at a large provider, open “Show original” (Gmail) or “View message source”, and read the Authentication-Results header. It states spf=pass or fail, dkim=pass or fail, and dmarc=pass or fail, with the domain that was used. If SPF passes but DMARC fails, the problem is alignment: the domain that passed is not the one in the From address.

3. Check reverse DNS

dig +short MX example.com
curl -s ifconfig.me
dig -x 203.0.113.10 +short
dig +short A mail.example.com

The reverse lookup of your sending IP should return a name, and that name should resolve forward to the same IP. Set the PTR at your hosting provider; domain DNS cannot do it.

4. Check blocklists

Search your sending IP and your domain in a public blocklist checker (for example MXToolbox’s blacklist check, or Spamhaus’s lookup). If you are listed, the listing’s page usually states the reason and the delisting procedure. Delisting without fixing the cause, such as a compromised account sending spam, gets you listed again within days.

5. Test the SMTP conversation yourself

A manual test shows exactly where it fails. To check that a server offers encryption and authentication on the submission port:

openssl s_client -starttls smtp -connect mail.example.com:587 -crlf -quiet

Then type EHLO test.example.com and read the capabilities (STARTTLS, AUTH). The swaks tool automates a full send, with a clear transcript:

swaks --to [email protected] --from [email protected] --server mail.example.com --port 587 --tls --auth-user [email protected]

It asks for the password on the terminal, which keeps it out of your shell history. If your server cannot connect to other mail servers on port 25 at all, your provider may block outbound port 25 (many cloud providers do by default): either ask them to lift it, or send through a relay on port 587 or 465.

The usual root causes, ranked

  1. Missing or broken authentication: SPF, DKIM and DMARC not set, set for the wrong sender, or not aligned.
  2. No or wrong PTR record on the sending IP.
  3. A listed IP: a shared IP with bad neighbours, or your own after a compromise.
  4. Rate limits and volume: sending a burst of messages from a new IP or domain.
  5. Content and reputation: link shorteners, odd attachments, mismatched sender names, no unsubscribe on bulk mail.
  6. Your own server blocked it: relay settings, an overly strict firewall, or a full disk (see the guide on finding what is eating your disk).

When it is worth getting help

Email problems are expensive because they are silent: nobody tells you which invoices or quotes never arrived. If a business email domain has delivery trouble, if bounces say things you cannot decode, or if you need a mail setup (SPF, DKIM, DMARC, PTR, a relay such as Amazon SES, SendGrid or Mailgun) tested from real inboxes, I do this regularly.

You can see my profile on Upwork and send the bounce text with the sensitive parts removed, or read about the email and DNS service. There is also a plain-language page on SPF, DKIM and DMARC.