Bouncewise

Bouncewise › Guides › Postmark hard bounce meaning, and every bounce type

Postmark guide

Postmark bounce types: HardBounce, SoftBounce, Transient and more

By the Bouncewise team · Updated · 5 min read · How we check guides

Short answer

In Postmark a hard bounce (Type HardBounce, TypeCode 1) means the receiving server was unable to deliver your message, for example an unknown user or a mailbox that doesn't exist. Postmark deactivates the address and adds it to the message stream's suppression list, so later sends to it fail with error 406 until it is reactivated. Postmark records 22 bounce types in all; only some deactivate the address, and the Inactive and CanActivate fields on each bounce tell you what happened and whether you can undo it.

Every Postmark bounce type and TypeCode

Each bounce from the Bounce API or the bounce webhook has a Type (string), a TypeCode (integer) and a Name. Descriptions are Postmark's, some shortened:

TypeTypeCodeName and Postmark's descriptionWhat to do
HardBounce1Hard bounce: The server was unable to deliver your message (ex: unknown user, mailbox not found).Deactivates the address. Fix it with the user; don't just reactivate.
Transient2Message delayed/Undeliverable: The server could not temporarily deliver your message (ex: Message is delayed due to network troubles).Usually nothing; watch for a later hard or soft bounce.
Unsubscribe16Unsubscribe request: Unsubscribe or Remove request.Stop mailing the address.
Subscribe32Subscribe request: Subscribe request from someone wanting to get added to the mailing list.Handle in your app if you care.
AutoResponder64Auto responder: Automatic replies, including nondescript NDRs and some out-of-office replies.Usually an out-of-office reply; read Details.
AddressChange128Address change: The recipient has requested an address change.Ask the user for the new address.
DnsError256DNS error: A temporary DNS error.Retry later; check the domain if it repeats.
SpamNotification512Spam notification: The message was delivered, but was either blocked by the user, or classified as spam, bulk mail, or had rejected content.Review content and authentication.
OpenRelayTest1024Open relay test: The NDR is actually a test email message to see if the mail server is an open relay.Ignore.
Unknown2048Unknown: Unable to classify the NDR.Read Details and the dump.
SoftBounce4096Soft bounce: Unable to temporarily deliver message (i.e. mailbox full, account disabled, exceeds quota, out of disk space).Check Inactive; repeated soft bounces mean a dead mailbox.
VirusNotification8192Virus notification: A virus notification warning about a virus/code infected message.Check attachments and links.
ChallengeVerification16384Spam challenge verification: A challenge asking for verification you actually sent the email.Ignore for transactional mail.
BadEmailAddress100000Invalid email address: The address is not a valid email address.Validate addresses at sign-up.
SpamComplaint100001Spam complaint: The subscriber explicitly marked this message as spam.Deactivated; only Postmark support can reactivate.
ManuallyDeactivated100002Manually deactivated: The email was manually deactivated.Reactivate only if it was a mistake.
Unconfirmed100003Registration not confirmed: The subscriber has not clicked on the confirmation link upon registration or import.Rare for transactional mail.
Blocked100006ISP block: Blocked from this ISP due to content or blacklisting.A reputation or content problem, not a bad address.
SMTPApiError100007SMTP API error: An error occurred while accepting an email through the SMTP API.Fix the SMTP submission (see Details).
InboundError100008Processing failed: Unable to deliver inbound message to destination inbound hook.Your inbound webhook failed.
DMARCPolicy100009DMARC Policy: Email rejected due DMARC Policy.Fix SPF/DKIM alignment for the From domain.
TemplateRenderingFailed100010Template rendering failed: An error occurred while attempting to render your template.Check the template and TemplateModel.

Branch on Type or TypeCode in code, never on Name or Description, which are display text.

List of Postmark bounces grouped by type, with hard bounces and soft bounces counted separately
Bounces by type.

What a hard bounce means in Postmark

A hard bounce is a permanent refusal for that address. This one is from Postmark's Bounce API reference, shortened:

