Init
This commit is contained in:
42
03-UnrealEngine/流程管理与部署/VPS服务部署/Postfix邮件服务器搭建.md
Normal file
42
03-UnrealEngine/流程管理与部署/VPS服务部署/Postfix邮件服务器搭建.md
Normal file
@@ -0,0 +1,42 @@
|
||||
## 参考网址
|
||||
https://www.kutu66.com//GitHub/article_113357
|
||||
|
||||
## docker后缀
|
||||
在 Docker 容器中运行带有smtp身份验证( sasldb )的postfix。 TLS和OpenDKIM支持是可选的。
|
||||
|
||||
## 需求
|
||||
Docker 1.0
|
||||
## 安装
|
||||
```
|
||||
sudo docker pull catatnight/postfix
|
||||
```
|
||||
|
||||
## 用法
|
||||
使用smtp身份验证创建后缀容器
|
||||
```
|
||||
docker run -p 25:25
|
||||
-e maildomain=mail.example.com -e smtp_user=user:pwd
|
||||
--name postfix -d catatnight/postfix# Set multiple user credentials: -e smtp_user=user1:pwd1,user2:pwd2,...,userN:pwdN
|
||||
```
|
||||
|
||||
本人使用
|
||||
```
|
||||
docker run -p 25:25 -e maildomain=mail.blueroses.top -e smtp_user=gitea@blueroses.top:ljj@12345678 --name postfix -d catatnight/postfix
|
||||
```
|
||||
```
|
||||
$ sudo docker run -p 25:25
|
||||
-e maildomain=mail.example.com -e smtp_user=user:pwd
|
||||
--name postfix -d catatnight/postfix# Set multiple user credentials: -e smtp_user=user1:pwd1,user2:pwd2,...,userN:pwdN
|
||||
启用 OpenDKIM: 在 /path/to/domainkeys 中保存你的域密钥 .private
|
||||
|
||||
$ sudo docker run -p 25:25
|
||||
-e maildomain=mail.example.com -e smtp_user=user:pwd
|
||||
-v/path/to/domainkeys:/etc/opendkim/domainkeys
|
||||
--name postfix -d catatnight/postfix
|
||||
启用 TLS(587): 将SSL证书 .key 和 .crt 保存到 /path/to/certs
|
||||
|
||||
$ sudo docker run -p 587:587
|
||||
-e maildomain=mail.example.com -e smtp_user=user:pwd
|
||||
-v/path/to/certs:/etc/postfix/certs
|
||||
--name postfix -d catatnight/postfix
|
||||
```
|
Reference in New Issue
Block a user