Home / AWS

AWSRunbookAdvanced

Amazon SES account under review or sending paused: bring bounce and complaint rates down and get mail flowing again

A runbook for when SES puts your account under review or pauses sending. Find the source of bounces and complaints, stop the bad traffic, clean lists with the suppression list and add alarms that act first.

Deepak Bhardwaj7 min read

Applies toAmazon SES (API v2 and classic API), Amazon CloudWatch, Amazon SNS, AWS Lambda, AWS CLI v2

Password resets and order confirmations stop arriving, the application logs show Sending paused for this account or MessageRejected, and the SES console has a banner saying the account is under review. SES does this when the account's bounce or complaint rate stays too high. Getting back to normal means proving you've found the cause and fixed it. Re-sending harder won't help.

Step 1: confirm the account state

Run this in the Region that sends the mail. SES reputation is tracked per Region.

aws sesv2 get-account --region eu-west-1 \
  --query '{Sending:SendingEnabled,Enforcement:EnforcementStatus,Production:ProductionAccessEnabled,Quota:SendQuota}'
EnforcementStatus Meaning What you can do
HEALTHY No enforcement Check whether a configuration set is paused instead (Step 4)
PROBATION Under review, can still send Fix the cause before the review period ends
SHUTDOWN Sending paused by AWS Fix the cause, then ask AWS to review the account

If SendingEnabled is false but enforcement is HEALTHY, someone (or your own automation) paused the account. You can resume it yourself:

aws sesv2 put-account-sending-attributes --sending-enabled

Warning

That command doesn't lift a pause that AWS applied. For an AWS-applied pause, use the reputation page in the SES console, or a support case, to explain what you fixed. Requests that just say "please re-enable" usually get turned down.

Step 2: look at the rates and when they moved

SES publishes account reputation metrics to CloudWatch in the AWS/SES namespace. The values are ratios, so 0.05 means 5%.

for m in Reputation.BounceRate Reputation.ComplaintRate; do
  echo "== $m"
  aws cloudwatch get-metric-statistics --namespace AWS/SES --metric-name $m \
    --start-time $(date -u -d '-14 days' +%FT%TZ) --end-time $(date -u +%FT%TZ) \
    --period 86400 --statistics Maximum --output table
done

At the time of writing, AWS documents a review at a 5% bounce rate (possible pause at 10%) and a review at a 0.1% complaint rate (possible pause at 0.5%). Check the current figures in the SES documentation. The rates are calculated over a window of recent sending, not just today, so one bad campaign can keep the rate high for days.

Find the day it jumped and line it up with deployments, imports and marketing sends. Typical causes:

Pattern Likely cause
Bounce spike on one day Old or bought list imported, a CSV with shifted columns, a test that sent to fake addresses
Steady climb in bounces Signup form without confirmation, bots submitting random addresses
Complaint spike Marketing mail sent from the transactional identity, no unsubscribe link, mail to people who never opted in
Bounces to a single domain That provider blocking you; check the diagnostic codes

Step 3: find who is generating the bounces

You need the bounce and complaint events themselves. If nothing collects them yet, set that up first. Go through each sending identity and configuration set.

aws sesv2 list-email-identities --query 'EmailIdentities[].[IdentityName,IdentityType,SendingEnabled]' --output table
aws sesv2 list-configuration-sets

Send bounce, complaint and reject events from a configuration set to SNS:

aws sesv2 create-configuration-set-event-destination \
  --configuration-set-name prod-transactional \
  --event-destination-name feedback-to-sns \
  --event-destination '{"Enabled":true,"MatchingEventTypes":["BOUNCE","COMPLAINT","REJECT"],"SnsDestination":{"TopicArn":"arn:aws:sns:eu-west-1:111122223333:ses-feedback"}}'

For mail sent without a configuration set, set identity-level notifications with the classic API:

aws ses set-identity-notification-topic --identity example.com --notification-type Bounce \
  --sns-topic arn:aws:sns:eu-west-1:111122223333:ses-feedback
aws ses set-identity-notification-topic --identity example.com --notification-type Complaint \
  --sns-topic arn:aws:sns:eu-west-1:111122223333:ses-feedback

Subscribe an SQS queue to the topic, then pull a sample and group the events. Event publishing uses eventType; identity notifications use notificationType.

