Index of every page on this site: llms.txt
All skills
amazon-ses avatar

/aws-mail-manager

@58f234e
Run it yourself

Process, route, filter, and archive inbound email with Amazon SES Mail Manager. Use when building email ingress pipelines, spam/IP filtering, compliance archiving, SMTP relay forwarding, address allow/block lists, or any inbound email processing workflow. Covers ingress points, traffic policies, rule sets, relays, archives, and address lists.

Use this Skill: https://skilld.dev/gh/amazon-ses/skills/aws-mail-manager

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

referencestroubleshootingtroubleshooting-guide.md

≈2k tokens on demand. Your agent reads this file only when SKILL.md points to it.

Troubleshooting Guide

Common issues when working with Mail Manager and how to resolve them.

Ingress Point Issues

Ingress point stuck in PROVISIONING

The ingress point typically takes 2-5 minutes to provision. If it stays in PROVISIONING for more than 10 minutes:

  1. Check the ingress point status:
response = client.get_ingress_point(IngressPointId='inp-xxxx')
print(response['Status'])
  1. If status is FAILED, the provisioning failed. Delete and recreate:
client.delete_ingress_point(IngressPointId='inp-xxxx')
# Wait for deletion, then recreate
  1. Common causes of provisioning failure:
    • Invalid traffic policy or rule set ID
    • Service quota reached (check Service Quotas console)
    • For AUTH type: invalid password format or inaccessible Secrets Manager secret

Ingress point shows ACTIVE but email isn't arriving

  1. Verify your MX record points to the ingress point's A Record:
dig MX yourdomain.com
  1. Confirm the A Record value matches:
response = client.get_ingress_point(IngressPointId='inp-xxxx')
print(f"A Record: {response['ARecord']}")
  1. DNS propagation can take up to 48 hours. Check with multiple DNS resolvers:
dig MX yourdomain.com @8.8.8.8
dig MX yourdomain.com @1.1.1.1
  1. For AUTH endpoints, verify the sender is using correct credentials:
    • Username = ingress point ID (such as inp-xxxxxxxxxxxx)
    • Password = the password set during creation
    • Port 587 with STARTTLS (not port 465 with implicit TLS)

SMTP connection refused or timeout

  • Open endpoints: only port 25
  • Authenticated endpoints: ports 25 and 587
  • STARTTLS is required on all connections unless TlsPolicy: OPTIONAL is set on the ingress point
  • Check that the sender's IP is not blocked by your traffic policy
  • For VPC endpoints: verify the VPC endpoint is active and security groups allow inbound on the correct port

TLS policy mismatch

If clients fail to connect with TLS errors:

  1. Check the ingress point's TLS policy:
response = client.get_ingress_point(IngressPointId='inp-xxxx')
print(f"TLS Policy: {response.get('IngressPointTlsPolicy', 'not set')}")
  1. If TlsPolicy is REQUIRED or FIPS, the client must support STARTTLS. Plaintext connections are rejected.
  2. If TlsPolicy is FIPS, the client must use FIPS-validated cryptographic modules.
  3. FIPS cannot be changed after creation — to switch, delete and recreate the ingress point.
  4. For private ingress points, the TLS policy must match the VPC endpoint service type (FIPS endpoint requires FIPS TLS policy).

mTLS client certificate rejected

  1. Verify the client certificate is signed by a CA in the ingress point's trust store
  2. Check that the client certificate has not expired
  3. Check that the client certificate is not on the CRL (certificate revocation list) if one was provided
  4. If the CRL has expired, the associated CA certificate is also removed from the trust store — provide an updated CRL
  5. mTLS is only available for public ingress endpoints — VPC endpoints do not support mTLS

Traffic Policy Issues

Traffic policy blocks all connections

  1. Check the DefaultAction:
policy = client.get_traffic_policy(TrafficPolicyId='tp-xxxx')
print(f"Default: {policy['DefaultAction']}")
for stmt in policy['PolicyStatements']:
    print(f"  {stmt['Action']}: {stmt['Conditions']}")
  1. Common mistake: DefaultAction: DENY with no ALLOW statements, or ALLOW statements with conditions that don't match any traffic.

  2. MINIMUM_TLS_VERSION matches connections AT or ABOVE the version. If you use it in a DENY statement, you're denying good connections. Use it in an ALLOW statement with DefaultAction: DENY.

Policy changes not taking effect

Traffic policy updates take effect immediately for new connections but do not affect connections already in progress.

Rule Set Issues

Rules not matching as expected

  1. Rules are evaluated in order — first match wins. Check rule ordering:
