- What’s your URL? https://a7d47973106c4240b3baca79f3ef5a00.tk
- What version of Ghost are you using? 3.41.1
- What version of Ghost CLI are you using? 1.15.3
Issue Summary
Emails are not being sent from Ghost.
I think I’ve follow the documentation correctly, but I may have missed something. In addition to the SMTP details below I’ve also updated the /settings/labs/members
Mailgun region, domain and API Key to match those provided in my MailGun Account.
How was Ghost installed and configured?
Installed onto a Digital Ocean droplet using the official one-click-deployment image.
Of note the only configuration that has changed from the one-click-deployment was the /var/www/ghost/config.production.json
file which has had the mail node updated as per the documation.
"mail": {
"transport": "SMTP",
"options": {
"service": "Mailgun",
"host": "smtp.eu.mailgun.org",
"port": 587,
"secureConnection": true,
"auth": {
"user": "REDACTED",
"pass": "REDACTED"
}
}
},
I’ve tried both the secure and non-secure examples shown in the docs and neither make any difference to the issue at hand.
What Node version, database, OS & browser are you using?
Node: v12.18.0
OS: Ubuntu
Browser: Chrome
What errors or information do you see in the console?
No related errors in the following log files:
/var/www/ghost/content/logs/https___a7d47973106c4240b3baca79f3ef5a00_tk_production.log
/var/www/ghost/content/logs/https___a7d47973106c4240b3baca79f3ef5a00_tk_production.error.log
What steps could someone else take to reproduce the issue you’re having?
In theory, following through the instructions in the droplet image and configuring MailGun per the docs should re-create this issue each time.
Additional steps taken:
- Port 587 opened for MailGun
- Ghost restarted to ensure config changes are picked up
- Digital Ocean DNS configuration inline with the entries expected by MailGun
If I manually verify sending an email to MailGun via SMTP based on their own quickstart guide then it works as expected and I get the email through to my inbox:
./swaks --auth \
--server smtp.eu.mailgun.org \
--au postmaster@redacted \
--ap REDACTED \
--to EMAIL@EMAIL.COM \
--h-Subject: "Testing" \
--body 'Standard test to verify.'
The above command produces the following output (truncated for brevity):
=== Trying smtp.eu.mailgun. org:25…
=== Connected to smtp.eu.mailgun. org.
← 220 Mailgun Influx ready
…
← 250 Great success
→ QUIT
← 221 See you later. Yours truly, Mailgun
=== Connection closed with remote host.