selfhost.directory

The index of self-hostable projects — ranked, categorized and served with live updates.
Own your data and stop giving it to big tech.

Postal logo

Self-host Postal

3.4.0

Open-source mail transport for incoming & outgoing e-mail

ReleaseOpen SourceMIT
curl https://raw.githubusercontent.com/postalserver/install/main/prerequisites/install-ubuntu.v3.sh | bash
Updated2 minutes ago
LanguageRuby
Setup difficultyAdvanced
Stars
16 960
CPU
At least 2 CPU cores
RAM
At least 4GB of RAM
Storage
At least 25GB of disk space
Ports
5000 (Postal's web server: admin interface plus open/click tracking requests), 25 (Postal's SMTP server, receiving mail from clients and other MTAs)
Requires
Docker Compose plugin, Docker Engine, MariaDB
Docker
ghcr.io/postalserver/postal
Postal's web interface shown in the installation guide, reached after the proxy issues a certificateLogin screen with the OpenID Connect provider button

What is Postal?

Postal is a complete mail delivery platform aimed at websites and web servers that want to send and receive their own transactional e-mail rather than paying a hosted provider; the docs describe it as an open-source take on Sendgrid, Mailgun or Postmark. It ships an SMTP server and an HTTP API for outgoing mail, DKIM signing, per-server send limits, a suppression list, click and open tracking, pools of sending IP addresses, and a development mode that holds messages instead of delivering them. Incoming mail can be routed to HTTP endpoints, other SMTP servers or other addresses, and optional SpamAssassin, rspamd and ClamAV scanning covers spam and malware. Operators manage multiple organizations, mail servers, users and credentials through a web interface that also provides message logs, historical messages, queue views, search and volume graphs, plus webhooks and built-in DNS checking for deliverability. Self-hosting means a dedicated server with Docker and the Compose plugin, MariaDB 10.6 or newer, and a reverse proxy such as Caddy: you clone the installation helper repository, run postal bootstrap, postal initialize, postal make-user and postal start, then configure your own DNS. Running your own mail server is the main caveat - the docs are explicit that you take on DNS configuration, IP reputation and upgrades yourself.

Should you self-host Postal?

Postal scores 73/100 on selfhost.directory (how scoring works) and ranks #3 of 16 in Mail Server. It has 16 960 GitHub stars, +102 in the last 30 days.

It shipped 4 stable releases in the past year. The latest, 3.4.0, came out on 16 November 2026. New versions land roughly every 3 months.

Setup is advanced: plan for several services and some ongoing maintenance. An official Docker image is available. It is MIT-licensed and written mostly in Ruby.

Its closest alternative on selfhost.directory is plunk (68/100, 5 609 stars). Postal scores higher overall. See Postal vs plunk side by side.

Features

  • Development mode
  • DKIM Signing
  • DNS checking & monitoring
  • Incoming mail routing
  • IP Pool Management
  • Message retention controls
  • Multi-tenancy
  • Open & Click Tracking
  • REST API
  • SMTP Sending
  • Spam & virus scanningDisabled by default; needs the external scanners to be set up.
  • Suppression List
  • Usage graphs & statistics
  • Web admin interface
  • Webhooks

Postal README

GitHub Header

How to install Postal

Install Postal with Docker

Environment variables
PORT, BIND_ADDRESS, WAIT_FOR_TARGETS, WAIT_FOR_TIMEOUT

Install Docker Engine and the Docker Compose plugin, then clone the installation helper repository:

git clone https://github.com/postalserver/install /opt/postal/install
sudo ln -s /opt/postal/install/bin/postal /usr/bin/postal

Generate configuration (replace postal.yourdomain.com with your hostname):

postal bootstrap postal.yourdomain.com

Initialize the database and create the first admin user:

postal initialize
postal make-user

Start Postal:

postal start

postal start runs a number of containers on your machine (web server, SMTP server and workers) from ghcr.io/postalserver/postal; a separate web proxy such as Caddy handles SSL termination. The same image can also be run directly with the postal web-server, postal smtp-server and postal worker commands, mounting configuration at /config.

How to configure Postal

  • PORTEnvironment variable to override the listening port of the web server or SMTP server process for a specific instance.

    values: port number

  • BIND_ADDRESSEnvironment variable to set the address a web server or SMTP server instance binds to.

    values: IP address

  • WAIT_FOR_TARGETSContainer entrypoint option: space-separated list of services and ports (for example mariadb:3306) to wait for before starting the process.

    values: host:port list

  • WAIT_FOR_TIMEOUT30Maximum time in seconds the container entrypoint waits for the services listed in WAIT_FOR_TARGETS.

    values: seconds

  • web_server.default_portpostal.yml option setting the default port the web server listens on.

    values: port number

Postal releases & version history

@ Every self-hosted release, weekly

One Monday email with the week's stable releases across the directory.

FAQ

Can you add a mailing list feature?

No - Postal is a mail transport agent rather than a mailing list manager, and the team does not want to add features such as address books or un-subscription handling that suit other applications better.

E-mails sent through Postal are going to spam - what do I do?

Check your DNS setup (reverse DNS, DKIM and SPF, rDNS matching the HELO), confirm your sending IPs have PTR records and are not blacklisted, make sure the message itself does not look like spam, and remember that new IPs sending high volume deliver poorly at first.

Should I use this instead of a cloud provider?

It is your call: both options have trade-offs, but running your own e-mail platform is not to be taken lightly because deliverability depends on things like correct DNS configuration.

More in Mail Server

Rate this project

Click to rate — no account needed.

0 comments

Posting as guest
Loading comments…