# Switching Your Discourse from Mandrill to Mailgun

**URL:** https://meta.discourse.org/t/switching-your-discourse-from-mandrill-to-mailgun/41680
**Category:** Blog
**Created:** [March 28, 2016, 10:47pm UTC](https://meta.discourse.org/t/switching-your-discourse-from-mandrill-to-mailgun/41680 "2016-03-28T22:47:27Z")
**Posts on this page:** 10
**Page:** 1

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [March 28, 2016, 10:47pm UTC](https://meta.discourse.org/t/switching-your-discourse-from-mandrill-to-mailgun/41680/1 "2016-03-28T22:47:27Z")

</div>

Discourse requires email to function, so we’ve always had a symbiotic relationship with third party email providers. In the past we’ve recommended Mandrill, we use it ourselves for some of our sites, and we’ve had nothing but positive experiences with Mandrill … until now. Mandrill announced on February 24th that they are essentially closing the Mandrill service…

* * *

This topic is for comments on the original blog entry at: [Switching Your Discourse from Mandrill to Mailgun](http://blog.discourse.org/2016/03/switching-your-discourse-from-mandrill-to-mailgun/)

---

<div class="post-metadata">

### Author: ![appshah](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/appshah/32/61165_2.png) [@appshah](https://meta.discourse.org/u/appshah)
#### Post date: [April 1, 2016, 2:42pm UTC](https://meta.discourse.org/t/switching-your-discourse-from-mandrill-to-mailgun/41680/2 "2016-04-01T14:42:47Z")

</div>

Is there any way to provide Google Gmail (SMTP) or Google Apps (SMTP-relay) as one of standard option in Discourse admin panel - rather updating app.yml?

Between, is there any post on new version 1.5 release? I mean change log summary?

---

<div class="post-metadata">

### Author: ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)
#### Post date: [April 1, 2016, 2:56pm UTC](https://meta.discourse.org/t/switching-your-discourse-from-mandrill-to-mailgun/41680/3 "2016-04-01T14:56:14Z")

</div>

> [@appshah](#):
>
> Between, is there any post on new version 1.5 release? I mean change log summary?

Other than this?

> [@Discourse Version 1.5](https://meta.discourse.org/t/discourse-version-1-5/30609):
>
> Focuswhite_check_mark Rewrite composer toolbar in Ember white_check_mark Ability to overwrite any translation with arbitrary string white_check_mark Ability for groups to have a “group owner” than can add and remove people from the group white_check_mark Make group messaging a first class citizen in Discourse, allow PMs to groups, allow group mentions (under controlled circumstances) white_check_mark Make more system-sent email text customizable in admin, customize, te…

---

<div class="post-metadata">

### Author: ![appshah](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/appshah/32/61165_2.png) [@appshah](https://meta.discourse.org/u/appshah)
#### Post date: [April 1, 2016, 3:13pm UTC](https://meta.discourse.org/t/switching-your-discourse-from-mandrill-to-mailgun/41680/4 "2016-04-01T15:13:21Z")

</div>

wow. that’s big list 🙂 Thanks @Falco

---

<div class="post-metadata">

### Author: ![tobiaseigen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tobiaseigen/32/539204_2.png) [@tobiaseigen](https://meta.discourse.org/u/tobiaseigen)
#### Post date: [April 1, 2016, 3:40pm UTC](https://meta.discourse.org/t/switching-your-discourse-from-mandrill-to-mailgun/41680/5 "2016-04-01T15:40:17Z")

</div>

> [@appshah](#):
>
> Is there any way to provide Google Gmail (SMTP) or Google Apps (SMTP-relay) as one of standard option in Discourse admin panel - rather updating app.yml?

Setting up SMTP has to be done by updating app.yml, sorry.

Using google for SMTP has been discussed at length.. try the search. Here’s one.

[https://meta.discourse.org/t/troubleshooting-email-on-a-new-discourse-install/16326/128?u=tobiaseigen](https://meta.discourse.org/t/troubleshooting-email-on-a-new-discourse-install/16326/128)

I personally tried it and gave up on it in favor of mandrill, and now have switched to mailgun. It’s easy and “set and forget” once it’s working.

---

<div class="post-metadata">

### Author: ![cregox](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/cregox/32/115904_2.png) [@cregox](https://meta.discourse.org/u/cregox)
#### Post date: [April 18, 2016, 8:36pm UTC](https://meta.discourse.org/t/switching-your-discourse-from-mandrill-to-mailgun/41680/6 "2016-04-18T20:36:59Z")

</div>

Is a [mail-tester score](http://www.mail-tester.com/web-VzSNn3) of 7.5 out of 10 expected? To me it looks like everything is fine, except maybe there’s a broken link there ( “[Test your DKIM record](http://dkimcore.org/tools/dkimrecordcheck.html)” ) you guys could fix.

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [April 18, 2016, 8:50pm UTC](https://meta.discourse.org/t/switching-your-discourse-from-mandrill-to-mailgun/41680/7 "2016-04-18T20:50:14Z")

</div>

Thanks, I just fixed that link. I wish [sendgrid.com](http://sendgrid.com) would request removal from that greylist they are on – I can’t really do that for them.

---

<div class="post-metadata">

### Author: ![alehandrof](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/alehandrof/32/119526_2.png) [@alehandrof](https://meta.discourse.org/u/alehandrof)
#### Post date: [April 19, 2016, 7:38am UTC](https://meta.discourse.org/t/switching-your-discourse-from-mandrill-to-mailgun/41680/8 "2016-04-19T07:38:47Z")

</div>

I had deliverability issues with Mailgun that I fixed by adding MX records for our Mailgun subdomain:  
[https://documentation.mailgun.com/quickstart-receiving.html#add-receiving-mx-records](https://documentation.mailgun.com/quickstart-receiving.html#add-receiving-mx-records)

It’s a bit counterintuitive, because we’re not receiving emails through Mailgun. But here’s what Mailgun’s support told me:

> The error (which is called Sender Address Verification) that you are seeing is due to the recipient server performing a MX lookup on the envelope.mail-from address and failing to find the records for the domain listed. Some email servers check the domain in this envelope.mail-from field for MX records, and if the records do not exist, the email servers reject the message. Therefore, by adding Mailgun’s MX records to your domain, the MX lookups of those email servers should succeed, and the servers will accept your messages.

Hope this helps other frustrated folks!

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [June 2, 2016, 9:18am UTC](https://meta.discourse.org/t/switching-your-discourse-from-mandrill-to-mailgun/41680/9 "2016-06-02T09:18:36Z")

</div>

As helpfully noted here:

[https://meta.discourse.org/t/how-can-i-cancel-a-failed-email-job/44591/2?u=codinghorror](https://meta.discourse.org/t/how-can-i-cancel-a-failed-email-job/44591/2)

You may need to clear your giant mail queue backlog in Sidekiq before making this switch, if you had a failing email situation going on for some time.

---

<div class="post-metadata">

### Author: ![Steven](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/steven/32/187890_2.png) [@Steven](https://meta.discourse.org/u/Steven)
#### Post date: [December 26, 2016, 1:49am UTC](https://meta.discourse.org/t/switching-your-discourse-from-mandrill-to-mailgun/41680/10 "2016-12-26T01:49:56Z")

</div>

It looks like a credit card is required for an account in Mailgun to be able to send emails.

I’ve been working all night on a new forum to see why emails didn’t work. And I just noticed this change on their sign up form. It worked as usual 2 weeks ago I think, it must be pretty recent.

Old accounts are not affected at the moment tho
