Most SMTP bounce codes I see in support tickets come from nine repeatable mistakes—and most of them surface only after the first production send batch fails. By then you've lost hours and possibly damaged your sender reputation.
This checklist walks through the twelve validation steps you need before flipping the switch, plus the exact mistakes that cause each common bounce code.
The 12-step SMTP validation checklist
Run these checks in order. Each one uncovers a specific class of error before it hits production.
1. Verify DNS records are published and propagated
Your MX, SPF, DKIM, and DMARC records must exist and resolve correctly from multiple vantage points. Use dig or an online propagation checker to confirm each record from at least three geographically dispersed resolvers.
Mistake 1: Assuming immediate DNS propagation
People publish records and test from the same network two minutes later. Your local resolver may cache the new record, but authoritative servers elsewhere still serve stale data. Wait at least thirty minutes, ideally two hours, before declaring propagation complete. Check from a machine outside your network.
2. Confirm your server's reverse DNS matches the HELO hostname
Your SMTP server's IP address must have a PTR record that matches the hostname your server announces in the HELO/EHLO command. Most receiving servers reject mail when these don't align.
dig -x 203.0.113.45 +short
# Should return mail.yourdomain.com
Mistake 2: Using a generic or mismatched PTR record
I've seen VPS owners leave the default PTR record from their hosting provider (something like vps-12345.provider.net) while their mail server announces mail.clientdomain.com. Recipient servers see this mismatch and issue a 550 or soft-fail the connection. Set the PTR through your hosting control panel or open a ticket with your provider.
3. Test the SMTP connection from an external network
Telnet to port 25 from a machine outside your infrastructure to confirm the port is open and the service responds.
telnet mail.yourdomain.com 25
You should see a 220 greeting banner. If the connection times out, your firewall or your ISP is blocking outbound port 25.
Mistake 3: Testing only from localhost or the same subnet
Your server may answer on 127.0.0.1 and even on the LAN IP, but if your firewall or cloud security group doesn't allow inbound port 25 from the internet, external mail servers can't deliver to you. Conversely, many residential and cloud provider networks block outbound port 25 to prevent spam. Test from an external shell or VPS.
4. Validate SPF syntax and include depth
SPF records that exceed ten DNS lookups fail validation. Each include: or redirect= mechanism counts toward that limit, and nested includes multiply quickly.
Use an SPF validator to count your lookups. If you're over the limit, flatten the record by replacing some includes with their resolved IP ranges, or split services across subdomains.
Mistake 4: Stacking too many third-party services in one SPF record
Adding include: statements for every SaaS mailer (transactional email, marketing platform, helpdesk, CRM) pushes you past ten lookups fast. The receiving server stops processing and treats your SPF as invalid, which leads to soft fails or outright rejection. Audit your includes and remove any service you no longer use.
5. Verify DKIM signing is active and the selector is correct
Send a test message to a mailbox you control and inspect the headers for a DKIM-Signature field. The selector (s=) must match the DNS record you published.
Mistake 5: Publishing a DKIM record but never enabling signing in the MTA
The DNS TXT record sits there looking correct, but your mail server (Postfix, Exim, or your application's SMTP library) isn't configured to sign outgoing messages. The headers arrive with no signature, DKIM fails, and some recipients bounce or junk the mail. Check your MTA's configuration and confirm the signing key path is correct.
6. Set a DMARC policy and monitor the reports
Start with p=none and an rua= address to collect aggregate reports. This gives you visibility into who is sending on your behalf and whether SPF and DKIM align.
Mistake 6: Jumping straight to p=reject without monitoring
I've seen new domains publish p=reject on day one, assuming their SPF and DKIM are perfect. A misconfigured include or a forgotten subdomain later, legitimate mail starts bouncing. Spend at least two weeks in p=none mode reviewing the XML reports. Move to p=quarantine, then p=reject only after you're confident alignment is stable.
7. Test message size limits
Send a test email with a large attachment to confirm your server and the recipient's server both accept the size. Default SMTP limits often sit around 10 MB, but some mailboxes enforce lower thresholds.
Mistake 7: Exceeding the recipient's size limit and getting a 552 bounce
Your server might allow 25 MB attachments, but the remote server returns 552 5.3.4 Message size exceeds fixed maximum message size. Users blame your mail server when the problem is on the receiving end. Document your outbound size limit and advise users to check recipient policies before sending large files.
8. Confirm TLS is available and the certificate is valid
Most modern mail servers require or prefer STARTTLS. If your certificate is expired, self-signed, or the common name doesn't match your mail hostname, receiving servers may refuse the connection or downgrade to plaintext (which some reject outright).
openssl s_client -connect mail.yourdomain.com:25 -starttls smtp
Check the certificate chain and expiration date in the output.
Mistake 8: Using a certificate with the wrong common name or no SAN entries
Your web server might have a valid wildcard cert for *.yourdomain.com, but your mail server is configured with a self-signed cert or a cert that lists only the bare domain. When the SMTP client checks the certificate against mail.yourdomain.com, the name doesn't match and the TLS handshake fails. Some servers log this as a temporary failure and retry; others bounce immediately with a 454 or 530 code.
9. Check your IP and domain reputation
Query your sending IP against public blacklists (DNSBLs) and check your domain against reputation services. Even one listing can tank deliverability.
Use a multi-DNSBL lookup tool or query a few major lists manually:
dig 45.113.0.203.zen.spamhaus.org +short
If you get a 127.0.0.x response, you're listed.
Mistake 9: Assuming a new IP is clean
You provision a new VPS or dedicated IP and assume you're starting with a clean slate. The previous owner of that IP might have sent spam, and the IP is still on multiple blacklists. Before you send any production mail, check the IP's history. If it's listed, request delisting from each DNSBL or ask your provider for a different IP.
10. Test rate limits and connection throttling
Sending servers enforce rate limits per connection, per IP, and per domain. Send a batch of test messages in quick succession to see if you hit any throttles or temporary deferrals (451 codes).
Log the SMTP responses. If you see 451 4.7.1 Please try again later or similar, you've hit a rate limit. Adjust your sending rate or implement a retry queue.
11. Verify authentication credentials for relay hosts
If you relay through a smarthost (an ISP's SMTP server, a transactional email service, or a corporate relay), confirm your credentials are correct and the relay permits your sending domain.
Try sending a test message and watch the logs for authentication errors (535 codes).
12. Run a full end-to-end delivery test to major providers
Send test messages to Gmail, Outlook, Yahoo, and a custom domain mailbox you control. Check that each one arrives in the inbox, not spam, and that headers show passing SPF, DKIM, and DMARC.
If any test lands in spam, review the headers for clues. Common issues include missing or misaligned authentication, poor IP reputation, or content triggers.
So what causes the actual bounce codes?
Bounce codes fall into two categories: permanent (5xx) and temporary (4xx). Permanent failures mean the message will not be retried; temporary failures tell the sender to try again later.
Here's what each common code means and which mistake usually triggers it:
550 5.1.1 User unknown
The recipient address doesn't exist. This isn't a configuration mistake on your end—it's a data quality problem. Validate email addresses before adding them to your list.
550 5.7.1 Relaying denied
Your server tried to relay mail for a domain it doesn't host, and authentication failed or wasn't provided. Check your relay permissions and SMTP auth settings.
552 5.3.4 Message too large
See Mistake 7 above. Reduce attachment size or use a file-sharing link.
554 5.7.1 Message rejected due to policy
The recipient server's policy (SPF, DKIM, DMARC, or IP reputation) rejected your message. Review your authentication records and check for blacklist entries.
451 4.7.1 Temporary failure
Rate limit, greylisting, or a transient server issue. Your MTA should retry automatically.
421 4.3.2 Service not available
The receiving server is overloaded or temporarily offline. Retry in a few minutes.
What about soft bounces versus hard bounces?
A hard bounce (5xx) is permanent. Remove the address from your list immediately to avoid damaging your sender reputation.
A soft bounce (4xx) is temporary. Retry for up to seventy-two hours, then treat it as a hard bounce if delivery still fails.
Monitor your bounce rate. If it climbs above two percent, pause sending and investigate. High bounce rates signal to recipient servers that your list is stale or harvested, which accelerates IP reputation decay.
How do I read SMTP logs to diagnose bounces?
Most MTAs log SMTP transactions to /var/log/mail.log or /var/log/maillog. Grep for the recipient address or message ID to trace the conversation.
grep '[email protected]' /var/log/mail.log
Look for the SMTP response codes (the three-digit numbers) and the enhanced status codes (the x.x.x format). The enhanced code gives you more detail about why the message failed.
For example:
550 5.7.1 tells you it's a permanent failure related to policy or security.
452 4.2.2 indicates a temporary failure due to a full mailbox.
What to check first
When mail starts bouncing, look at three things: your authentication records (SPF, DKIM, DMARC), your IP reputation, and the bounce message itself.
Most bounces trace back to one of the nine mistakes above. Fix the DNS and reputation issues before you scale sending, because repairing a damaged sender reputation takes weeks. The twelve-step checklist catches these problems while they're still cheap to fix.
![Common SMTP Bounce Codes: 12 Steps & 9 Mistakes [2026]](/images/blog/common-smtp-bounce-codes-12-steps-9-mistakes-2026.jpg)