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.

SKILL.md

≈91 tokens for metadata: the name and description. ≈1.3k when used: this file. ≈49k more on demand in 15 files.

Description uses 4.5% of example budget

Before choosing a Skill, your Agent reads its name and description. All available Skills share that space.

  • A shorter description leaves more room for other Skills. This entry exceeds our 1% size suggestion.

In our Claude Code example, all Skill names and descriptions share 8,000 characters. This Skill uses ≈363 characters, or 4.5%.

The 1% threshold is a size suggestion. Longer descriptions can still fit.

Your model, settings, and other Skills decide how much text your Agent can read.

Example settings and source

The example uses a 200k-token context and default Claude Code settings. The count includes the name, description, separators, and when_to_use when present. Codex also counts local file paths.

Skit's source and limits: Codex 0.160.1, Claude Code 2.1.292.

Amazon SES Mail Manager

Amazon SES Mail Manager is an email processing service for inbound email. It receives email via SMTP ingress points, applies traffic policies and rule sets, then routes messages to archives, relays, S3, SNS, WorkMail, or drops them.

Key Capabilities

  • Ingress Points — SMTP endpoints (OPEN, AUTH, or MTLS) that receive email. Point your MX records here. Configurable TLS policy: REQUIRED, OPTIONAL, or FIPS.
  • Traffic Policies — Connection-level filtering by sender IP, recipient, or TLS version. Evaluated before message body is received.
  • Rule Sets — Message-level processing with conditions (SPF/DKIM verdicts, headers, size, IP) and actions (archive, bounce, relay, S3, SNS, Lambda, drop).
  • SMTP Relays — Forward email to external SMTP servers with optional authentication.
  • Archives — Durable email storage with async search and export. Configurable retention from 3 months to permanent.
  • Address Lists — Managed allow/block lists used in rule conditions. Supports bulk CSV/JSON import.
  • Add-ons — Third-party integrations (spam filtering, threat analysis) attachable to rule sets.

When to Use This Skill

  • Setting up an inbound email processing pipeline
  • Walking a developer through Mail Manager configuration decisions step by step
  • Filtering spam or blocking senders/IP ranges before email reaches your systems
  • Archiving email for compliance, legal hold, or eDiscovery
  • Routing email to different destinations based on recipient, sender, or content
  • Forwarding email to on-premises or third-party SMTP servers
  • Building allow/block lists for email filtering
  • Enforcing TLS requirements on inbound connections

What This Skill Does NOT Cover

  • Outbound email sending — Use the Amazon SES V2 API (sesv2 client) for sending email.
  • SES core features — Identity verification, DKIM/SPF/DMARC setup, configuration sets, suppression lists. See the aws-ses skill.
  • WorkMail setup — Mail Manager can deliver to WorkMail mailboxes, but WorkMail provisioning is a separate service.

Common Mistakes (Quick Reference)

Mistake Fix
Using ses or sesv2 client Use boto3.client('mailmanager')
Creating ingress point first Create traffic policy + rule set first
RecipientCondition in traffic policy Use StringExpression with Attribute: RECIPIENT
Values in TlsExpression Use singular Value for TLS expressions
Missing DefaultAction on traffic policy Always set DefaultAction: ALLOW or DENY
SOURCE_IP in traffic policy Traffic policies use SENDER_IP; rule sets use SOURCE_IP
Updating rule set without fetching first update_rule_set replaces ALL rules — fetch first
DNS before ingress point is ACTIVE Poll get_ingress_point until Status == ACTIVE
Evaluate field in DmarcExpression DmarcExpression has no Evaluate — just Operator + Values
Archive ARN in TargetArchive Use archive ID (a-xxxx), not ARN — 66-char limit enforced by API
CFN !GetAtt Archive.ArchiveId returns ARN Extract ID: !Select [1, !Split ["/", !GetAtt Archive.ArchiveArn]]
Archive name collision after rollback Append ${AWS::AccountId} — names persist through PENDING_DELETION
FIPS TLS policy can't be changed FIPS is immutable after creation — delete and recreate to change
TLS policy default varies by region FIPS in US/CA, REQUIRED elsewhere — set explicitly

See Agent Instructions for detailed explanations, full condition/action syntax, and the complete common mistakes list.

Resource Links

Summary

This skill provides the context AI agents need to work with Amazon SES Mail Manager correctly — the right API client, condition/action syntax, resource dependency order, and common pitfalls. Start with the Agent Instructions for the full reference, or use the Guided Setup for an interactive walkthrough.

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