Skip to content

AWS Simple Email Service-Receiving mail logs, metrics & error reasons

0

We are in the process of trying to introduce AWS SES for Receiving Email and processing it for our internal purposes. Right now we have set up Email Receiving along with Rule Sets and Rules and storing of the received email in S3. While that works fine for the POC that we are working on (email is getting received and stored in S3), we are missing several things:

  1. Logs for the mails that were received and sent to S3
  2. Logs for the mails that were not received due to issues (possibly 40 MB size exceeded), and also the reason for rejection
  3. Metrics for received emails/rejected emails (possibly due to 40 MB size exceeded)

Based on the research so far, we cannot find such functionalities available in SES. Any idea if they are available and how can they be achieved?

1 Answer
0

You can monitor and log your Amazon SES email receiving activities through several methods:

For logging received emails:

  • You can enable Mail Manager logging for your ingress endpoints and rule sets. This provides detailed visibility into message flow from receipt to processing.
  • Logs can be delivered to CloudWatch Logs, S3, or Firehose.
  • To enable this in the console, navigate to the SES console, select either "Ingress endpoints" or "Rule sets" under Mail Manager, select your resource, and expand "Add log delivery" to choose your destination.

For metrics on failures and rejections:

  • Amazon CloudWatch provides failure metrics for your receipt rules under "SES/Rule Metrics".
  • Two key metrics are available:
  1. PublishFailure: Indicates when SES encountered an error executing your configured actions
  2. PublishExpired: Indicates when SES will no longer retry to execute rule actions because they didn't succeed within 36 hours

For understanding rejection reasons:

  • CloudWatch metrics can help identify when emails are rejected
  • Amazon SES email sending events capture detailed information including rejections
  • Amazon SNS notifications can be used for email receiving events

Note that changes to receipt rule sets only apply to emails received after the update. If you're experiencing issues with permissions to S3 buckets, SNS topics, or Lambda functions used by your receipt rules, these could cause the failure metrics to increase.

For comprehensive monitoring, consider using a combination of CloudWatch metrics, Mail Manager logging, and SNS notifications to get full visibility into your email receiving workflow.
Sources
Viewing metrics for Amazon SES email receiving - Amazon Simple Email Service
Mail Manager logging - Amazon Simple Email Service
Logging and monitoring in Amazon SES - Amazon Simple Email Service
Managing email receiving in Amazon SES - Amazon Simple Email Service
Viewing metrics for Amazon SES email receiving - Amazon Simple Email Service

answered a year ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.