Discourse Mailgun Routes

Summary: Accept inbound emails from Mailgun.

:link: GitHub: GitHub - Wolftallemo/discourse-mailgun-routes
:arrow_right: Install: Follow the plugin installation guide.

Prerequisites

  • Domain is verified with Mailgun and MX records pointed to Mailgun
  • Reply by email is configured

Configuration

  1. Obtain and set your Mailgun webhook signing key - while only steps 1 and 2 are required, now would be a great time to set up your temporary/permanent failure webhooks if you have not already done so.

  2. Head to the Mailgun receiving page and click on “Create route”.

  3. The expression type (unless you only want to receive on specific addresses) should be catch all. Check the box under “Forward” and set the URL to https://your.discourse/mailgun/routes/receive_mime

  4. Click the “Save route” button.

2 Likes

I use Mailgun to send emails but the mail-receiver container (Direct-delivery incoming email for self-hosted sites) to recieve them. Would this plugin benefit me? Thanks.

1 Like

Unless you are utilizing a ddos protection service such as cloudflare (or your provider blocks inbound connections on port 25) it doesn’t really have any benefit over the mail-receiver setup.

Also, Mailgun stopped including routes in their pay-as-you-go plan, so if you don’t have a prepaid subscription or an older account you should just use the mail-receiver setup.

1 Like