/discourse-mailgun

A plugin for Discourse to accept inbound email from a Mailgun webhook

Primary LanguageRubyApache License 2.0Apache-2.0

Mailgun plugin for Discourse

Provides a simple endpoint for Mailgun to deliver inbound emails to Discourse

Getting Started

You should install the plugin via the current Discourse plugin instructions - https://meta.discourse.org/t/install-a-plugin/19157

Prerequisites

You will require a Mailgun account, enabled domain and incoming mail enabled. Follow the instructions in the Mailgun docs Create a rule to forward email to this plugin

match_recipient(“reply-.*@mydiscourse.domain”)
forward(“https://mydiscourse.domain/mailgun/incoming”)

Installing

Installing this plugin should be as simple as following the Discourse Plugin installation tutorial

Running the tests

In order to run tests you'll need a Discourse development environment such as the vagrant one.

You can then run the tests with rake plugin:spec[discourse-mailgun]

Deployment

Once the plugin is installed, you'll need to configure a few things:

  • Mailgun API key - which you can retrieve in your mailgun settings

You can do this in the plugin settings page.

You'll also need to enable "manual polling enabled" in your discourse email settings admin panel.

Once that is done, you need to configure Mailgun your mailgun routes to forward messages to http://your-discourse-url/mailgun/incoming

Built With

Contributing

Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.

Versioning

We use SemVer for versioning. For the versions available, see the tags on this repository.

Authors

See also the list of contributors who participated in this project.

License

This project is licensed under the Apache 2.0 - see the LICENSE.md file for details