I have a Linode with Gentoo Linux that I decided to install Discourse on.
I installed Docker and then using the 30-min install options installed discourse.
This part worked as I can go to the site and register my admin user but after registering, I never get a Verification Email.
I configured Discourse via
nano -w containers/app.yml with
./launcher bootstrap app after editing it.
I signed up with Mailjet to do email and got an API Key and Secret key to use.
To show examples without revealing those, I’ll use these:
- API Key:
- Secret Key:
- Dev Email:
Here is my
DISCOURSE_DEVELOPER_EMAILS: 'firstname.lastname@example.org' DISCOURSE_HOSTNAME: 'forum.mydomain.tld' DISCOURSE_SMTP_ADDRESS: in-v3.mailjet.com DISCOURSE_SMTP_DOMAIN: mydomain.tld DISCOURSE_SMTP_USER_NAME: hotdog DISCOURSE_SMTP_PASSWORD: ketchup
I have tried using using these options (separately and together) also without any effect:
DISCOURSE_SMTP_PORT: 587` DISCOURSE_SMTP_ENABLE_START_TLS: false
After looking at this topic, I copied an example python script and edited it’s configuration to be:
SMTPserver = 'in-v3.mailjet.com' sender = 'email@example.com' destination = ['firstname.lastname@example.org'] USERNAME = "hotdog" PASSWORD = "ketchup"
The python script worked just fine so I know the Mailjet account works.
No idea why Discourse can’t send email.
Are there any logs I can look at to figure out why Discourse won’t send email?
I’ve looked in
shared/standalone/log/rails/production.log but all I find about email is various entries of this (with different ms values):
Sent mail to email@example.com (30058.0ms) Job exception: execution expired