Contents of notifications for Amazon SES email receiving
All notifications for email receiving are published to Amazon Simple Notification Service (Amazon SNS) topics in JavaScript Object Notation (JSON) format.
For example notifications, see Notification examples.
Contents
Top-level JSON object
The top-level JSON object contains the following fields.
Field Name | Description |
---|---|
notificationType
|
The notification type. For this type of notification, the value is
always |
Object that contains information about the email delivery. |
|
Object that contains information about the email associated with the notification. |
|
content
|
String that contains the raw, unmodified email, which is typically
in Multipurpose Internet Mail Extensions (MIME) format. For more
information about MIME format, see RFC
2045 NoteThis field is present only if the notification was triggered by an SNS action. Notifications triggered by all other actions do not contain this field. |
receipt object
The receipt
object has the following fields.
Field Name | Description |
---|---|
Object that encapsulates information about the action that was executed. For a list of possible values, see action object. |
|
Object that indicates whether the DomainKeys Identified Mail (DKIM) check passed. For a list of possible values, see dkimVerdict object. |
|
dmarcPolicy |
Indicates the Domain-based Message Authentication, Reporting & Conformance (DMARC) settings for the sending domain. This field only appears if the message fails DMARC authentication. Possible values for this field are:
|
dmarcVerdict | Object that indicates whether the Domain-based Message Authentication, Reporting & Conformance (DMARC) check passed. For a list of possible values, see dmarcVerdict object. |
processingTimeMillis
|
String that specifies the period, in milliseconds, from the time Amazon SES received the message to the time it triggered the action. |
recipients
|
The recipients (specifically, the envelope RCPT TO addresses) that
were matched by the active receipt rule. The addresses listed here may differ from
those listed by the |
Object that indicates whether the message is spam. For a list of possible values, see spamVerdict object. |
|
Object that indicates whether the Sender Policy Framework (SPF) check passed. For a list of possible values, see spfVerdict object. |
|
timestamp
|
String that specifies the qualified date and time at which the
action was triggered, in ISO 8601 |
Object that indicates whether the message contains a virus. For a list of possible values, see virusVerdict object. |
action object
The action
object has the following fields.
Field Name | Description |
---|---|
type
|
String that indicates the type of action that was executed.
Possible values are |
topicArn
|
String that contains the Amazon Resource Name (ARN) of the Amazon SNS topic to which the notification was published. |
bucketName
|
String that contains the name of the Amazon S3 bucket to which the message was published. Present only for the S3 action type. |
objectKey
|
String that contains a name that uniquely identifies the email
in the Amazon S3 bucket. This is the same as the
|
smtpReplyCode
|
String that contains the SMTP reply code, as defined by RFC 5321 |
statusCode
|
String that contains the SMTP enhanced status code, as defined
by RFC
3463 |
message
|
String that contains the human-readable text to include in the bounce message. Present only for the bounce action type. |
sender
|
String that contains the email address of the sender of the email that bounced. This is the address from which the bounce message was sent. Present only for the bounce action type. |
functionArn
|
String that contains the ARN of the Lambda function that was triggered. Present only for the Lambda action type. |
invocationType
|
String that contains the invocation type of the Lambda
function. Possible values are |
organizationArn
|
String that contains the ARN of the Amazon WorkMail organization. Present only for the WorkMail action type. |
dkimVerdict object
The dkimVerdict
object has the following fields.
Field Name | Description |
---|---|
status
|
String that contains the DKIM verdict. Possible values are:
|
dmarcVerdict object
The dmarcVerdict
object has the following fields.
Field Name | Description |
---|---|
status
|
String that contains the DMARC verdict. Possible values are:
|
spamVerdict object
The spamVerdict
object has the following fields.
Field Name | Description |
---|---|
status
|
String that contains the result of spam scanning. Possible values are:
|
spfVerdict object
The spfVerdict
object has the following fields.
Field Name | Description |
---|---|
status
|
String that contains the SPF verdict. Possible values are:
|
virusVerdict object
The virusVerdict
object has the following fields.
Field Name | Description |
---|---|
status
|
String that contains the result of virus scanning. Possible values are:
|
mail object
The mail
object has the following fields.
Field Name | Description |
---|---|
destination
|
A complete list of all recipient addresses (including To: and CC: recipients) from the MIME headers of the incoming email. |
messageId
|
String that contains the unique ID assigned to the email by Amazon SES. If the email was delivered to Amazon S3, the message ID is also the Amazon S3 object key that was used to write the message to your Amazon S3 bucket. |
source
|
String that contains the email address (specifically, the envelope MAIL FROM address) that the email was sent from. |
timestamp
|
String that contains the time at which the email was received, in ISO8601 format. |
headers
|
The Amazon SES headers and your custom headers. Each header has the
following fields: |
The headers common to all emails. Each header has the following
fields: |
|
headersTruncated
|
Specifies whether the headers were truncated in the notification,
which happens if the headers are larger than 10 KB. Possible values
are |
commonHeaders object
The commonHeaders
object can have the fields shown in the following
table. The fields present in this object vary depending on which fields were present
in the incoming email.
Field Name | Description |
---|---|
messageId |
The ID of the original message. |
date |
The date and time when Amazon SES received the message. |
to |
The To header of the email. |
cc |
The CC header of the email. |
bcc |
The BCC header of the email. |
from |
The From header of the email. |
sender |
The Sender header of the email. |
returnPath |
The Return-Path header of the email. |
replyTo |
The Reply-To header of the email. |
subject |
The Subject header of the email. |