How do I setup SMTP on a Discourse Droplet ?

Posted June 21, 2016 9.8k views
EmailDigitalOcean 1-Click Apps Marketplace

Just installed the Discourse droplet, changed the root password, and followed the prompts. I was asked for SMTP information and thought it was as simple as using the default, adding my email address, and be done with it. However, emails are not being sent.

Is there another step that I missed?

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
6 answers


Configuring and administering a mail server on your own is not always an easy, straight forward task. We have a great tutorial/article about some of the issues you might run into:

If you DO decide you want to run your mail server after reading that article, we have a lot of articles about different options to setup a mail server: Depending on your skill level I would either suggest mail in a box ( for an easier solution or send-only postfix ( for a more advanced solution.



by Mitchell Anicas
When setting up a web site or application under your own domain, it is likely that you will also want a mail server to handle the domain's incoming and outgoing email. While it is possible to run your own mail server, it is often not the best option for a variety of reasons. This guide will cover many of the reasons that you may not want to run your own mail server, and offer a few alternatives.

I have the same question as the original poster. And, if I may say so, I feel that Andrews does not answer the question.

I am quite happy to have you handle my mail server but at the first SSH sign-in I was asked for my SMTP settings and I think I may have given the wrong port.

How can I change the SMPT port now?

Thank you

cd /var/discourse
./launcher rebuild app
  • The above tip wasn’t what I wanted.

    I didn’t want to rebuild the entire app’s world just to get past the hurdle for

    “Discourse Setup”
    “Confirm your Email”

    which got configured, possibly wrong.

    The better way was suggested by pfaffman as:-

    1. cd /var/discourse
    2. ./launcher stop app
    3. ./discourse-setup

I have the same problem. I’ve almost completed the Discourse setup, but I can’t log in and complete the process because the confirmation email never sends. My mail server (and web host) are 1and1. I used app.yml to change the port from 587 to 25, as advised on another forum post, but that didn’t work. Does anyone have a fix for this? I’m blocked.

Hi, I’m also having difficulty getting the registration email to work for the admin account.

I’m using Zoho as my email provider. I have successfully configured DKIM and SPF. The production.log file shows this where the email address is a valid address.

Sent mail to (1449.1ms)
Job exception: end of file reached

Any suggestions? I read through the questions and answers in without luck. Here is a snippet of app.yml.


## TODO: The SMTP mail server used to validate new accounts and send notifications
DISCOURSE_SMTP_PASSWORD: "longpasswordforaboveusername"
#DISCOURSE_SMTP_ENABLE_START_TLS: true # (optional, default true)
edited by asb
  • Hi bdschaap,
    I have literally the same issue. I’ve tried changing the port to 465, turning Start TLS to false and none of them work. Have you found a solution to using zoho for discourse?

    • Same problem here. Tried every combination there is.

      I suspect we need to add a new line with “login” or “password” as a parameter.

      • I never figured out how to use zoho itself, however I have been able to connect zoho to mailgun and use mailgun for the SMTP. To do so, I had to add a new domain in my networking (where mydomain is your primary domain) and added the records there.

        • In my case the key was to uncomment the line that refers to SiteSetting.notification_email and properly set it’s value to the email address I’m using to send emails.