Skip to content

[新服务] docker simple-mail-forward自动转发所有域名邮件到目标邮件

Tags:

目的

参考

实现

CloudFlare设置 auto.xx.cc (对外的邮件可以是 [email protected])

运行docker

# production - :之后是esmtp密码,也可以不填,自动生成;自己用不上
export SMF_CONFIG='@auto.xxx.cc:目标[email protected]:eCDGH7'
# to multiple address
export SMF_CONFIG='@auto.xxx.cc:目标[email protected]|目标[email protected]:eCDGH7'

# 保留dkim - 不然每次运行都变
mkdir -p /data/simple-mail-forwarder && cd /data/simple-mail-forwarder
# -t: Allocate a pseudo-tty
docker run -t -d --restart=always \
  --name=simple-mail-forwarder \
  -v $(pwd)/dkim:/var/db/dkim/ \
  -e SMF_CONFIG -p 25:25 zixia/simple-mail-forwarder

docker logs -f simple-mail-forwarder

设置dkim – cat dkim/auto.hate.cc/default.txt

验收

Leave a Reply

Your email address will not be published.