rule_set = client.get_rule_set(RuleSetId='rs-xxxx')
for i, rule in enumerate(rule_set['Rules']):
    print(f"Rule {i}: {rule.get('Name', '(unnamed)')}")
    print(f"  Conditions: {rule.get('Conditions', 'none (matches all)')}")
  1. A rule with no conditions matches ALL messages. If this rule appears before more specific rules, the specific rules never execute.

  2. Conditions within a rule are ANDed. All conditions must match for the rule to fire.

Update deleted my rules

update_rule_set replaces ALL rules. Always fetch current rules first:

current = client.get_rule_set(RuleSetId='rs-xxxx')
existing_rules = current['Rules']
# Modify existing_rules, then:
client.update_rule_set(RuleSetId='rs-xxxx', Rules=existing_rules)

Send to internet action fails silently

  1. Check the IAM role has ses:SendRawEmail permission
  2. In Amazon SES sandbox mode, both sender AND recipient must be verified identities
  3. Check Amazon SES sending quotas — you may be throttled
  4. If ActionFailurePolicy is DROP (the default), the message is silently discarded on failure. Set to CONTINUE to let subsequent actions run.

Archive Issues

Archive search returns no results

  1. Verify the time range covers when the email was received (epoch seconds):
from datetime import datetime, timezone
print(int(datetime(2024, 1, 1, tzinfo=timezone.utc).timestamp()))
  1. Archive search filters only support CONTAINS operator — exact match won't work
  2. Search is async — make sure you're polling until CompletionTimestamp is set before fetching results

Archive name collision on creation

Archive names persist through PENDING_DELETION (up to 30 days). If a previous archive with the same name was deleted, you must use a different name or wait for deletion to complete.

# Check existing archives including those pending deletion
archives = client.list_archives()
for a in archives['Archives']:
    print(f"{a['ArchiveName']}: {a['ArchiveState']}")

CloudFormation Issues

TargetArchive validation error (66-char limit)

!GetAtt Archive.ArchiveId returns the full ARN (known CloudFormation behavior). Extract the short ID:

TargetArchive: !Select
  - 1
  - !Split
    - "/"
    - !GetAtt MyArchive.ArchiveArn

Stack rollback leaves orphaned resources

Archive and other resources may enter PENDING_DELETION after rollback, claiming the name. Use unique names:

ArchiveName: !Sub "${AWS::StackName}-archive-${AWS::AccountId}"

IAM Issues

"Access Denied" on Mail Manager operations

Mail Manager IAM actions use the ses: prefix, not mailmanager:. Example actions:

  • ses:CreateIngressPoint
  • ses:CreateTrafficPolicy
  • ses:CreateRuleSet
  • ses:CreateArchive

For development, you can use a broad SES policy (note: this covers all SES actions, not only Mail Manager):

{
  "Effect": "Allow",
  "Action": [
    "ses:Create*",
    "ses:Get*",
    "ses:List*",
    "ses:Delete*",
    "ses:Update*",
    "ses:StartArchive*"
  ],
  "Resource": "*"
}

"Resource": "*" is required here because Mail Manager operations do not currently support resource-level ARN restrictions. For production, scope to only the specific actions your workflow requires. See the Getting Started Guide for a minimal scoped policy example.

Send to internet action gets "Access Denied"

The IAM role for the Send action needs:

  • Trust policy allowing ses.amazonaws.com to assume the role
  • Permission for ses:SendRawEmail on the identity and configuration set resources
  • If using a configuration set, include both identity/* and configuration-set/* in the resource ARNs

Source: SKILL.md on GitHub

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

No alerts5mo3 checks · Risk SAFE
  • Gen Agent Trust Hub5mo

    This skill provides comprehensive documentation and code examples for managing Amazon SES Mail Manager. It enables AI agents to assist in setting up email ingress pipelines, traffic policies, rule sets, and archiving workflows using official AWS SDKs and infrastructure-as-code tools. No malicious patterns or security vulnerabilities were detected.

  • Socket5mo

    No alerts

  • Snyk5mo

    Risk: LOW · No issues

Signed by skilld at 58f234e. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 2 months ago.

Steadyupdated 6 months ago
Other metadata
compatibility
Requires AWS credentials (IAM user, role, or environment variables) and an AWS account with Amazon SES Mail Manager enabled. Python SDK — boto3 with client name 'mailmanager'. Available in all commercial AWS regions where SES is offered (27 regions as of December 2025). See https://aws.amazon.com/about-aws/whats-new/2025/12/ses-mail-manager-10-regions/ for the latest availability.
metadata
{
  "author": "aws",
  "version": "1.0",
  "service": "mailmanager",
  "revision": 1,
  "updated-on": "2026-03-20",
  "source": "maintainer",
  "tags": "ses,mail-manager,email,smtp,ingress,archive,relay,traffic-policy,rule-set"
}

README badge

README badge for amazon-ses/skills/aws-mail-manager