You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Sending: add another provider (Postmark, Mailgun, ...) #10
cloudmail sends through Cloudflare Email Service, Amazon SES or Resend. Other providers are a common request, and each one is a self-contained piece of work.
What to build
One new sending provider. Say which one in a comment before you start, so two people don't build the same one.
Where
workers/lib/mail-transport.ts: the MailTransport interface (kind, validate, send) and resolveTransport, which picks a transport for a domain.
workers/lib/resend-transport.ts and workers/lib/resend-api.ts: the smallest existing provider, and the one to copy.
workers/lib/provider-send.ts: shared helpers for addresses, timeouts, retries and errors.
shared/ses-sending.ts: SENDING_PROVIDERS, the list of provider names.
Also touched: workers/lib/domain-sending-store.ts (stored credentials), workers/routes/domains.ts, workers/lib/openapi.ts, workers/routes/sending-webhooks.ts (bounces and complaints) and app/components/settings/DomainSendingCard.tsx.
Done when
A domain can be set to the new provider in Settings, and a send goes out through it.
Bounces and complaints from the provider's webhook reach the suppression list.
The provider's limits are checked in validate before any network call.
There are tests in the style of test/provider-transports.test.ts.
Activity