Postfix Mail Relay

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?

One-Click Deploy

No manual Docker Compose needed. Web.Casa configures and starts everything.

Auto HTTPS

Caddy auto-provisions SSL certificates. Reverse proxy works out of the box.

Unified Management

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.

App Info

Version
1.4.0
Author
shamil
Default Port
2525

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 alpine image instead of ubuntu.
  • Uses envsubst for templating instead of j2cli.
  • All output goes to stdout and stderr including maillog.
  • Included superviserd event watcher which will exit the supervisord process if one of the monitored processes dies unexpectedly.
  • Doesn't use TLS on smtpd side.
  • And other changes to make the image as KISS as possible

Changed in version 1.3.0

  • Remove rsyslog dependancy
  • Remove supervisor
  • Even more KISS, just single script used to configure and run postfix

Environment variables

ENV. VariableDescription
ACCEPTED_NETWORKSSpace 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_RESTRICTIONSSpace delimited list of allowed RCPT TO addresses. Default: unrestricted
SMTP_HOSTExternal relay DNS name. Default: email-smtp.us-east-1.amazonaws.com
SMTP_LOGINLogin to connect to the external relay. Required
SMTP_PASSWORDPassword to connect to the external relay. Required
SMTP_PORTExternal relay TCP port. Default: 25
TLS_VERIFYTrust level for checking remote side cert. Default: may (http://www.postfix.org/postconf.5.html#smtp_tls_security_level)
USE_TLSRemote 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.