Skip to content

Email deliverability troubleshooting

Section 1 of 8
Size 3 of 5

Professional email05/08Part of the “Professional email for your company” track · Article 11 of 13

Email deliverability troubleshooting

A method for mail that does not arrive: full headers and Authentication-Results, SMTP codes like 5.7.26, bounces, blocklists, swaks and openssl tests.

Abdulwahed MohammadContent writer at tech+14 min read

A dental clinic in Riyadh sends appointment reminders from its own domain. For months they arrive. Then patients with Outlook.com addresses stop confirming, two Gmail users find the reminders in spam, and one patient’s address bounces every time. Three different problems, one complaint: “our email isn’t working”. Diagnosis starts by separating them, because each one has its own evidence and its own fix. This article is the method: where to look first, how to read full headers and SMTP replies, what bounces, blocks and deferrals tell you, how to check and leave blocklists, and how to test from the command line. It assumes you know SPF, DKIM and DMARC, and the bulk sender rules that Gmail, Yahoo and Outlook.com enforce.

01Triage: find the layer first

Before reading any header, collect four facts: the sender address, the recipient address, the time of sending, and the exact text of any error, copied, not paraphrased. Then place the problem:

What you seeWhere the problem isEvidence to read
A bounce with 5.1.xThe addressThe recipient address and the reply text
A bounce with 5.7.xPolicy: authentication, reputation or a blocklistThe reply text, then the headers of a test message
Messages waiting in the queue with 4.x.xA temporary deferralThe server log: the reply and how often it repeats
Delivered, but in spamThe receiver’s filter, after acceptanceAuthentication-Results, then reputation and content
Nothing at all, and no bounceNot sent, or a bounce that never came backYour log for the receiver’s 250 reply; the envelope sender

Then walk the steps in order, and stop at the first one that explains what you see:

  • Was the message accepted: Your server’s log, or the sending service’s activity page, shows each delivery attempt and the receiver’s reply. A 250 reply with a queue ID means the receiving server took responsibility for the message; anything after that happens on its side.
  • Was there a bounce: Read its code and the text after it. The code says the class of problem; the text often names the exact rule and gives a link.
  • Did it land in spam: Get the full headers of that message and read Authentication-Results. A failure there is your fault and fixable; all passes mean reputation or content.
  • Is it one provider or all: One provider points to its own rules, such as Outlook.com’s 5.7.515; all providers point to your DNS, your IP or your list.
  • Did it ever work: If it did, ask what changed: a new sending service, a DNS edit, a migration, a new IP, or a campaign to an old list.

02Reading the full headers

Every mail app hides the full headers one step away: in Gmail, “Show original” in the message menu; in Outlook on the web, “View message source”; in Thunderbird, View → Message Source. Ask the recipient to send you that text as an attachment, or send a test to an inbox you own. Headers are added at the top by each server that handles the message, so you read them from the bottom up: the lowest line is the first hop, from the clinic’s appointment system to its mail server, and the highest is the last, into the recipient’s mailbox.

A delivered message’s headers, trimmed to the lines that matter
# Newest at the top: the receiving server’s own verdictsAuthentication-Results: mx.example.com;       dkim=pass [email protected] header.s=s2026 header.b=Qm8x1c2v;       spf=pass (example.com: domain of [email protected] designates 203.0.113.25 as permitted sender) [email protected];       dmarc=pass (p=QUARANTINE dis=NONE) header.from=ibtisamat-riyadh.com# Hop 2: the clinic’s mail server hands the message to the recipient’s server, over TLS 1.3Received: from mail.ibtisamat-riyadh.com (mail.ibtisamat-riyadh.com [203.0.113.25])        by mx.example.com with ESMTPS id 4c7Rk2Zq1x        (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384)        for <[email protected]>; Tue, 24 Nov 2026 14:42:18 +0000# Hop 1, the first: the appointment system submits the message with a passwordReceived: from booking.ibtisamat-riyadh.com ([198.51.100.14])        by mail.ibtisamat-riyadh.com with ESMTPSA id 9Kd3Lw;        Tue, 24 Nov 2026 17:42:16 +0300Return-Path: <[email protected]>From: Appointments <[email protected]>Message-ID: <[email protected]>

