Switching Your Discourse from Mandrill to Mailgun


(Jeff Atwood) #1

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


Email setup with your existing email server
(App) #2

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?


(Rafael dos Santos Silva) #3

Other than this?


(App) #4

wow. that’s big list :slight_smile: Thanks @Falco


(Tobias Eigen) #5

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.

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.


(Caue Rego) #6

Is a mail-tester score 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” ) you guys could fix.


(Jeff Atwood) #7

Thanks, I just fixed that link. I wish sendgrid.com would request removal from that greylist they are on – I can’t really do that for them.


(Alex Armstrong) #8

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

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!


(Jeff Atwood) #9

As helpfully noted here:

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.


#10

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