有人可以发布一个AWS SES Working App.yml文件示例吗?我的意思是从字面上复制并粘贴它。在配置设置中一直在与此设置进行战斗几天。
DISCOURSE_SMTP_ADDRESS: email-smtp.us-east-1.amazonaws.com
DISCOURSE_SMTP_PORT: 587 DISCOURSE_SMTP_DOMAIN: mail.<yourmaildomain>.com
DISCOURSE_SMTP_USER_NAME: <SMTP USER NAME>
DISCOURSE_SMTP_PASSWORD: <SMTP USER PW>
DISCOURSE_SMTP_AUTHENTICATION: "login"
DISCOURSE_SMTP_ENABLE_START_TLS: true # (optional, default true)
DISCOURSE_SMTP_OPENSSL_VERIFY_MODE: none
话语v 1.9.1
/discourse/htdocs/config/discourse.conf
smtp_address = email-smtp.us-east-1.amazonaws.com
smtp_port = 587
smtp_domain = your_domain.com
smtp_user_name = username # from AWS SMTP Settings/Create my Credentials
smtp_password = password # from AWS SMTP Settings/Create my Credentials
smtp_enable_start_tls = true
smtp_authentication= "login"
SMTP_OPENSSL_VERIFY_MODE = "none"
smtp_from_address = # aws verified address
必须要求AWS的限制增加 - 在支持中心。
除了理查德·琼斯(Richard Jones)发布的设置外,我认为您还需要在app.yml
中启用此行,并使用SES中的已验证的电子邮件地址更改电子邮件地址:
- exec: rails r "SiteSetting.notification_email='info@unconfigured.discourse.org'"
有关更多详细信息,请参见此答案。