Postfix-Relay
Docker 应用程序 from ZappyZap's Repository
概述
This runs Postfix (as a relay) in Docker.
Most home ISPs block port 25, so outbound emails must be relayed through an external SMTP server (e.g., Gmail).
This container acts as a single collections point for devices needing to send email.
⚠️ Postfix acts as an open relay. As such, this is not meant to be run on the internet, only on a trusted internal network! ⚠️
Requirements
You must already have a account on an external SMTP server (e.g., Gmail, AWS SES, etc...).
Your external SMTP server must be using encryption (i.e., plaintext is not allowed)
运行时参数
- 网络
bridge- 外壳
sh- 特权
- false
- 额外参数
--restart unless-stopped
模板配置
Data DirectoryPathrw
Used to store Postfix's mail spool
- 目标
- /var/spool/postfix
Postfix SMTP serverPorttcp
- 目标
- 25
- 默认值
- 25
- 价值
- 25
TimezoneVariable
- 目标
- TZ
- 默认值
- America/New_York
- 价值
- America/New_York
Public SMTPVariable
Public SMTP server to use must be using encryption (i.e., plaintext is not allowed)
- 目标
- RELAY_HOST
Relay PortVariable
Public SMTP port to use
- 目标
- RELAY_PORT
SMTP usernameVariable
Address to login to $RELAY_HOST
- 目标
- RELAY_USER
SMTP passwordVariable
Password to login to $RELAY_HOST If using Gmail 2FA, you will need to setup an app password
- 目标
- RELAY_PASS
Test Email addressVariable
Address to receive test email If not set, test email will not be sent
- 目标
- TEST_EMAIL
Domain from addressVariable
Domain of the from address
- 目标
- MYORIGIN
NetworksVariable
Networks that Postfix will forward mail for
- 目标
- MYNETWORKS
- 默认值
- 0.0.0.0/0
From AddressVariable
Changes the email from address
- 目标
- FROMADDRESS
下载统计数据
1,300,897
下载总数
16,587
本月
10,845
平均每月
长期下载总量
加载图表...
详细信息
存储库
loganmarchione/docker-postfixrelay:latest最后更新2026-05-03
初见2022-11-14
在Unraid 上运行 Postfix-Relay 。
Postfix-Relay 已被列入Unraid OS 的社区应用程序。探索Unraid ,构建灵活的家庭服务器、NAS 或家庭实验室。