Strategy ONE

配置您的 SMTP 服务器

  1. 通过 Amazon SES 控制台创建 SES SMTP 用户名和密码。
  2. 登录到要更改其 Postfix 配置的计算机。
  3. 上传用于验证 Amazon SES 服务器的新证书 (<your certificate path>/xxx.ct)。
  4. 修改 /etc/postfix/sasl_passwd 使用新的端点名称、用户名和密码。
  5. 生成 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 
  6. 告知 Postfix 在何处可以找到正确的证书:
  7. 复制
    sudo postconf -e 'smtp_tls_CAfile = <your certificate path>/xxx.ct'

  8. 重新启动 Postfix:

    复制
    sudo postfix stop
    sudo postfix start