DEV Community

Nisa J. Thani
Nisa J. Thani

Posted on

Access the full details of Delivery Status Notification (Failure) messages from Amazon SES

We received a message from Amazon SES notifying us an error had occurred while trying to deliver an email to a recipient:

From: <MAILER-DAEMON@amazonses.com>
Date: Tue, Dec 15, 2020, 3:33 PM
Subject: Delivery Status Notification (Failure)
To: My Company <abc@example.com>

An error occurred while trying to deliver the mail to the following recipients:
johndoe@****de.com
Enter fullscreen mode Exit fullscreen mode

At first glance, it seems that no causes of the errors are specified in the email, but that is not the case. You can access hidden information by downloading the original message. You will get an .eml file, and it will contain info. such as the following:

Action: failed
Final-Recipient: ******; johndoe@****de.com
Diagnostic-Code: blah blah blah Message expired: unable to deliver in 840 minutes.<The email account that you tried to reach is over quota. blah blah blah
Enter fullscreen mode Exit fullscreen mode

In this case, the recipient’s inbox was full it could not receive the email.

Top comments (0)