Read each Received line for three things. Who handed the message over and from which IP: an IP you do not recognise in your own chain means a sender you forgot. How: ESMTPS means TLS, ESMTPSA means TLS with authentication, and plain SMTP between servers means no encryption. And when: convert each timestamp to UTC and compare. Here 17:42:16 +0300 is 14:42:16 UTC, two seconds before the next hop. A gap of hours between two lines shows exactly which server held the message, usually because it was retrying after a deferral.

Also note the : it records the envelope sender, the address SPF checks and the address bounces go to. When it belongs to a sending service rather than to your domain, SPF passes for the service, not for you, and bounces never reach your inbox.

03Authentication-Results and ARC

The header, defined in RFC 8601, is where the receiving server writes its verdicts. Its first token, here mx.example.com, names the server that wrote it, and only the one written by the recipient’s own provider counts: any copy further down may have been added, or forged, before the message arrived. In it, read the pairs:

  • spf= with smtp.mailfrom: The result for the return-path domain. pass means the sending IP is in that domain’s SPF; softfail and fail mean it is not; permerror usually means a broken record or more than 10 DNS lookups.
  • dkim= with header.d or header.i: The result for each signature and the domain that signed it. A message can carry several signatures; what matters is whether one of them passes for your domain.
  • dmarc= with header.from: The final verdict for the visible From domain. pass requires a passing SPF or DKIM whose domain aligns with header.from; the brackets show the policy the receiver applied.

The classic puzzle is spf=pass, dkim=pass and dmarc=fail. It means both checks passed for some other domain, usually the sending service’s, and neither aligns with your From. The fix is on the service’s side: DKIM signing with your domain, or a return-path under it.

Forwarding and mailing lists add a second puzzle. A list that adds a footer breaks the DKIM body hash, and a forwarder’s IP is not in your SPF, so DMARC fails at the final hop even though your mail was sound when it left. Forwarders that support ARC (RFC 8617) record what they saw before they changed anything:

A message through a mailing list: DMARC fails at the end, while ARC shows it passed at the list
ARC-Seal: i=1; a=rsa-sha256; cv=none; d=lists.example.org; s=arc1; t=1795531338; b=...ARC-Message-Signature: i=1; a=rsa-sha256; d=lists.example.org; s=arc1; h=from:to:subject:date; b=...ARC-Authentication-Results: i=1; lists.example.org;       dkim=pass header.d=ibtisamat-riyadh.com; spf=pass smtp.mailfrom=ibtisamat-riyadh.com;       dmarc=pass header.from=ibtisamat-riyadh.comAuthentication-Results: mx.example.com;       dkim=fail (body hash did not verify) header.d=ibtisamat-riyadh.com;       spf=pass smtp.mailfrom=lists.example.org;       dmarc=fail header.from=ibtisamat-riyadh.com; arc=pass (i=1)

Here ARC-Authentication-Results with i=1 says the list saw dmarc=pass, and arc=pass says the receiver trusts that chain. Whether the receiver lets the message through on that basis is its decision. The article on ARC and the other standards covers how it works.

04SMTP replies and enhanced status codes

Every SMTP reply starts with a three-digit code from RFC 5321: 2xx accepted, 4xx a temporary failure worth retrying, 5xx a permanent failure. Most servers add an from RFC 3463 in the form class.subject.detail. The class repeats the first digit; the subject narrows the problem: 1 addressing, 2 the mailbox, 3 the mail system, 4 network and routing, 5 the delivery protocol, 6 message content, 7 security or policy. So 5.1.1 is a permanent addressing problem and 4.7.0 a temporary policy one. The text after the codes matters as much: providers put the exact rule and a help link there.

ReplyUsual meaningFirst step
550 5.1.1The mailbox does not existFix the address or remove it from your list
452 4.2.2 / 552 5.2.2The recipient’s mailbox is full (temporary / permanent)Wait, or reach the person another way
421 4.7.0A temporary policy refusal: TLS, PTR or low reputation, depending on the textRead the text after the code
421 4.7.28Gmail is rate limiting an unusual rate of mailPause at least 10 minutes, then resume slowly
550 5.7.1Blocked by policy: likely spam, or not meeting a sending ruleRead the text and the link it gives
550 5.7.25Gmail: the sending IP has no PTR, or it does not matchFix forward and reverse DNS
550 5.7.26Gmail: unauthenticated, or failed the domain’s DMARC policyRead Authentication-Results of a test message
550 5.7.515Outlook.com: a high-volume domain without the required authenticationSPF and DKIM must both pass, and a DMARC record must exist
5xx naming a blocklistThe sending IP or a domain in the message is listedCheck the listing and fix its cause

