# Postfix Relay

Postfix Relay is a containerized SMTP relay built on Postfix, designed to let self-hosted applications and services send outbound email without requiring an external mail provider. It is open source and self-hosted, installable on Docker Hub and Unraid.

Canonical page: https://ourlocalhost.com/app/532/postfix-relay

## Description

Postfix Relay is a containerized SMTP relay built on Postfix, designed to let self-hosted applications and services send outbound email without requiring an external mail provider.

## Platform availability

Available on 1 of 10 platforms: Unraid.

## Health score

69/100 (Good), based on 5 of 5 factors.
- Maintained: 100 (last commit 24 days ago)
- Popular: 45 (169 GitHub stars)
- Easy to install: 35 (1 install platform, install notes, Docker image)
- Light to run: 40 (4 GB minimum RAM, runs on ARM)
- Security check: 95 (no serious findings, CI, tests)

## Links

- Docker Hub: https://hub.docker.com/r/mwader/postfix-relay
- Documentation: https://www.postfix.org/docs.html
- GitHub: https://github.com/wader/postfix-relay
- Unraid: https://ca.unraid.net/apps/postfix-relay-13ybf2z02x47sv?q=postfix-relay

## Common questions

### Should I publish the Postfix Relay SMTP port to the internet?

No. The default configuration is an open relay that relies on Docker networking for protection, so it should not be exposed publicly.

### How do I let another container in the same compose stack send mail through it?

Put the app container and the Postfix Relay container on the same Docker network. The example points the app at the smtp service host for outbound mail.

### Which variable sets the FQDN used by Postfix for 220 and HELO?

Set POSTFIX_myhostname to the desired FQDN. The image defaults it to hostname if you leave it unset.

### How can I turn off a Postfix setting that the image enables by default?

Set the corresponding POSTFIX_ environment variable to an empty value. Some parameters do not accept an empty value, such as error_notice_recipient.

## Alternatives

- OpenSMTPD: OpenSMTPD is a free server-side SMTP (Simple Mail Transfer Protocol) transfer agent that sends, relays, and receives email for homelabs and…
- Sendmail: Sendmail is a general purpose internetwork email routing facility that supports many kinds of transfer and delivery methods, including the…
- Stalwart: Stalwart is an open-source, all-in-one email server that unifies JMAP, IMAP (Internet Message Access Protocol), and SMTP (Simple Mail Trans…

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