Cloud & Backend Engineer Guide: High-Deliverability Email with AWS SES, DKIM/DMARC & SNS

Transactional emails—password resets, magic links, invoice receipts, and security alerts—are mission-critical user touchpoints. Yet many SaaS backends send unauthenticated plain-text emails from default SMTP relays that land in Gmail's Spam folder, or ignore hard-bounce webhooks until AWS throttles their sending account. As a Senior Cloud Engineer and Backend Engineer, I architect high-deliverability email pipelines using Amazon SES, Postmark, and Resend with strict SPF, DKIM (2048-bit RSA), DMARC (`p=quarantine`/`reject`), and automated bounce/complaint suppression.

1. Multipart MIME (`text/plain` + Branded `text/html`) Delivery via AWS SES v2

To achieve high inbox placement and a polished user experience across Apple Mail, Gmail, and Outlook, every transactional email should pair a clean plain-text fallback with an inline-styled, high-contrast HTML body sent via the AWS SES v2 API:

import boto3

def send_branded_transactional_email(
    recipient_email: str,
    subject: str,
    text_body: str,
    html_body: str,
    configuration_set: str = "prod-transactional-events",
) -> str:
    ses_v2 = boto3.client("sesv2", region_name="us-east-1")
    response = ses_v2.send_email(
        FromEmailAddress="Notifications ",
        Destination={"ToAddresses": [recipient_email]},
        Content={
            "Simple": {
                "Subject": {"Data": subject, "Charset": "UTF-8"},
                "Body": {
                    "Text": {"Data": text_body, "Charset": "UTF-8"},
                    "Html": {"Data": html_body, "Charset": "UTF-8"},
                },
            }
        },
        ConfigurationSetName=configuration_set,
    )
    return response["MessageId"]

2. Automated Hard-Bounce & Complaint Suppression via SNS Webhooks

AWS SES pauses your account if your bounce rate exceeds 5% or complaint rate exceeds 0.1%. By binding an SES Configuration Set to an Amazon SNS topic and verifying cryptographic SNS message signatures in a backend webhook, any `Permanent` bounce or `Complaint` event immediately marks the recipient address as suppressed in PostgreSQL before the next campaign or notification fires.

3. Hire a Senior Cloud & Backend Engineer for Email Infrastructure

Fixing email deliverability issues or upgrading your transactional templates to AWS SES? Explore my Cloud Engineer Pillar Guide, review my Backend Engineer Pillar Guide, or book a 1-Day AWS SES & Email Deliverability Sprint.


About the Author — Hire Aldian Fazrihady (Cloud Engineer, GCP Professional Cloud Architect, GCP Professional Data Engineer, Backend, AI & Full Stack Engineer)

Aldian Fazrihady is a Top-Rated Senior Cloud Engineer, GCP Professional Cloud Architect (Google Cloud Certified), GCP Professional Data Engineer (Google Cloud Certified), Backend Engineer (Python, Django, FastAPI, Go, PostgreSQL), AI Application Engineer (LLMs, RAG, MCP, Google ADK, LangGraph), and Full Stack Engineer (React, Next.js, TypeScript) with 15+ years of production software engineering experience.

Hire Aldian Fazrihady on Upwork | Book 1-Day Programming Service ($100 USD / Rp 1.000.000) | View Live AI Portfolio | Send a Direct Message

Related Engineering Articles

Engineering Role Pillar Guides & Category Hubs