A 4xx reply that repeats for hours is a problem in its own right. RFC 5321 recommends that senders keep retrying for at least 4 to 5 days, so a deferred message may arrive days late, or bounce with a final “delivery time expired” notice. In the log, a growing number of 4.7.x replies from one provider almost always means reputation or rate, not configuration.

05Bounces, blocks and deferrals

A bounce is a delivery status notification, a message your own server or the receiving one writes back to the return-path. It quotes the receiver’s reply, and that quoted reply is the only part that matters. Three situations look alike to users and are different to fix:

  • Hard bounce: A 5xx about the address, such as 5.1.1. The address is wrong or gone. Remove it at once: repeated sending to dead addresses is one of the signals receivers use to judge your list.
  • Block: A 5xx about you, not the address: 5.7.x for authentication, reputation or a blocklist. Every message to that provider will fail until you fix the cause, so stop the campaign rather than let it burn through the list.
  • Deferral: A 4xx. The message waits in the queue and is retried. Delay notices such as “delivery delayed” are informational; the message is not lost yet.

Two cases produce no bounce at all. If the return-path belongs to a sending service, its bounces go to the service, so read them in its dashboard. And if a message was accepted with 250 and then filtered, the receiver owes you nothing more: the evidence is in the headers of a copy the recipient can find in spam, or in the receiver’s dashboards, such as Postmaster Tools for Gmail and SNDS for Outlook.com.

06Blocklists and delisting

A publishes listed IPs or domains as DNS records, so any receiver can check a connecting IP with one query. Spamhaus runs some of the most widely used: ZEN combines its IP lists, and the DBL lists domains found in spam, including domains in links. To query an IP, reverse its four parts and append the list’s zone:

Checking an IP and a domain against Spamhaus
# Spamhaus ZEN for 203.0.113.25: reverse the parts; no answer means not listeddig +short 25.113.0.203.zen.spamhaus.org# 127.0.0.2 SBL · 127.0.0.3 CSS · 127.0.0.4 XBL · 127.0.0.10 or .11 PBL# 127.255.255.254 is not a listing: your resolver is public, so query from another# A domain in the message or its links, on the Domain Blocklistdig +short ibtisamat-riyadh.com.dbl.spamhaus.org

Spamhaus refuses queries that arrive through large public resolvers and answers them with 127.255.255.254, and it states that this and its other 127.255.255.x answers are errors, not listings. Query from a resolver on your own server, or use Spamhaus’s IP and domain reputation checker at check.spamhaus.org for a manual look; it points listed parties to the right removal path.

What the answer means decides what you do. SBL and CSS point to spam from that IP; XBL to an infected device or a compromised account sending through it; PBL to an address range its owner says should not send mail directly to receivers, typical for home and mobile connections. On a mail server, a PBL listing is fixed by the network owner, not by a delisting form. Other lists, such as Barracuda’s and SpamCop’s, work the same way and have their own removal pages.

Delisting works only after the cause is gone: a stolen mailbox password, an infected form on the website sending spam, a purchased list, a campaign with a broken unsubscribe. Find it in the logs, close it, change the passwords, then request removal once. Requesting removal while the cause is still active tends to bring the listing back, often for longer.

07Testing from the command line

Three tools answer most questions without guessing. Start with dig to see the domain as the world sees it, including the DKIM selector named in the s= tag of a signature:

Checking the records that delivery depends on
# MX, SPF, DMARC and the DKIM key as the world sees themdig +short MX ibtisamat-riyadh.comdig +short TXT ibtisamat-riyadh.comdig +short TXT _dmarc.ibtisamat-riyadh.comdig +short TXT s2026._domainkey.ibtisamat-riyadh.com# Forward and reverse DNS of the sending IPdig +short -x 203.0.113.25dig +short A mail.ibtisamat-riyadh.com

Then openssl s_client to test TLS on the submission ports: the protocol, the certificate chain and whether the certificate covers the name your clients use. An expired or mismatched certificate is a common reason a phone suddenly stops sending.

