MG Mailserver - Transactional email on Amazon SES

About this project
A self-built transactional email platform: a Resend-compatible API, Amazon SES as the delivery engine, and a dark-themed web app to manage sent mail, domains, API keys, and delivery status. Includes OTP login via Supabase, domain verification with BYODKIM, per-domain SMTP credentials, and Kubernetes-ready deployment.
View live →Our role
- Product- & platformarchitectuur
- Full-stack (Next.js, TypeScript)
- AWS SES & webhooks
- Supabase Auth & database
- DevOps (Docker, Kubernetes)
Technologies
The challenge
For our own products and clients we needed reliable outbound email without being locked into a single SaaS pricing model. Integration had to stay simple for developers (familiar API shape), and the team needed visibility into bounces, delivery, and per-domain configuration — without exposing sensitive production data in marketing assets.
Our solution
MG Mailserver runs on Next.js 15 with PostgreSQL (Supabase), Supabase Auth with OTP, and the AWS SDK for SES including webhook handling for delivery events. Scheduled sends and bulk campaign delivery run through Trigger.dev background tasks. The UI includes an email log with search filters and export, campaigns, domains (verification, DNS checks, SMTP credentials), API keys, and metrics. The stack is containerised and deployable on Kubernetes with HPA.
Results
Resend-compatible API for fast adoption in existing apps
Central visibility into sent mail and delivery status
Per-domain SMTP and API key management with SES verification
Passwordless OTP login and role-based admin flows
Production deployment at mailserver.mgsoftware.nl with Kubernetes scalability
Key features
Resend-compatible send API
Drop-in style replacement for common transactional mail SDK patterns so existing integrations can point at your own SES-backed endpoint.
Delivery log & webhooks
Processed SES/SNS events for statuses such as delivered and bounced, searchable log, filters, and export — suited for support and debugging.
Domains, DKIM & SMTP credentials
Add domains, check DNS, verify in SES, BYODKIM where applicable, and generate or revoke IAM-based SMTP credentials per domain.
Gallery



Ready to build your
digital future?
Get in touch and discover how MG Software can transform your ideas into working software.

