[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now


What values for email "delivery-status" exist?

Posted on 2009-04-27
Medium Priority
Last Modified: 2012-08-13
I'm creating a C# console app that will get emails from an Exchange mailbox, check to see if they are 'bounce back' emails and if so filter them as either 'hard errors' (where the delivery-type action is 'failed') or 'soft errors' (where the action is 'delayed'). Any emails not caught by this (such as 'unsubscribe') are then forwarded to a distribution list so various employees in my company can read those emails and take manual action as required.

My question is: what other types of delivery-status are there? 'Failed' is an obvious one I will work with (by locating and removing their record in my database, which is used to create recipient lists), and 'Delayed' is an action I can simply ignore for the most part.

What other actions are there that could be caught prior to forwarding on emails that need human interaction? Is there a list somewhere? Obviously I tried Google first, and then searched here, but no joy.
Question by:QMKevin
  • 2
LVL 14

Expert Comment

by:Erik Pitti
ID: 24246966
I refer back to the SMTP protocol documents:

Mail System Status Codes

The first digit is the overall success or failure of message delivery.
2.X.X   Success
4.X.X   Persistent Transient Failure (soft-fail)
5.X.X   Permanent Failure (hard-fail)

The second gives the general reason why a message has failed delivery
X.0.X   Other or Undefined Status
X.1.X   Addressing Status
X.2.X   Mailbox Status
X.3.X   Mail System Status
X.4.X   Network and Routing Status
X.5.X   Mail Delivery Protocol Status
X.6.X   Message Content or Media Status
X.7.X   Security or Policy Status

The third gives specific reasons why the message failed.

5.2.2   Mailbox full

LVL 14

Accepted Solution

Erik Pitti earned 750 total points
ID: 24246968
If you're looking for Exchange-specific delivery status codes, you can find those here:

Delivery status notifications in Exchange Server and in Small Business Server

Author Closing Comment

ID: 31575251
While I was specifically looking for values of "Action" I was able to adapt my code to use extract the status code from my email object instead, making this posts hyperlink the most useful for what I need. I can now identify 'soft' errors vs. 'hard' errors by their status code.


Featured Post

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Are you looking for the options available for exporting EDB files to PST? You may be confused as they are different in different Exchange versions. Here, I will discuss some options available.
This article will help to fix the below errors for MS Exchange Server 2016 I. Certificate error "name on the security certificate is invalid or does not match the name of the site" II. Out of Office not working III. Make Internal URLs and Externa…
To show how to generate a certificate request in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.:  First we need to log into the Exchange Admin Center. Navigate to the Servers >> Certificates…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…
Suggested Courses
Course of the Month19 days, 20 hours left to enroll

873 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question