{
  "ID": 676862817,
  "Type": "HardBounce",
  "TypeCode": 1,
  "Name": "Hard bounce",
  "MessageStream": "outbound",
  "Description": "The server was unable to deliver your message (ex: unknown user, mailbox not found).",
  "Details": "smtp;554 delivery error: dd This user doesn't have a yahoo.com account ([email protected]) [0] - mta1543.mail.ne1.yahoo.com",
  "Email": "[email protected]",
  "BouncedAt": "2013-10-18T09:49:59Z",
  "DumpAvailable": false,
  "Inactive": true,
  "CanActivate": true
}

Details holds the receiving server's own words; that is where you see 550 5.1.1 user-unknown replies (550 5.1.1 explained). Inactive: true means Postmark deactivated the address, and the next send to it in that stream returns ErrorCode 406. CanActivate: true means you may reactivate it, but it will hard bounce again unless the address was corrected or the mailbox restored: how to reactivate.

A single hard bounce with its type, the receiving server's 550 reply and whether the address is inactive
The server's reply is in the bounce details.

Which bounce types deactivate an address

Postmark's subscription change webhook says an address is added to a stream's suppression list after a hard bounce, a spam complaint, an unsubscribe or a manual suppression. The suppression list records these as HardBounce, SpamComplaint and ManualSuppression; unsubscribes are stored as ManualSuppression.

EventDeactivates?Can you reactivate?
HardBounceYesYes (CanActivate: true)
SpamComplaintYesNo; Postmark support only (spam complaints)
ManuallyDeactivated / unsubscribeYesYes, from the suppression list
SoftBounce and the restNot as a ruleCheck the bounce's Inactive and CanActivate

Postmark's own guidance for soft bounces (TypeCode 4096) is to check Inactive to see whether it deactivated the address. Don't infer it from the type: read the two booleans on every bounce you handle.

Soft bounce, Transient and Blocked: the ones people misread

  • SoftBounce (mailbox full, account disabled, over quota) is temporary at the mailbox. One is noise; the same address soft bouncing for weeks is a dead mailbox, so stop sending to it yourself.
  • Transient is a delay, not a failure. The message may still arrive.
  • Blocked (ISP block, due to content or blacklisting) says nothing about the address. Reactivating or re-entering addresses won't help; check your sending domain's authentication and reputation (checklist).
  • DMARCPolicy means the receiving server applied your From domain's DMARC policy. Fix DKIM and Return-Path alignment.
  • SpamNotification means the message was delivered but blocked by the user or classified as spam or bulk. AutoResponder covers out-of-office replies and some NDRs Postmark can't classify further.
  • InboundError isn't about outbound mail at all: Postmark couldn't POST an inbound message to your webhook (inbound failed).

Find and test bounces by type

List hard bounces that deactivated an address in the default transactional stream:

curl "https://api.postmarkapp.com/bounces?type=HardBounce&inactive=true&count=50&offset=0&messagestream=outbound" \
  -H "Accept: application/json" \
  -H "X-Postmark-Server-Token: $POSTMARK_SERVER_TOKEN"

count is at most 500 and count + offset can't exceed 10,000; use fromdate/todate (Eastern Time) for more. Bounces are kept for your retention period, 45 days by default, and raw dumps for 30 days. GET /deliverystats returns counts per type and the number of inactive addresses.

To test your handling, send to [email protected] with a type name in front, for example [email protected] or [email protected]. A test hard bounce acts like a real one and adds that test address to the stream's suppression list.

Questions

What is TypeCode 4096 in Postmark?

SoftBounce: Postmark couldn't deliver temporarily, for example because the mailbox is full, the account is disabled or over quota. Check the bounce's Inactive field to see whether the address was deactivated.

Does a soft bounce deactivate an address in Postmark?

Not as a rule. Hard bounces, spam complaints, unsubscribes and manual suppressions are what put an address on the suppression list; for a soft bounce, the bounce's Inactive field tells you.

How long does Postmark keep bounce records?

For your retention period, which is 45 days by default. Raw bounce dumps are kept for 30 days.

How do I trigger a test hard bounce in Postmark?

Send to [email protected]. Every bounce type has a matching address at bounce-testing.postmarkapp.com.

Sources