Hello,
I recently installed Discourse to my Kubernetes cluster using the bitnami discourse helm chart. I am attempting to get it working with the AWS SES I have configured currently that works with other addresses and services I have running, but I cant seem to get Discourse to work.
I’ve looked over the various documentation and there seems to be conflicting information whether the variable should be DISCOURSE_SMTP_NOTIFICATION_EMAIL or DISCOURSE_NOTIFICATION EMAIL (Troubleshoot email on a new Discourse install and discourse_docker/samples/standalone.yml at main · discourse/discourse_docker · GitHub) so I just put both in the extra env variables.
smtp:
enabled: true
host: "email-smtp.us-west-2.amazonaws.com"
port: "587"
user: "XXXXX"
password: "XXXXX"
protocol: "tls"
auth: ""
existingSecret: ""
sidekiq:
extraEnvVars:
- name: DISCOURSE_SMTP_NOTIFICATION_EMAIL
value: discourse@exampledomain.com
- name: DISCOURSE_SMTP_DOMAIN
value: exampledomain.com
- name: DISCOURSE_NOTIFICATION_EMAIL
value: discourse@exampledomain.com
discourse:
extraEnvVars:
- name: DISCOURSE_SMTP_NOTIFICATION_EMAIL
value: discourse@exampledomain.com
- name: DISCOURSE_SMTP_DOMAIN
value: exampledomain.com
- name: DISCOURSE_NOTIFICATION_EMAIL
value: discourse@exampledomain.com
When I send a test email, I get the following error in the “skipped” section:
554 Transaction failed: Invalid domain name: '127.0.0.1'.
The troubleshooting guide mentioned the following:
The default email from address is based on the install domain plus subdomain, so if your URL is `discourse.example.com` it will be:
`noreply@discourse.example.com`
But if your mail provider is expecting:
`noreply@example.com`
… you may have problems! To get around this, edit and uncomment this exec line in `app.yml`
However, I am unable to comment out that line once in the container.
I am deploying Discourse to discourse.subdomain.exampledomain.com
and I was trying to set the SMTP domain value using the DISCOURSE_SMTP_DOMAIN
extra env variabe, but maybe that is not working because in the email configuration settings on the website, the domain name is showing up empty.
Is there some value or configuration that I am missing to get it to work?
Thank you!