aws sqs receive-message --queue-url "$Q" --max-number-of-messages 10 --query 'Messages[].Body' --output text \
 | jq -r '.Message | fromjson | [(.eventType // .notificationType), .mail.source, (.bounce.bounceType // "-"),
          ((.bounce.bouncedRecipients // .complaint.complainedRecipients)[0].emailAddress | split("@")[1])] | @tsv' \
 | sort | uniq -c | sort -rn

This shows which sender address (that is, which application or team) and which recipient domains make up most of the problem. Look at bounce.bouncedRecipients[].diagnosticCode for the receiving server's reason.

Tip

Only Permanent bounces (address doesn't exist) should remove an address. Transient bounces (mailbox full, throttled) are temporary. Treating them as permanent throws away good customers.

Step 4: stop the bad traffic without stopping everything

If the problem comes from one stream, such as a newsletter or a batch import job, pause only that configuration set so password resets keep flowing:

aws sesv2 put-configuration-set-sending-options --configuration-set-name marketing-bulk --no-sending-enabled

Also stop the job or code path that sends from that stream. Then make sure the suppression list will block repeat offenders account-wide:

aws sesv2 get-account --query 'SuppressionAttributes'
aws sesv2 put-account-suppression-attributes --suppressed-reasons BOUNCE COMPLAINT

Add the addresses you found in Step 3 straight away, without waiting for them to bounce again:

aws sesv2 put-suppressed-destination --email-address bad@example.net --reason BOUNCE
aws sesv2 list-suppressed-destinations --reasons BOUNCE \
  --start-date $(date -u -d '-7 days' +%FT%TZ) --query 'SuppressedDestinationSummaries[].EmailAddress'

Caution

Never bulk-delete the suppression list to "clear" a pause. Every address you remove can bounce again and push the rate back up during the review. Only remove an address when its owner confirms it works again: aws sesv2 delete-suppressed-destination --email-address user@example.com.

Step 5: clean the source data

The suppression list stops SES from sending, but your application still builds the bad lists. Remove the addresses at the source:

  • Mark hard-bounced and complained addresses as undeliverable in the user or CRM database. A consumer on the SQS queue from Step 3 can do this automatically.
  • Add double opt-in (a confirmation email) to signup forms and a CAPTCHA to public forms.
  • Add a one-click unsubscribe header to bulk mail and keep marketing on a separate identity and configuration set.
  • Don't re-send old imported lists until you've validated them.

Step 6: request the review

Once the rates have stopped rising and the bad stream is stopped, open the review from the SES console reputation page or a support case. Include:

  1. The cause (for example, "a CSV import on 12 November sent to 40,000 unverified addresses").
  2. What you've stopped and cleaned (paused configuration set, suppression entries, source data fixed).
  3. What will prevent it happening again (opt-in, alarms, automatic suppression).

Prevent it next time: alarms that act before AWS does

Alarm well below the review thresholds:

aws cloudwatch put-metric-alarm --alarm-name ses-bounce-rate-high \
  --namespace AWS/SES --metric-name Reputation.BounceRate --statistic Maximum \
  --period 3600 --evaluation-periods 1 --threshold 0.03 --comparison-operator GreaterThanOrEqualToThreshold \
  --treat-missing-data notBreaching --alarm-actions arn:aws:sns:eu-west-1:111122223333:ops-pager

aws cloudwatch put-metric-alarm --alarm-name ses-complaint-rate-high \
  --namespace AWS/SES --metric-name Reputation.ComplaintRate --statistic Maximum \
  --period 3600 --evaluation-periods 1 --threshold 0.0008 --comparison-operator GreaterThanOrEqualToThreshold \
  --treat-missing-data notBreaching --alarm-actions arn:aws:sns:eu-west-1:111122223333:ops-pager

For bulk streams, a Lambda function subscribed to the alarm topic can pause the bulk configuration set automatically, so transactional mail isn't affected:

import boto3

ses = boto3.client("sesv2")

def handler(event, context):
    ses.put_configuration_set_sending_options(
        ConfigurationSetName="marketing-bulk", SendingEnabled=False)
    return {"paused": "marketing-bulk"}

Also enable per-configuration-set reputation metrics so you can see which stream is responsible (aws sesv2 put-configuration-set-reputation-options --configuration-set-name marketing-bulk --reputation-metrics-enabled). Check list-metrics for the dimension names your account publishes before you alarm on them. Require every sending application to use a configuration set, and keep transactional and bulk mail on separate identities, so one bad campaign can't take password resets down with it.