# Postfix

Postfix is a fast, secure SMTP (Simple Mail Transfer Protocol) mail server that administrators can use to accept, relay, and deliver email for self-hosted services. It is open source and self-hosted, installable on Docker Hub.

Canonical page: https://ourlocalhost.com/app/8688/postfix

## Description

Postfix is a fast, secure SMTP (Simple Mail Transfer Protocol) mail server that administrators can use to accept, relay, and deliver email for self-hosted services.

## Platform availability

Available on 1 of 10 platforms: Any server.

## Desktop and other devices

Other (web).

## Health score

69/100 (Good), based on 4 of 4 factors.
- Maintained: 86 (last commit 17 days ago)
- Popular: 58 (824 GitHub stars)
- Easy to install: 35 (2 install platforms, install notes)
- Light to run: 85 (512 MB minimum RAM)

## Links

- Official website: http://www.postfix.org/
- desktop: http://www.postfix.org/
- GitHub: https://github.com/bokysan/docker-postfix
- Docker Hub: https://hub.docker.com/r/boky/postfix/
- Documentation: http://www.postfix.org/docs.html

## Common questions

### Which container port should self-hosters expose so email apps can send outgoing mail with the Docker image?

Publish a host port to the container’s 587 port, such as mapping 1587 to 587. This is the secure mail-handoff port used by email apps. If it is not opened, mail clients cannot connect and outgoing mail fails.

### What setting lists the trusted internal servers that may hand mail to Postfix?

Set POSTFIX_mynetworks to the trusted IP addresses that may hand mail to Postfix without being treated as outside senders. A too-narrow list blocks local senders, while a too-broad list lets outsiders bypass normal checks.

### What domain control should be set before starting the Docker image to avoid accepting mail it should not accept?

Set ALLOWED_SENDER_DOMAINS to your real domain(s), such as example.com, before starting the container. If it is missing or too broad, the server can accept mail it shouldn’t accept, which often causes bouncing or blacklist trouble.

### Which variables configure an upstream relay host and its credentials in the image?

Use RELAYHOST, RELAYHOST_USERNAME, and RELAYHOST_PASSWORD for the Postfix-specific relay settings.

### What urgent security update does the Postfix homepage mention for SMTP smuggling?

An email spoofing attack called SMTP Smuggling was published before people had a chance to update Postfix and other mail systems. Updates are available for all supported Postfix stable releases.

## Alternatives

- Mail-in-a-box: Easy-to-deploy mail server.
- Mailpit: Mailpit is a multi-platform email testing tool & API for developers.
- OpenSMTPD: OpenSMTPD is a free server-side SMTP (Simple Mail Transfer Protocol) transfer agent that sends, relays, and receives email for homelabs and…
- Stalwart: Stalwart is an open-source, all-in-one email server that unifies JMAP, IMAP (Internet Message Access Protocol), and SMTP (Simple Mail Trans…
- mailhog: MailHog is an email testing tool for developers that captures outgoing SMTP messages locally, shows them in a web UI or JSON API, and can o…

---
Source: Our Local Host (https://ourlocalhost.com/app/8688/postfix), the self-hosted and open-source app directory.
