Visit Forum here: https://ask.crunchify.com
When I posted a detailed article on Crunchify on how to setup GMail SMTP-relay service for Discourse sometime back,
@Discourse immediately found out and suggested
NOT to use Gmail as an email service provider. Take a look at below tweets.
@Crunchify this looks good but don't use Gmail for outgoing forum emails, it violates their terms of service in a big way!
— Discourse (@discourse) April 12, 2016
@discourse Great. I've just setup Mailgun as my email server successful 🙂 Thanks for quick heads up.
— Crunchify (@Crunchify) April 28, 2016
As per suggestion, I’ve choose
Mailgun as my email server. In this tutorial we will go over details on how to setup
Mailgun with Discourse correct way and make sure your email service is running fine.
Mailgun is a service backed by
Rackspace's solid foundation. It allows your to send
10,000 emails/month, i.e. ~333 emails/day. I would say, that’s enough at-least for me on
- How to Switch Discourse from Mandrill to Mailgun?
- What are the recommended Email Service Providers for Discourse?
- How to Send an Email from a Discourse Instance?
Let’s get started:
Signup for Mailgun email service.
signup, on next screen you need to add your
forum domain name.
- Next you need to Add
DNS RecordsFor Sending.
TXT records(known as SPF & DKIM) are
required to send email through Mailgun.
- Go to your primary domain’s
- Click on
Advanced Zone Editor.
- Add below 2
- Click on
Check DNS Records Nowbutton as per below screenshot
- You should see
Green Checkboxafter successful verification
Next you should receive an email from Mailgun with subject:
Good news - ask.crunchify.com is now verified.
DigitalOceannode using SSH to modify discourse config file.
- Once logged in you need to modify discourse
Here are commands:
$ cd /var/discourse
$ vi containers/app.yml
Just update below 3 properties into your app.yml file:
# Below two properties are not required. You could also remove below 2 lines
You should be able to get your
password by following below steps:
- Click on your
Domain Nameto see default SMTP login and password
Restart your Discourse App using below commands.
$ git pull
$ ./launcher rebuild app
It may take upto
~5 minutes based on how powerful your server is.
Once your forum is up and running to to
Setting and modify
notification email which should match with your Mailgun domain name.
- Go to
- Click on Settings
- Provide your email address
- And verify your email setting
And you are
all set. Let me know if you face any issue while following above steps.
Join the Discussion
Share & leave us some comments on what you think about this topic or if you like to add something.