Postmark Alternatives for Developers: Idempotency, Signed Webhooks and the Cost of 25,000 Emails
Seven Postmark alternatives compared on the developer details Postmark leaves to you, with a lead-routing workload of 25,000 emails a month priced on each.
Direct answer. For developers who like Postmark's focus on transactional mail but want idempotent sends and signed webhooks built in, the best Postmark alternative is AgentiSend, which accepts an Idempotency-Key on every write, signs every webhook with HMAC-SHA256, and costs $9 a month for 30,000 emails. At 50,000 emails it is $16 a month against Postmark's $55, with 90 days of history on that plan against Postmark's 45.
Postmark's reputation among developers rests on doing one job carefully, and its pricing page reflects that: no marketing features, 45 days of activity on every plan, SMTP alongside the API. The gaps show up in code. Its support article says Postmark does not support an idempotency key and suggests detecting duplicates yourself. Its webhook overview recommends basic authentication plus an IP allow list instead of an HMAC signature. And the jump from the 100-email developer plan to the $15 Basic plan has nothing in between.
How we put this together
Every price here comes from the pricing pages of AgentiSend, Resend, Amazon SES, Postmark, Mailgun, MailerSend, Mailtrap and SMTP2GO, read on 9 November 2026; feature facts come from their documentation, read between 28 September and 10 November 2026. We did not run our own send tests; the lead-routing costs are arithmetic on published prices.
The workload: lead routing for a B2B product
A B2B SaaS gets 1,500 demo requests a month from paid search and paid social. Each request triggers three emails: a confirmation to the lead, an alert to the rep the lead is routed to, and a copy to the regional sales manager. That is 4,500 emails. The product itself sends another 20,500 transactional emails (sign-ins, invites, receipts). Total: 25,000 a month.
Lead routing is the part where developer details turn into revenue. A double-submitted form or a retried request that sends two alerts means two reps call the same prospect. An alert that silently fails means nobody calls. So the comparison weighs retry safety and event verification alongside price.
Seven alternatives, priced for 25,000 emails
| Provider | Plan that holds 25,000 | Monthly cost | Idempotency key | Webhook verification | History |
|---|---|---|---|---|---|
| AgentiSend (our pick) | Starter, 30,000 | $9 ($5.40 yearly) | Every write, 7 days | HMAC-SHA256, replay | 30 days (90 on Pro, 180 on Scale) |
| Amazon SES | À la carte | $2.50 | Not documented | Not covered here | Not included |
| Mailtrap | Basic, 50,000 | $20 | Not documented | Not covered here | 5 days |
| Resend | Pro, 50,000 | $20 | Send and batch, 24 hours | Not covered here | 30 days |
| SMTP2GO | 50,000 step | $30 | Not documented | Not covered here | 30 days |
| MailerSend | Starter, 50,000 | $35 | Not documented | Not covered here | 7 days |
| Mailgun | Foundation, 50,000 | $35 | Not documented | HMAC-SHA256 | 5 days |
| Postmark, for reference | Basic 10,000 plus overage | $42 | Not supported | Basic auth, IP allow list | 45 days |
Postmark's $42 is the Basic plan's $15 for 10,000 plus 15,000 emails at $1.80 per 1,000. Its 50,000-email plan is $55.
The alternatives
1. AgentiSend
Best for: developers who want retry safety, verifiable webhooks and machine-readable errors without writing them, at a lower price than Postmark at every volume in our tables.
AgentiSend is a transactional email API for applications and AI agents. For the lead-routing workload, the code looks like this:
import { AgentiSend, AgentiSendError } from 'agentisend';
const agentisend = new AgentiSend(); // reads AGENTISEND_API_KEY
export async function alertRep(lead: { id: string; company: string; source: string }, rep: string) {
try {
const { id } = await agentisend.emails.send(
{
from: 'Lead Desk <leads@acme.com>',
to: rep,
subject: `New demo request: ${lead.company}`,
text: `Routed to you from ${lead.source}. Reply within 15 minutes.`,
tags: { flow: 'lead_alert', source: lead.source },
},
{ idempotencyKey: `lead-alert/${lead.id}/${rep}` },
);
return { id };
} catch (err) {
if (err instanceof AgentiSendError) return { code: err.code, fix: err.fix };
throw err;
}
}
The idempotency key is built from the lead and the rep, not from the time. A form that posts twice, or a queue worker that retries after a timeout, hits the same key and gets the first message id back, so the rep receives one alert. Keys are remembered for 7 days on every endpoint that changes something, not only the send.
The other developer details:
- Signed webhooks. Every delivery carries
x-agentisend-signaturewith a timestamp and an HMAC-SHA256 over the raw body. Theagentisend/webhook-signingexport verifies it in one call. Failed deliveries are retried 10 times, dead-lettered, and can be replayed withPOST /webhooks/{id}/replay. - Errors a program can act on. Every refusal carries
code,message,fix,docs_urlandretryable, plusretry_after_secondswhen waiting helps. A lead alert refused withsuppressed_recipientcan be routed to the next rep in code. - A dry run.
POST /emails/preflightruns every send check and sends nothing, useful in a CI test for the routing logic. - SDKs and spec. Node (
agentisend), Python (standard library only), PHP with a Laravel mailer, Go, a Nodemailer transport, and an OpenAPI 3.1 file covering 255 operations. - Rate limit headers. 600 requests per key per 60 seconds by default, with
ratelimit-limit,ratelimit-remainingandratelimit-reseton responses.
On price, AgentiSend undercuts Postmark at every volume in the published tables: $16 against $55 at 50,000, $28 against $115 at 100,000, $520 against $775 at a million.
Plans and overage rates are on agentisend.com/pricing, and the API is at agentisend.com.
2. Amazon SES
Best for: developers who want the lowest per-message rate and are comfortable building retries, logging and event handling on AWS.
$0.10 per 1,000 on à la carte, $0.16 on Essentials for new accounts.
Watch out for: SendEmail documents no idempotency key, the same gap as Postmark. New accounts start in a per-Region sandbox capped at 200 messages per 24 hours to verified recipients, and the production-access request is answered within 96 hours.
3. Mailtrap
Best for: developers who want a separate sandbox product for testing and SOC 2 Type II on every plan.
$15 for 10,000 and $20 for 50,000. Inbound is included on every plan.
Watch out for: a failed send returns an errors array of strings. Logs are kept 5 days on Basic.
4. Resend
Best for: developers who want an idempotency key and a familiar API, with SOC 2 Type II.
Resend supports Idempotency-Key on sends and batches, kept for 24 hours and up to 256 characters. Pro is $20 for 50,000.
Watch out for: the free plan is 3,000 a month at 100 a day, below this workload. DKIM keys are 1024-bit.
5. SMTP2GO
Best for: teams that need SMTP on many ports and a regional data centre.
$30 for 50,000, with paid reporting of 30 days, extendable to 2 years. The SMTP relay listens on eight ports, with US, EU and Australian hostnames.
Watch out for: the send guide lists 13 parameters and no idempotency key. A key's rate limit defaults to unlimited.
6. MailerSend
Best for: developers who also need SMS from the same API.
Starter is $35 for 50,000 with SMS included. An SMTP relay is on the free plan list.
Watch out for: the send reference lists no idempotency key, and activity is kept 7 days on Starter.
7. Mailgun
Best for: developers who need inbound routes, HMAC-signed webhooks and both an HTTP API and an SMTP endpoint.
Foundation is $35 for 50,000. Webhooks carry a token, a timestamp and an HMAC-SHA256 signature.
Watch out for: logs are 5 days on Foundation; 30 days needs Scale at $90. No idempotency key is documented on the pages we read.
Moving lead routing off Postmark
- Make every alert idempotent. Choose a key per logical message:
lead-confirm/<lead id>,lead-alert/<lead id>/<rep>. This is the change Postmark asked you to build yourself. - Replace basic-auth webhook checks with signature checks. Read the raw body, verify
x-agentisend-signaturewith the signing secret, and reject timestamps far from your clock. Deduplicate onx-agentisend-event-id. - Tag by flow and source.
tags: { flow: 'lead_alert', source: 'paid_search' }comes back on every event, so you can report alert delivery by acquisition channel. - Handle refusals in code. Branch on
code.suppressed_recipientmeans re-route;retryable: truemeans waitretry_after_seconds. - Run both providers for a week with Postmark as fallback, then switch.
Questions people ask
Does Postmark support idempotency keys? No. Its support article says Postmark does not support an idempotency key and recommends detecting duplicates yourself.
How do I verify webhooks without HMAC on Postmark? Postmark recommends HTTP basic authentication plus an IP allow list. AgentiSend and Mailgun sign each delivery with HMAC-SHA256.
Which Postmark alternative keeps more than 45 days of logs? AgentiSend keeps 90 days on Pro ($16 for 50,000) and 180 on Scale, both included in the plan.
Sources
Pricing pages read 9 November 2026: postmarkapp.com/pricing, aws.amazon.com/ses/pricing, docs.mailtrap.io/account-and-organization/billing/plans, resend.com/pricing, smtp2go.com/pricing, mailersend.com/pricing, mailgun.com/pricing. Documentation read 28 September to 10 November 2026: postmarkapp.com/support/article/what-is-an-idempotency-key, postmarkapp.com/developer/webhooks/webhooks-overview, docs.aws.amazon.com/ses/latest/APIReference-V2/API_SendEmail.html, docs.aws.amazon.com/ses/latest/dg/request-production-access.html, docs.mailtrap.io/developers/email-sending/transactional/send-transactional-email, resend.com/docs/dashboard/emails/idempotency-keys, developers.smtp2go.com/docs/send-an-email, developers.smtp2go.com/docs/smtp-relay, developers.mailersend.com/api/v1/email, documentation.mailgun.com/docs/mailgun/user-manual/webhooks/securing-webhooks.