NitroMTA
Open-source, self-hosted mail delivery engine written in Rust that speaks the Amazon SES v2 API and sends from your own IPs and domains.
At a Glance
About NitroMTA
NitroMTA is the mail delivery engine of Nitrosend, open sourced under Apache-2.0 and built in Rust. It speaks the Amazon SES v2 API, so existing SES code can be pointed at it by changing the endpoint and keys, and mail goes out from IP addresses and domains you control. The latest release listed is v0.3.0.
What It Is
NitroMTA is a self-hosted mail transfer agent that acts as an SES replacement. It runs as one Rust binary on a Linux host with its store in SQLite and a systemd unit. Applications submit mail through SES v2 SDK calls or through SMTP with STARTTLS and a login. The engine queues, DKIM-signs, retries and delivers directly to recipient mail servers.
The SES v2 surface includes SendEmail, SendBulkEmail, templates, identities, configuration sets, tenants, the suppression list, dedicated IPs and SES-shaped events through an SNS subset. It is tested against the official AWS SDKs for Python, JavaScript and Ruby.
Setup path
A sending host needs outbound port 25, a reverse DNS name for each sending IP, and a domain whose DNS you control. Installation uses signed Debian/Ubuntu and RHEL/Fedora packages, an Arch AUR package, x86_64 and arm64 archives, or a container image. nitromta setup writes the configuration and keys and lists remaining steps. nitromta doctor then checks reverse DNS, SPF, DKIM, DMARC and the bounce domain, and reports the exact DNS records to publish.
Capture mode runs the whole engine locally with no DNS or IP address and shows each message in a browser instead of sending it, which suits trying it out before deploying.
Deliverability and durability
New IPs warm up receiver by receiver from 50 messages a day, with per-provider connection limits and cooldowns, automatic suppression of hard bounces and complaints, DKIM signing, and TLS verified by MTA-STS and DANE. A message is accepted only once committed to disk. nitromta explain shows why a message is waiting, and health checks and Prometheus metrics are provided. Personal data can be encrypted at rest, including per-tenant keys.
Benchmarks
The project reports 3,313 messages per second on 4 CPUs of an AWS c7gd.metal server, against 1,048 for KumoMTA and 806 for Postfix with OpenDKIM, with each message committed to disk before acceptance. These are the project's own published results, reproducible with cargo harness quick.
Community Discussions
Be the first to start a conversation about NitroMTA
Share your experience with NitroMTA, ask questions, or help others learn from your insights.
Pricing
Open Source (Self-hosted)
Self-hosted NitroMTA mail delivery engine under the Apache-2.0 license. You run it on your own Linux host and sending IPs.
- Apache-2.0 licensed core
- SES v2 API compatible (SendEmail, SendBulkEmail, templates, identities, configuration sets, tenants, suppression list, dedicated IPs)
- SMTP submission with STARTTLS and login
- Durable disk-committed queue
- IP warmup, per-provider limits, DKIM signing, MTA-STS and DANE
Capabilities
Key Features
- Amazon SES v2 API compatibility
- SMTP submission with STARTTLS and login
- Durable on-disk acceptance of messages
- Automatic IP warmup per receiver
- Per-provider connection limits and cooldowns
- Automatic suppression of bounces and complaints
- DKIM signing and TLS with MTA-STS and DANE
- nitromta doctor DNS and setup checks
- nitromta explain for queued messages
- Capture mode for local testing
- Prometheus metrics and health checks
- Encryption at rest with per-tenant keys
- Hardened systemd unit
