Strategy ONE
配置您的 SMTP 服务器
- 通过 Amazon SES 控制台创建 SES SMTP 用户名和密码。
- 登录到要更改其 Postfix 配置的计算机。
- 上传用于验证 Amazon SES 服务器的新证书 (<your certificate path>/xxx.ct)。
- 修改 /etc/postfix/sasl_passwd 使用新的端点名称、用户名和密码。
-
生成 hashmap 数据库文件:
复制sudo postmap hash:/etc/postfix/sasl_passwd
sudo chown root:root /etc/postfix/sasl_passwd /etc/postfix/sasl_passwd.db
sudo chmod 0600 /etc/postfix/sasl_passwd /etc/postfix/sasl_passwd.db - 告知 Postfix 在何处可以找到正确的证书:
-
重新启动 Postfix:
复制sudo postfix stop
sudo postfix start
复制
sudo postconf -e 'smtp_tls_CAfile = <your certificate path>/xxx.ct'
