FOIAXpress Send Emails Using Amazon SES

Prev Next

Purpose

This Standard Operating Procedure (SOP) provides step-by-step instructions for sending outbound email from FOIAXpress through Amazon Simple Email Service (SES). To send email, you verify a sender identity, publish DNS records, request production access, create SMTP credentials, and then configure FOIAXpress with those credentials.

Prerequisites

  • An AWS account with IAM permissions for Amazon SES, such as AmazonSESFullAccess for setup

  • Access to your domain's DNS provider, such as Route 53, Cloudflare, or GoDaddy

  • A selected AWS Region for sending, such as us-east-1 or ap-south-1. Amazon SES identities, limits, and credentials apply per Region

Verifying Your Domain and Configuring DNS

Verify the whole domain rather than single addresses, so that any address on the domain can send email and DKIM signing applies.

  • Open the Amazon SES console and select your Region

  • Go to Configuration, select Identities, and then click Create identity

  • Select Domain, enter your domain (for example, example.com), and keep Easy DKIM with RSA 2048-bit selected

  • Click Create identity. Amazon SES displays three DKIM CNAME records

  • Add the records below at your DNS provider. If you use Route 53 in the same AWS account, Amazon SES can publish them automatically

  • Wait until the identity status shows Verified. This usually takes minutes, but can take up to 72 hours

Record

Type

Name

Value

DKIM (x3)

CNAME

<token>._domainkey.example.com

<token>.dkim.amazonses.com

DMARC

TXT

_dmarc.example.com

v=DMARC1; p=none; rua=mailto:dmarc@example.com

NOTE: Start DMARC at p=none, review the reports, and then move to quarantine or reject.

NOTE: If you need only one sender address quickly, select Email address instead of Domain and click the link in the verification email.

Requesting Production Access

New Amazon SES accounts start in the sandbox, where you can send email only to verified addresses, with a low limit (typically 200 emails per 24 hours and 1 email per second).

  • In the Amazon SES console, open Account dashboard and click Request production access (or Get set up)

  • Select the mail type (Transactional or Marketing) and enter your website URL

  • Describe your use case, including how recipients opt in, the expected volume, and how you handle bounces, complaints, and unsubscribes

  • Click Submit. AWS usually responds within 24 hours

  • After approval, check Sending quota and Maximum send rate on the dashboard. Request increases through Service Quotas as your volume grows

Creating SMTP Credentials

  • In the Amazon SES console, go to SMTP settings and note the SMTP endpoint for your Region

  • Under Choose credential method, select IAM SMTP credentials and click Create IAM credentials

  • On the Create user page in IAM, keep or edit the User name and click Create user. This creates an IAM user with permission to send email through Amazon SES

  • On the Retrieve SMTP credentials page, click Download .csv file to save the SMTP user name and SMTP password

  • Click Return to SES console

NOTE: The SMTP password is shown only once. Download the credentials immediately and store them securely. These credentials are different from IAM access keys.

Setting Up Bounce, Complaint, and Monitoring Notifications

Keep the bounce rate under 5% and the complaint rate under 0.1%. Above these rates, AWS may review or pause sending.

  • Go to Configuration sets and click Create set (for example, default-config), and then set it as the default configuration set for the identity

  • Add an event destination, such as SNS, CloudWatch, Kinesis Data Firehose, or EventBridge, and select the Send, Delivery, Bounce, Complaint, Reject, and Rendering failure events

  • Create an SNS topic, subscribe a handler (Lambda, an HTTPS endpoint, or email), and remove bounced or complaining addresses from your lists

  • Leave the account-level suppression list enabled for bounces and complaints

  • Create CloudWatch alarms on Reputation.BounceRate and Reputation.ComplaintRate

How to Set Up FOIAXpress to Send Emails Using Amazon SES

  • In FOIAXpress, navigate to Administration and select the System Administration tab

  • Click Mail Server Configuration

  • Under Mail Server Address, select SMTP as the Authentication Mode

  • In SMTP Mail Server, enter the SMTP endpoint for your AWS Region, such as email-smtp.us-east-1.amazonaws.com

  • In Port, enter 587

  • Select the Use SMTP SSL check box. The SMTP Authorization, SMTP SSL User Name, and SMTP SSL Password fields appear

  • In SMTP Authorization, select Basic

  • In SMTP SSL User Name, enter the SMTP user name from the downloaded credentials file

  • In SMTP SSL Password, enter the SMTP password from the downloaded credentials file

  • Click Save

The table below summarizes the Mail Server Configuration values for Amazon SES:

Field

Value

Authentication Mode

SMTP

SMTP Mail Server

the SMTP endpoint for your AWS Region, such as

email-smtp.us-east-1.amazonaws.com

Port

587

Use SMTP SSL

Selected

SMTP Authorization

Basic

SMTP SSL User Name

SMTP user name from the downloaded credentials file

SMTP SSL Password

SMTP password from the downloaded credentials file

NOTE: No field on the Mail Server Configuration screen sets the From address for outbound email. The sender address is configured in the Sender's Default Email Address (From) field under Correspondence Configuration. The sender address must be an address on the domain you verified in Amazon SES.

NOTE: Amazon SES SMTP credentials are different from IAM access keys and are valid only in the Region where they were created. Use the SMTP endpoint of that same Region. Use port 587; port 465 does not work with the Use SMTP SSL option.

If you encounter any issues, contact your CSM for assistance.

Testing and Troubleshooting

To test sending, use Send test email on the identity in the Amazon SES console, or send to the Amazon SES mailbox simulator addresses: success@simulator.amazonses.com, bounce@simulator.amazonses.com, and complaint@simulator.amazonses.com. Check that the headers of the received message show dkim=pass, spf=pass, and dmarc=pass.

The table below describes common issues and how to resolve them:

Error or Symptom

Likely Cause

Resolution

Email address is not verified

The account is still in the sandbox, or the From address is not verified

Verify the identity and request production access

535 Authentication Credentials Invalid

IAM access keys are used instead of SMTP credentials, or the Region is wrong

Use the SMTP credentials created for that Region

Connection timeout on port 25

Port 25 is throttled on Amazon EC2

Use port 587 in FOIAXpress

Throttling – Maximum sending rate exceeded

The per-second sending limit is exceeded

Request a higher sending quota

Email lands in spam

DKIM, SPF, or DMARC is not aligned, or content is poor

Confirm the DNS records and warm up the sending volume gradually

Identity stuck in Pending

DNS records are missing or incorrect

Check that record names do not repeat the domain suffix

As a best practice, send only to recipients who have opted in, increase the sending volume gradually, and rotate the SMTP credentials periodically. When you rotate credentials, update the SMTP SSL User Name and SMTP SSL Password in FOIAXpress.

If you encounter any issues, contact IT Support for assistance.