Discourse SES AWS working app.yml file example please

让人想犯罪 __ 提交于 2019-12-12 05:39:40

问题


Can someone please post an AWS SES working app.yml file example? I mean literally copy and paste it. Been fighting this set up for days and its got to be something minor in the config settings.


回答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



回答2:


discourse 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

Must have requested limit increase from AWS - in Support Center.




回答3:


In addition to the settings posted by Richard Jones, I think you also need to enable this line in app.yml and change the email address with the validated email address in SES:

- exec: rails r "SiteSetting.notification_email='info@unconfigured.discourse.org'"

See this answer for more details.



来源:https://stackoverflow.com/questions/46345752/discourse-ses-aws-working-app-yml-file-example-please

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!