Postal
Self-hosted email server for inbound and outbound delivery.
Replaces Sendgrid, Postmark, Mailgun, Amazon Ses

Who it's for
Applications sending order confirmations, notification emails, and password resets at scale face per-email charges from managed services that compound as the application grows. Postal removes per-email billing entirely, replacing it with a fixed server cost.
If your email volume is low (under a few thousand emails per day), the operational overhead of running your own mail server likely outweighs the cost savings versus a managed service's free or low-cost tier.
Any application where email content and recipient lists must remain entirely within your own infrastructure can self-host Postal rather than route messages through a cloud API. Email delivery analytics and message logs stay on your server, with no external provider accessing them.
If routing email through a managed provider is acceptable, services like SendGrid or Postmark provide better deliverability guarantees with no infrastructure management required.
Teams that have outgrown the free tier of a managed email service and want to cut costs without reducing capability can migrate to Postal and trade per-email billing for server management overhead. The switch makes the most financial sense at higher volumes where managed service costs have become a significant budget line.
Factor in the operational cost of mail server management, including monitoring and deliverability incidents. For teams without dedicated infrastructure capacity, managed services may remain the lower total-cost option.
The problem
Managed transactional email services charge per email sent. At low volumes the cost is negligible, but for applications sending millions of notifications, password resets, or order confirmations, the monthly bill from SendGrid, Postmark, or Mailgun can reach significant levels. Many teams only discover this after their application scales. There is also the data exposure question. Every email sent through a commercial email API passes through that provider's infrastructure. For applications handling sensitive information, or for organizations in jurisdictions with strict data residency rules, routing transactional email through a third-party cloud service is a compliance concern that self-hosting avoids.
How it works
Postal operates as a full mail server for both directions of email traffic. It delivers outbound email to external recipients and routes incoming email sent to your domain, covering both sides of the email pipeline from one installation.
Postal runs as a standard SMTP server, so any application or mail client that speaks SMTP can use it for sending. This includes web applications sending transactional email via SMTP credentials and direct SMTP connections from other mail servers.
The official installation toolkit at github.com/postalserver/install provides prerequisite scripts and templates for deploying on Ubuntu. Version 3 is the current release. The full setup documentation is at docs.postalserver.io/getting-started.
Running Postal costs only the server it runs on. The MIT license means no per-email fees, no seat licensing, and no vendor restrictions on how you use the installation. Email volume does not affect what you pay.
Features
- Inbound and outbound email handling
- Full SMTP server interface
- Docker-based deployment on Ubuntu
- MIT licensed with no per-email billing
How to install
Install Postal prerequisites on Ubuntu using the official quick-start script; follow docs.postalserver.io/getting-started for the full production deployment.
curl https://raw.githubusercontent.com/postalserver/install/main/prerequisites/install-ubuntu.v3.sh | bashRecommended for this setup
Strengths
- No per-email pricing: Postal runs on your own infrastructure, so costs are fixed to the server rather than the volume of email sent. For applications sending at scale, this directly eliminates the variable per-email cost that accumulates with managed services like SendGrid or Mailgun.
- Full ownership of email data: Every email Postal sends or receives stays within your own infrastructure. No third-party provider sees your email content, recipient lists, or delivery analytics. For teams with privacy requirements or data residency constraints, this is the core reason to run your own mail server.
- Active project with long community track record: Postal has accumulated 16,954 GitHub stars since launching in 2017, with its last commit in November 2026. The project maintains GitHub Discussions and a Discord community for support. With 1,323 forks and 51 open issues across a 9-year-old codebase, the repository reflects active, ongoing use.
Trade-offs
- Mail server infrastructure requires ongoing management: Running your own mail server means managing its DNS configuration, monitoring its sending reputation with receiving mail servers, and handling incidents when messages are blocked or flagged. These operational responsibilities are handled by managed services like SendGrid or Postmark. Teams without someone willing to take this on should use a managed service instead.
- Deliverability depends on your server reputation: A fresh Postal installation starts with no sending history, and email delivery rates depend on how receiving mail servers assess your sending IP. Building a good sending reputation takes time and careful volume management. The managed services Postal replaces have established IP reputations built over years; a new self-hosted server does not.
Tech stack
FAQ
Yes: Postal is MIT licensed and free to run on your own infrastructure with no per-email fees. You pay for the server it runs on, not the email volume it sends. There is no managed cloud version of Postal; self-hosting is the only way to use it.
Postal runs on Ubuntu Linux with Docker and a database as core prerequisites. The official install scripts at github.com/postalserver/install configure the required services. The full setup guide is at docs.postalserver.io/getting-started. Version 3 is the current release.
Yes: Postal is a full mail server for both directions. It handles outbound delivery to external recipients and routes incoming email sent to your domain. This distinguishes it from some managed services that focus primarily on outbound transactional sending.
For outbound transactional email sending, yes: Postal provides the SMTP infrastructure and routing needed for application email. The key difference is operational: with a managed service, deliverability and infrastructure management are handled for you. With Postal, your team manages the server and its sending reputation. Teams with available infrastructure capacity and high email volumes are the strongest candidates for a full switch.