VERP and Automated Bounce Handling: DSN Parsing Explained
How to get RFC 3464 DSN bounce reports for a legacy system: which email APIs expose them, what webhooks give you instead, and the VERP setup.
6 min read
A hard bounce is a permanent delivery failure (SMTP 5xx). Learn the codes, the soft bounce difference and when to suppress an address.
Pidgely teamPublished Updated 7 min readMarkdown version

A hard bounce is a permanent delivery failure, such as a mailbox that does not exist, and the address should be suppressed so you never send to it again. A soft bounce is a temporary failure, such as a full mailbox or a receiver throttling you, and the message should be retried with backoff. You tell them apart by the SMTP reply: 5xx codes and 5.x.x enhanced status codes (RFC 3463) are permanent, 4xx and 4.x.x are transient, but the class alone is not enough to decide whether to suppress an address.
A hard bounce is an email that failed permanently, usually with an SMTP 5xx reply (enhanced 5.x.x), such as 550 5.1.1 user unknown. Suppress the address on the first occurrence and never send to it again.
| Hard bounce | Soft bounce | |
|---|---|---|
| SMTP reply | 5xx / 5.x.x | 4xx / 4.x.x |
| Typical cause | Mailbox or domain does not exist | Full mailbox, throttling, server down |
| What to do | Suppress at once | Retry with backoff |
| Suppression time in Pidgely | First occurrence; stays on the list until you remove it | Only after 3 soft bounces in 7 days |
In Pidgely, a hard bounce (a 5xx that is not a policy block or a full mailbox) or an asynchronous DSN adds the address to the suppression list automatically. Policy blocks such as 5.7.1 do not count, because they describe your reputation or content, not the address. Details in the suppressions guide. If your bounce rate climbs, Gmail and Yahoo notice: see the bulk sender requirements for the spam-rate limits.
A bounce can reach you in two ways:
250 OK) and later fails to deliver it, then sends a Delivery Status Notification (DSN, RFC 3464) back to the envelope sender (the Return-Path).Both must feed the same suppression logic. Asynchronous bounces are the reason you need a return-path address you actually process, which is what VERP makes easy.
An SMTP reply (RFC 5321) has a three-digit basic code. Many servers add an enhanced status code (RFC 3463, registry in RFC 5248) in the form class.subject.detail:
550 5.1.1 <jane@example.com>: Recipient address rejected: User unknown
452 4.2.2 The email account that you tried to reach is over quota
421 4.7.0 Try again later, closing connection
554 5.7.1 Message rejected due to content restrictions2, 4, 5): success, persistent transient failure, permanent failure.1 addressing, 2 mailbox, 3 mail system, 4 network and routing, 5 mail delivery protocol, 6 message content, 7 security or policy.| Code | Meaning | Type | Action |
|---|---|---|---|
| 5.1.1 | Bad destination mailbox (user unknown) | Hard | Suppress immediately |
| 5.1.2 | Bad destination system (domain does not exist or has no MX) | Hard | Suppress, check for typos |
| 5.1.10 | Recipient address has null MX (RFC 7505) | Hard | Suppress |
| 5.2.1 | Mailbox disabled | Hard | Suppress |
| 4.2.2 / 5.2.2 | Mailbox full | Soft (often sent as 5.2.2) | Retry, suppress if persistent |
| 4.4.x | Network or routing problems, connection timed out | Soft | Retry with backoff |
| 4.7.x | Temporary policy, rate limiting, greylisting | Soft | Slow down, retry |
| 5.7.1 | Delivery not authorized, policy or spam block | Policy | Do not suppress the address; investigate |
| 5.7.26 | Authentication failure (Gmail, DMARC/SPF/DKIM) | Policy | Fix authentication |
The simple hard/soft split misses the case that matters most for reputation. A 550 5.7.1 saying your message was blocked as spam is permanent for that message, but it says nothing about whether the address is valid. If you suppress every address that returns a policy rejection, a single bad day at one provider can wipe out a large share of your Gmail or Outlook audience.
Classify bounces into three buckets:
Servers are not always consistent. Some return 550 for a full mailbox, others return 5.0.0 with only free text. Robust classifiers check the enhanced code first, then known text patterns per receiving domain, and default to the safest action.
RFC 5321 recommends retry intervals of at least 30 minutes and giving up after at least 4 to 5 days. A sensible queue behavior:
When the queue lifetime expires, the message becomes a final failure, but the address still did not prove invalid.
Suppress a hard bounce immediately and permanently: the first 5.1.1 is enough. For soft bounces, keep retrying with backoff until the queue lifetime expires (RFC 5321 suggests giving up after at least 4 to 5 days), and only then count the message as failed. Before you tune any of this, make sure your authentication meets the Gmail and Yahoo bulk sender requirements, since those providers also watch your bounce and complaint rates.
A suppression list is the set of addresses your system will refuse to send to, checked before every message is queued. It should contain:
Store the reason, source, timestamp and the raw diagnostic code for each entry:
{
"address": "jane@example.com",
"reason": "hard_bounce",
"status": "5.1.1",
"diagnostic": "smtp; 550 5.1.1 User unknown",
"stream": "*",
"created_at": "2026-10-12T14:03:22Z"
}Scope matters. A hard bounce applies to every stream. An unsubscribe from a newsletter should not stop password resets. A complaint usually applies to all non-transactional streams.
Normalize addresses before lookup (lowercase the domain; be careful with the local part, which RFC 5321 treats as case-sensitive even though almost no providers do), and allow removal with an audit trail when a user fixes their mailbox.
Mailbox providers watch how often you hit nonexistent addresses. A sender who regularly mails invalid users is either buying lists or not maintaining them, and both correlate strongly with spam. Old addresses can also be recycled into spam traps. High hard-bounce rates therefore damage reputation even when the rest of your mail is wanted.
5.1.1 address is pure reputation cost.5.7.x as if the address were dead.250.Pidgely classifies synchronous replies and DSNs into these categories, adds hard bounces and complaints to the suppression list automatically, and emits a webhook event for each one so your application stays in sync.
A hard bounce is a permanent failure, signaled by a 5xx SMTP reply or a 5.x.x enhanced status code, such as a nonexistent mailbox. A soft bounce is a temporary failure (4xx or 4.x.x), such as a full mailbox or throttling, and the message can be retried.
For mailbox-level permanent errors such as 5.1.1 (user unknown), yes, immediately. Policy rejections such as 5.7.1 usually reflect your reputation or content, not the address, and should not trigger permanent suppression on their own.
There is no standard. A common approach is to suppress after repeated soft bounces across several separate sends over a period of days, since a mailbox that has been full for weeks is effectively abandoned.
As low as possible. Hard bounces mainly come from stale or unverified lists. A rising hard bounce rate is one of the clearest signals receivers use to identify poor list hygiene.
Pidgely team
Published
We build Pidgely, the email API that gets you to the inbox. We write about what we learn delivering email, citing the standards and mailbox provider guidelines behind every claim.
How to get RFC 3464 DSN bounce reports for a legacy system: which email APIs expose them, what webhooks give you instead, and the VERP setup.
6 min read
Lost SendGrid's free plan? Switch over SMTP to Pidgely Free: 6,000 emails/month, 200/day, 3 domains. Step by step with SPF and DKIM.
5 min read
Free email API plans compared with numbers and sources (checked Nov 3, 2026): Pidgely 6,000 emails/month, Resend 3,000, SendGrid only a 60-day trial.
3 min read