有人可以发布AWS SES工作的app.yml文件示例吗?我的意思是直接复制并粘贴它。经过几天的斗争,它在配置设置中变得很小。
答案 0 :(得分:1)
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
答案 1 :(得分:1)
话语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支持限制增加 - 在支持中心。
答案 2 :(得分:1)
除了Richard Jones发布的设置之外,我认为您还需要在app.yml
中启用此行,并使用SES中经过验证的电子邮件地址更改电子邮件地址:
- exec: rails r "SiteSetting.notification_email='info@unconfigured.discourse.org'"
有关更多详细信息,请参见this answer。