
Postfix Mail Relay — One-Click Install
Simple SMTP relay for environments where you may have private servers with no Internet connection.
Why install Postfix Mail Relay with Web.Casa?
No manual Docker Compose needed. Web.Casa configures and starts everything.
Caddy auto-provisions SSL certificates. Reverse proxy works out of the box.
Monitoring, backups, updates, logs — manage all apps from one panel.
How to Install
Install Web.Casa first, then one-click install this app from the App Store.
Postfix Mail Relay
Simple SMTP relay, originally based on alterrebe/docker-mail-relay, but has been rewritten since.
Description
The container provides a simple SMTP relay for environments like Amazon VPC where you may have private servers with no Internet connection
and therefore with no access to external mail relays (e.g. Amazon SES, SendGrid and others). You need to supply the container with your
external mail relay address and credentials. The image is tested with Amazon SES, Sendgrid, Gmail and Mandrill
Changes since alterrebe/docker-mail-relay
- Uses
alpineimage instead ofubuntu. - Uses
envsubstfor templating instead ofj2cli. - All output goes to
stdoutandstderrincludingmaillog. - Included
superviserdevent watcher which will exit thesupervisordprocess if one of the monitored processes dies unexpectedly. - Doesn't use TLS on
smtpdside. - And other changes to make the image as KISS as possible
Changed in version 1.3.0
- Remove
rsyslogdependancy - Remove
supervisor - Even more KISS, just single script used to configure and run
postfix
Environment variables
| ENV. Variable | Description |
|---|---|
ACCEPTED_NETWORKS | Space delimited list of networks to accept mail from. Default: 192.168.0.0/16 172.16.0.0/12 10.0.0.0/8 |
RECIPIENT_RESTRICTIONS | Space delimited list of allowed RCPT TO addresses. Default: unrestricted |
SMTP_HOST | External relay DNS name. Default: email-smtp.us-east-1.amazonaws.com |
SMTP_LOGIN | Login to connect to the external relay. Required |
SMTP_PASSWORD | Password to connect to the external relay. Required |
SMTP_PORT | External relay TCP port. Default: 25 |
TLS_VERIFY | Trust level for checking remote side cert. Default: may (http://www.postfix.org/postconf.5.html#smtp_tls_security_level) |
USE_TLS | Remote require tls. Must be yes or no. Default: no |
FAQ
Can I install Postfix Mail Relay on Web.Casa?
Yes, Postfix Mail Relay is available in the Web.Casa App Store. You can install it with one click from the Web.Casa panel — no need to manually write Docker Compose files or configure reverse proxies.
How do I install Postfix Mail Relay on Web.Casa?
First install Web.Casa with curl -fsSL https://get.web.casa | bash, then search for "Postfix Mail Relay" in the App Store and click install. Web.Casa automatically configures the Docker container, assigns ports, and sets up a Caddy reverse proxy.
What is the default port for Postfix Mail Relay on Web.Casa?
The default port for Postfix Mail Relay on Web.Casa is 2525. You can bind it to a custom domain through Web.Casa's Caddy reverse proxy, which automatically provisions HTTPS certificates.
Does Postfix Mail Relay get automatic HTTPS after installation?
Yes. Web.Casa is built on Caddy, so after installing the app, simply bind a domain and Caddy will automatically provision and renew SSL certificates via Let's Encrypt — no manual configuration needed.
How do I back up Postfix Mail Relay data?
Web.Casa has a built-in backup plugin that supports automatic backups of Postfix Mail Relay data to local storage, S3, WebDAV, or SFTP. You can configure scheduled snapshots and retention policies to keep your data safe.
Related Apps
Adguard Home Sync
Synchronize AdGuard Home config to replicas
AFFiNE
AFFiNE is a workspace with fully merged docs, whiteboards and databases.
Atuin Server
Magical Shell History
Baïkal
Calendar + Contacts server
Barrage
Minimal Deluge WebUI with full mobile support
Bazarr
A companion application to Sonarr and Radarr that manages and downloads subtitles