Testing TLS on the submission ports
# STARTTLS on port 587: protocol, cipher and certificateopenssl s_client -starttls smtp -connect mail.ibtisamat-riyadh.com:587 -servername mail.ibtisamat-riyadh.com -brief </dev/null# Implicit TLS on port 465openssl s_client -connect mail.ibtisamat-riyadh.com:465 -servername mail.ibtisamat-riyadh.com -brief </dev/null# The certificate’s expiry dateopenssl s_client -starttls smtp -connect mail.ibtisamat-riyadh.com:587 -servername mail.ibtisamat-riyadh.com </dev/null 2>/dev/null | openssl x509 -noout -enddate

Finally swaks, the Swiss Army knife for SMTP, sends a real message and prints the whole conversation, so you see each reply as the server gives it. Send to an inbox you own at Gmail or Outlook.com, then read the headers of what arrives:

Sending a traced test message with swaks
# A test message through your own server with authentication over STARTTLS; swaks asks for the passwordswaks --server mail.ibtisamat-riyadh.com --port 587 --tls \  --auth LOGIN --auth-user [email protected] \  --from [email protected] --to [email protected] \  --header "Subject: delivery test $(date +%H:%M)"# Lines starting <~ are the server’s replies: look for 235 after AUTH and 250 after the message

Change one thing at a time and send a fresh test after each change; a message that has already arrived will never show the effect of a DNS edit. And allow for caching: a corrected record may take until its TTL expires to be seen everywhere.

ProblemEvery message to one address bounces with 550 5.1.1
FixThe address does not exist. Check it for typos, ask the person for a current one, and remove the old one from every list.
ProblemGmail puts mail in spam while Authentication-Results shows spf=pass, dkim=pass and dmarc=fail
FixBoth checks passed for another domain. Have the sending service sign with your domain, or use a return-path under it, then send a new test.
ProblemOutlook.com bounces with 550 5.7.515 and other providers accept
FixOutlook.com needs SPF and DKIM both to pass, plus a DMARC record, for domains that send more than 5,000 messages a day. Fix whichever is missing in a test message’s headers.
ProblemThe ZEN query returns 127.255.255.254
FixNot a listing: the query went through a public resolver. Repeat it from your own server’s resolver or use check.spamhaus.org.
ProblemMessages sit in the queue for hours with 421 4.7.0
FixRead the text after the code: TLS, PTR and reputation each have their own wording. Fix the cause and let the queue retry rather than flushing it repeatedly.
ProblemPhones stopped sending while webmail still works
FixTest port 587 or 465 with openssl s_client: an expired certificate or a changed password on the phone is the usual cause.

08Diagnosing your mail at Illevante

If your domain and email are with Illevante, the same method applies, with these tools at hand:

  • The DNS check tool first: The DNS check tool checks your MX records, that every one has an address, that you have exactly one SPF record, and where your DMARC stands, along with CAA and DNSSEC. Each problem comes with how to fix it. It does not check DKIM, so use dig on your selector, or read dkim= in a test message’s headers.
  • Fixes in DNS Console: From each problem the tool finds, a button opens DNS Console, where you correct MX, SPF, DKIM and DMARC records. Run the check again after the TTL passes.
  • Mailboxes with SPF and DKIM: Email on cPanel hosting includes SPF and DKIM, spam filtering and Imunify Email Protection, and you can read any message’s full source from webmail when you need its headers.
  • Status and support: Check status.illevante.com before deep diagnosis. If you open a ticket, attach the full headers of the affected message and the exact bounce text: with those two, support can start from evidence rather than from symptoms.

Most delivery problems end the same way: one record corrected, one sender aligned, or one list cleaned. What takes time is finding which, and the habit that saves that time is simple: copy the exact reply, read the receiver’s own Authentication-Results, and change one thing before testing again. If you are still setting up, go back to how email works and the authentication rollout plan; a domain set up that way rarely needs this article.

Test your understanding

Three questions, one minute

⁦0 / 3⁩Set 1

  1. 01Where do you start reading the Received lines to follow a message’s route?

  2. 02Authentication-Results shows spf=pass, dkim=pass and dmarc=fail. What is the likeliest cause?

  3. 03Which Authentication-Results header should you trust?

Ready to start? Power your projects today

Choose the hosting, server or domain that suits your business, and our specialist team is available around the clock to make your projects a success.

A .com domain a year
$17
cPanel hosting per month
$2
CoreVPS servers per month
$3.50