I’m testing a local instance of Discourse Docker, I don’t quite understand what the ‘hostname’ should be or how I would set it up, although I’ve managed to set a smtp server (with DKIM and SPF) and successfully test it otherwise the e-mails aren’t being delivered…
I’ve set the hostname server as localhost but it is no working, all the the SMTP settings are correct so what am I doing wrong?
EDIT(Info for anyone going through the same trouble as me):
Apparently, hostname is what your discourse will use to find your DNS to validate your settings and get some info, one of which seems to be MX which will refer to your e-mail adress hostname.
I’m using discourse.focusefield.com.br as my subdomain for my discourse app, (I’m running it on DigitalOcean), and MailJet for my e-mails, so my DNS configs on focusefield.com.br configs are now as you can check bellow:
myDigitalOceansDiscourseAppIP (hiding it for safety reasons)
And the SPF and DKIM configs on TXT settings (not placing here for safety reasons as well).
Now finally I can set the Discourse’s hostname to be
This seems to be the correct setup, I only wish there was an easy way to setup the hostname without having to go trough all this.