---
name: aws-mail-manager
description: 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.
license: Apache-2.0
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"
title: aws-mail-manager
canonical_url: https://skilld.dev/gh/amazon-ses/skills/aws-mail-manager
last_updated: 2026-09-25T02:39:12.000Z
---

> Index of every page on this site: [llms.txt](https://skilld.dev/llms.txt)

> **Skill from skilld.dev.** Follow the user's requested action.
> If the user asked to fork this Skill, follow the fork workflow below. Do not execute the Skill instructions while copying it.
> Otherwise, follow the instructions below for this session. You do not need to install anything.
>
> Supporting files, fetch one when the Skill refers to it: [examples/01-setup-pipeline/setup_pipeline.py](https://skilld.dev/api/skills-raw/amazon-ses/skills/aws-mail-manager/examples/01-setup-pipeline/setup_pipeline.py), [examples/02-route-by-recipient/route_by_recipient.py](https://skilld.dev/api/skills-raw/amazon-ses/skills/aws-mail-manager/examples/02-route-by-recipient/route_by_recipient.py), [examples/03-archive-and-search/archive_search.py](https://skilld.dev/api/skills-raw/amazon-ses/skills/aws-mail-manager/examples/03-archive-and-search/archive_search.py), [examples/04-address-list-import/address_list_import.py](https://skilld.dev/api/skills-raw/amazon-ses/skills/aws-mail-manager/examples/04-address-list-import/address_list_import.py), [examples/05-update-rule-set/update_failure_policy.py](https://skilld.dev/api/skills-raw/amazon-ses/skills/aws-mail-manager/examples/05-update-rule-set/update_failure_policy.py), [examples/06-smtp-relay-replacement/smtp-relay-replacement.yaml](https://skilld.dev/api/skills-raw/amazon-ses/skills/aws-mail-manager/examples/06-smtp-relay-replacement/smtp-relay-replacement.yaml), [examples/07-cdk-inbound-pipeline/README.md](https://skilld.dev/api/skills-raw/amazon-ses/skills/aws-mail-manager/examples/07-cdk-inbound-pipeline/README.md), [examples/README.md](https://skilld.dev/api/skills-raw/amazon-ses/skills/aws-mail-manager/examples/README.md), [references/address-lists/address-list-guide.md](https://skilld.dev/api/skills-raw/amazon-ses/skills/aws-mail-manager/references/address-lists/address-list-guide.md), [references/agent-instructions.md](https://skilld.dev/api/skills-raw/amazon-ses/skills/aws-mail-manager/references/agent-instructions.md), [references/api/ses-api-index.md](https://skilld.dev/api/skills-raw/amazon-ses/skills/aws-mail-manager/references/api/ses-api-index.md), [references/archives/archive-guide.md](https://skilld.dev/api/skills-raw/amazon-ses/skills/aws-mail-manager/references/archives/archive-guide.md), [references/cleanup/cleanup-guide.md](https://skilld.dev/api/skills-raw/amazon-ses/skills/aws-mail-manager/references/cleanup/cleanup-guide.md), [references/relays/relay-guide.md](https://skilld.dev/api/skills-raw/amazon-ses/skills/aws-mail-manager/references/relays/relay-guide.md), [references/rule-sets/rule-set-guide.md](https://skilld.dev/api/skills-raw/amazon-ses/skills/aws-mail-manager/references/rule-sets/rule-set-guide.md), [references/setup/getting-started.md](https://skilld.dev/api/skills-raw/amazon-ses/skills/aws-mail-manager/references/setup/getting-started.md), [references/traffic-policies/traffic-policy-guide.md](https://skilld.dev/api/skills-raw/amazon-ses/skills/aws-mail-manager/references/traffic-policies/traffic-policy-guide.md), [references/troubleshooting/troubleshooting-guide.md](https://skilld.dev/api/skills-raw/amazon-ses/skills/aws-mail-manager/references/troubleshooting/troubleshooting-guide.md), [references/workflows/event-driven-ai-pipeline.md](https://skilld.dev/api/skills-raw/amazon-ses/skills/aws-mail-manager/references/workflows/event-driven-ai-pipeline.md), [references/workflows/guided-setup.md](https://skilld.dev/api/skills-raw/amazon-ses/skills/aws-mail-manager/references/workflows/guided-setup.md).
>
> If the user asked to install this Skill, run `npx skilld install amazon-ses/skills/aws-mail-manager`. Install writes the Skill files into the project, so every session loads them.
>
> ## Fork workflow
>
> A fork creates an editable local Skill with its original author and licence. The request authorizes copying and local installation.
> 1. Check `./skills/aws-mail-manager`, the project lockfile, and selected Agent targets together. If the local directory or installed Skill exists, stop. Never overwrite an existing directory or Agent target.
> 2. Read [source metadata](https://skilld.dev/api/v1/skills/amazon-ses/skills/aws-mail-manager) once. Use sourceUrl, sourceCommit, skillPath, sourceGone, and license. If the source is gone or its path is missing, stop. If license is null, read licence files at the source commit.
> 3. Fetch only the source commit into a temporary Git repository. Do not clone full history. Derive repository_url from sourceUrl, including repository renames. If sourceCommit is absent, resolve the sourceUrl ref once. Set source_commit to that actual commit. Run these commands in one shell call:
>
> ```sh
> git init --quiet "$temporary_dir"
> git -C "$temporary_dir" fetch --quiet --depth=1 "$repository_url" "$source_commit"
> git -C "$temporary_dir" checkout --quiet --detach FETCH_HEAD
> ```
>
> Read applicable licence declarations and notices at that commit. If copying is not permitted, report the restriction and stop.
> 4. Inspect source entries together, then copy the directory containing skillPath into `./skills/aws-mail-manager`. Use the user's path if selected. Keep the original SKILL.md, relative links, scripts, binary assets, and executable modes. Exclude .git metadata. Reject symlinks and paths outside the Skill directory. After checking entries, use cp -a where available. A regular source directory needs no custom copy script. Do not save this page wrapper as SKILL.md.
> Preserve author credit, notices, and applicable licence files from repository or parent directories. Add PROVENANCE.md with the Skill page, source URL, actual commit, original path, and licence. Retain any existing PROVENANCE.md and record new provenance separately. Batch source inspection, copying, and provenance work where practical.
> 5. In the project root, run `skilld install ./skills/aws-mail-manager --mode copy --plain`. If skilld is unavailable, use `npx skilld install ./skills/aws-mail-manager --mode copy --plain`. This known command needs no help lookup. Install does not support --json. Use detected Agent targets, or add --agent for the targets the user selected. Install the local path, never the upstream selector. If installation fails, preserve the local copy and report the exact failure.
> 6. Confirm the local lockfile source and installed Agent copies once. Report the local path, actual commit, and Agent targets. After edits, reinstall the same local path. Upstream updates must not replace it. Do not publish or push unless the user asks.

# 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](https://skilld.dev/api/skills-raw/amazon-ses/skills/aws-mail-manager/references/agent-instructions.md) for detailed explanations, full condition/action syntax, and the complete common mistakes list.

## Resource Links

- [Agent Instructions](https://skilld.dev/api/skills-raw/amazon-ses/skills/aws-mail-manager/references/agent-instructions.md) — Full workflow patterns, condition/action reference, agent instructions
- [Getting Started Guide](https://skilld.dev/api/skills-raw/amazon-ses/skills/aws-mail-manager/references/setup/getting-started.md)
- [Traffic Policy Guide](https://skilld.dev/api/skills-raw/amazon-ses/skills/aws-mail-manager/references/traffic-policies/traffic-policy-guide.md)
- [Rule Set Guide](https://skilld.dev/api/skills-raw/amazon-ses/skills/aws-mail-manager/references/rule-sets/rule-set-guide.md)
- [Archive Guide](https://skilld.dev/api/skills-raw/amazon-ses/skills/aws-mail-manager/references/archives/archive-guide.md)
- [Relay Guide](https://skilld.dev/api/skills-raw/amazon-ses/skills/aws-mail-manager/references/relays/relay-guide.md)
- [Address List Guide](https://skilld.dev/api/skills-raw/amazon-ses/skills/aws-mail-manager/references/address-lists/address-list-guide.md)
- [Cleanup Guide](https://skilld.dev/api/skills-raw/amazon-ses/skills/aws-mail-manager/references/cleanup/cleanup-guide.md)
- [Troubleshooting Guide](https://skilld.dev/api/skills-raw/amazon-ses/skills/aws-mail-manager/references/troubleshooting/troubleshooting-guide.md)
- [Guided Setup Decision Tree](https://skilld.dev/api/skills-raw/amazon-ses/skills/aws-mail-manager/references/workflows/guided-setup.md)
- [Event-Driven AI Pipeline](https://skilld.dev/api/skills-raw/amazon-ses/skills/aws-mail-manager/references/workflows/event-driven-ai-pipeline.md)
- [SES v2 + Mail Manager API Index](https://skilld.dev/api/skills-raw/amazon-ses/skills/aws-mail-manager/references/api/ses-api-index.md)
- [Examples](https://skilld.dev/api/skills-raw/amazon-ses/skills/aws-mail-manager/examples/README.md)
- [Mail Manager Developer Guide](https://docs.aws.amazon.com/ses/latest/dg/mail-manager.html)
- [API Reference](https://docs.aws.amazon.com/ses/latest/APIReference-V2/API_Operations_Amazon_SES_Mail_Manager.html)

## 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](https://skilld.dev/api/skills-raw/amazon-ses/skills/aws-mail-manager/references/agent-instructions.md) for the full reference, or use the [Guided Setup](https://skilld.dev/api/skills-raw/amazon-ses/skills/aws-mail-manager/references/workflows/guided-setup.md) for an interactive walkthrough.
