Migration guide / Transactional email
SMTPfast sends through Amazon SES, so you keep its delivery and drop the SigV4, SNS and configuration set plumbing.
SMTPfast is built on Amazon SES. Moving from your own SES account means you stop running the parts around it: IAM keys and SigV4 signing, configuration sets, SNS topics or EventBridge rules for events, and a suppression list you query with the AWS CLI. In return you pay SMTPfast's plan price instead of SES's per-email price.
Amazon SES details checked against its own docs on 2026-12-02. Still deciding? SMTPfast vs Amazon SES.
Before: Amazon SES
import { SESv2Client, SendEmailCommand } from "@aws-sdk/client-sesv2";
const ses = new SESv2Client({ region: "us-east-1" });
await ses.send(new SendEmailCommand({
FromEmailAddress: "Acme <[email protected]>",
Destination: { ToAddresses: ["[email protected]"] },
Content: {
Simple: {
Subject: { Data: "Your receipt" },
Body: { Html: { Data: "<p>Thanks for your order.</p>" } },
},
},
EmailTags: [{ Name: "type", Value: "receipt" }],
ConfigurationSetName: "production",
}));After: SMTPfast
curl -X POST https://smtpfa.st/api/v1/emails \
-H "Authorization: Bearer $SMTPFAST_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"from": "Acme <[email protected]>",
"to": [
"[email protected]"
],
"subject": "Your receipt",
"html": "<p>Thanks for your order.</p>",
"tags": [
{
"name": "type",
"value": "receipt"
}
],
"category": "transactional"
}'import { SMTPfast } from "@smtpfast/sdk";
const smtpfast = new SMTPfast(); // reads SMTPFAST_API_KEY
const { id } = await smtpfast.emails.send({
from: "Acme <[email protected]>",
to: ["[email protected]"],
subject: "Your receipt",
html: "<p>Thanks for your order.</p>",
tags: [
{
name: "type",
value: "receipt",
},
],
category: "transactional",
});| Amazon SES | SMTPfast |
|---|---|
| SendEmail (SigV4, IAM credentials) | POST /v1/emails, Authorization: Bearer KEY |
| FromEmailAddress, ReplyToAddresses | from, reply_to |
| Destination.ToAddresses / CcAddresses / BccAddresses | to, cc, bcc |
| Content.Simple.Subject / Body.Html / Body.Text | subject, html, text |
| Content.Simple.Headers [{ Name, Value }] | headers { "Name": "Value" } |
| Content.Simple.Attachments [{ FileName, RawContent, ContentType, ContentId }] | attachments [{ filename, content, content_type, content_id }] |
| Content.Raw (raw MIME) | No equivalentSend the parts as fields, or send the message over SMTP. |
| EmailTags [{ Name, Value }] | tags [{ name, value }] |
| ConfigurationSetName | Not neededEvents and suppression checks apply to every email. Open and click tracking follow your account settings or the track_opens and track_clicks fields. |
| No scheduled send | scheduled_at (up to 30 days) |
| Amazon SES | SMTPfast |
|---|---|
| Host email-smtp.<region>.amazonaws.com | Host smtp.smtpfa.st |
| Ports 25, 587, 2587 (STARTTLS), 465, 2465 (TLS wrapper) | Ports 587 and 2525, STARTTLSThere is no implicit TLS port (465). Use 587, or 2525 where 587 is blocked. |
| Username SMTP user name (per region) | Username smtpfast |
| Password SMTP password derived from IAM | An SMTPfast API key with the email:send scope |
| Amazon SES | SMTPfast |
|---|---|
| Send | email.sent |
| Delivery | email.delivered |
| DeliveryDelay | No equivalentemail.delivery_delayed fires when SMTPfast retries handing the email to SES, not for delays at the receiving server. |
| Bounce | email.bouncedbounce_type and bounce_sub_type are SES's own values, passed through. |
| Complaint | email.complained |
| Reject, Rendering Failure | No equivalentemail.failed fires when SMTPfast gives up sending an email. |
| Open, Click | email.opened, email.clicked |
| Subscription | email.unsubscribedFor SMTPfast's own unsubscribe link and List-Unsubscribe header. |
| SNS, EventBridge, Firehose or CloudWatch destinations | A signed HTTPS webhook and the Logs API |
| Amazon SES | SMTPfast |
|---|---|
| Template, TemplateData (escaped JSON), {{name}} | template: { id, variables } with {{{NAME}}}variables is an object, not a JSON string. No Handlebars logic. |
| Account suppression list (BOUNCE, COMPLAINT) | Suppressions, scope all |
| ListManagementOptions (contact lists, topics) | Contacts and topics |
Add the domain in the dashboard (or with POST /v1/domains) and publish the records it shows: three DKIM CNAMEs, an MX and an SPF TXT record for the bounce subdomain (MAIL FROM), and include:amazonses.com in the SPF record of the domain. A domain has one SPF record, so add the include to the one you have. The DKIM and bounce records have their own names, so they sit next to your current provider's records and both can send while you switch. Keep your DMARC record if you have one. On Cloudflare DNS, SMTPfast can add the records for you.
Create a key with the email:send scope for the app that sends. Give webhook and contact jobs their own keys with only the scopes they need (webhook:write, contact:write).
Swap the SES client for an HTTPS call or @smtpfast/sdk and flatten the Content and Destination objects. Remove the configuration set. Add category: "transactional" to mail people need, because an email without it is marketing and gets an unsubscribe link.
Page through ListSuppressedDestinations (aws sesv2 list-suppressed-destinations) and add the addresses with POST /v1/suppressions/batch/add, 100 per call. SES lists only hard bounces and complaints there; unsubscribes live in your own system or in SES contact lists.
aws sesv2 list-suppressed-destinations --query 'SuppressedDestinationSummaries[].EmailAddress' --output textCreate a webhook for the email.* events your SNS or EventBridge handler processed and check the X-SMTPfast-Signature header: a hex HMAC-SHA256 of the raw body with the webhook's signing secret. Every event body is { type, timestamp, data }. Failed deliveries are retried 4 more times over about 36 minutes, and you can replay any of them from the delivery log.
import crypto from "node:crypto";
// rawBody: the request body exactly as received, before JSON.parse
function isFromSmtpfast(rawBody: string, signature: string, secret: string) {
const expected = crypto.createHmac("sha256", secret).update(rawBody).digest();
const given = Buffer.from(signature, "hex");
return given.length === expected.length && crypto.timingSafeEqual(given, expected);
}Send to an address you own and check the email in Logs, then in the received message headers (DKIM and SPF pass, aligned with your From domain). Move one kind of mail first, such as password resets, and watch bounces and complaints for a few days before you move the rest. A new account has warm-up limits, so a large list should not move in one day.
Check these before you move. If one is a blocker, stay where you are.
No. SMTPfast gives your domain its own DKIM CNAMEs, which sit next to the ones you have, so both can sign mail during the switch. If your SES setup uses a MAIL FROM subdomain with the same name as the one SMTPfast shows, compare the MX values before you change anything. Remove your old records once nothing sends through your account.
For the parts SES leaves to you: signed webhooks with retries and a delivery log, searchable Logs, per-email categories with one-click unsubscribe, contacts and broadcasts, templates by alias, and an MCP server. If you already run all of that well, raw SES is cheaper.
Verify a domain, send a test and check it in Logs before you move any traffic. Webhooks and inbound mail need a paid plan.