# Does Discourse use Mailgun's validations feature?

**URL:** https://meta.discourse.org/t/does-discourse-use-mailguns-validations-feature/106580
**Category:** Self-hosting
**Created:** [15 januari 2019 om 11:29 UTC](https://meta.discourse.org/t/does-discourse-use-mailguns-validations-feature/106580 "2019-01-15T11:29:20Z")
**Posts on this page:** 12
**Page:** 1

<div class="post-metadata">

### Author: ![Dannii](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/dannii/32/129087_2.png) [@Dannii](https://meta.discourse.org/u/Dannii)
#### Post date: [15 januari 2019 om 11:29 UTC](https://meta.discourse.org/t/does-discourse-use-mailguns-validations-feature/106580/1 "2019-01-15T11:29:21Z")

</div>

I’ve been looking at [the recommended email providers page](https://github.com/discourse/discourse/blob/master/docs/INSTALL-email.md) and comparing the recommended options. If we chose Mailgun, would Discourse use its validations feature, or does it handle all validations itself? I’m not sure if I should be considering that in our price comparison.

---

<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: [15 januari 2019 om 12:35 UTC](https://meta.discourse.org/t/does-discourse-use-mailguns-validations-feature/106580/2 "2019-01-15T12:35:37Z")

</div>

What are validations?

---

<div class="post-metadata">

### Author: ![Stephen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/stephen/32/95011_2.png) [@Stephen](https://meta.discourse.org/u/Stephen)
#### Post date: [15 januari 2019 om 16:08 UTC](https://meta.discourse.org/t/does-discourse-use-mailguns-validations-feature/106580/3 "2019-01-15T16:08:51Z")

</div>

AFAIK it’s a feature for bulk mailing to check that mailboxes exist. The free tier lets you validate 100 addresses per month.

As Discourse already verifies that emails exist I’m not sure how useful it would be.

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [15 januari 2019 om 17:29 UTC](https://meta.discourse.org/t/does-discourse-use-mailguns-validations-feature/106580/4 "2019-01-15T17:29:26Z")

</div>

I believe that the validations thing allows you to validate email addresses (e.g., to check that a list of addresses you have is valid) before you send mail to them. Discourse doesn’t need to do that, so it’s moot.

The mailgun thing that’s worth knowing about is using the API to get bounce notification, as described [here](https://meta.discourse.org/t/handling-bouncing-e-mails/45343).

---

<div class="post-metadata">

### Author: ![tophee](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tophee/32/73406_2.png) [@tophee](https://meta.discourse.org/u/tophee)
#### Post date: [15 januari 2019 om 19:26 UTC](https://meta.discourse.org/t/does-discourse-use-mailguns-validations-feature/106580/5 "2019-01-15T19:26:45Z")

</div>

> [@pfaffman](#):
>
> API to get bounce notification, as described [here](https://meta.discourse.org/t/handling-bouncing-e-mails/45343)

Yes, I think it would be good to mention that in the Email section of the discourse setup instructions. Not necessarily the Mailgun specific settings but generally to point out that additional action is needed (regardless of provider) for discourse to get bounce information.

---

<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: [15 januari 2019 om 20:29 UTC](https://meta.discourse.org/t/does-discourse-use-mailguns-validations-feature/106580/6 "2019-01-15T20:29:55Z")

</div>

Sure that is a good idea @tshenry maybe you can update that topic?

---

<div class="post-metadata">

### Author: ![tophee](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tophee/32/73406_2.png) [@tophee](https://meta.discourse.org/u/tophee)
#### Post date: [15 januari 2019 om 21:19 UTC](https://meta.discourse.org/t/does-discourse-use-mailguns-validations-feature/106580/7 "2019-01-15T21:19:48Z")

</div>

> [@codinghorror](#):
>
> that topic?

I was thinking about the 30 minute instructions on Github, but if there is a topic here too, it’s probably goid to update that too…

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [15 januari 2019 om 23:39 UTC](https://meta.discourse.org/t/does-discourse-use-mailguns-validations-feature/106580/10 "2019-01-15T23:39:08Z")

</div>

> [@tophee](#):
>
> Yes, I think it would be good to mention that in the Email section of the discourse setup instructions.

Good idea. And now that you mention it, I’ll automatically enable it on installs that I do that include Mailgun. I’m not sure why I didn’t do that sooner.

---

<div class="post-metadata">

### Author: ![tophee](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tophee/32/73406_2.png) [@tophee](https://meta.discourse.org/u/tophee)
#### Post date: [16 januari 2019 om 05:39 UTC](https://meta.discourse.org/t/does-discourse-use-mailguns-validations-feature/106580/11 "2019-01-16T05:39:19Z")

</div>

> [@pfaffman](#):
>
> . I’m not sure why I didn’t do that sooner.

Because it wasn’t in the instructions? 😜

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [16 januari 2019 om 07:30 UTC](https://meta.discourse.org/t/does-discourse-use-mailguns-validations-feature/106580/12 "2019-01-16T07:30:43Z")

</div>

Good one! But since I’d already written code to call mailgun’s api to create the webhook and to set the discourse setting to enable it, I don’t think that’s the reason. 😉

---

<div class="post-metadata">

### Author: ![Dannii](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/dannii/32/129087_2.png) [@Dannii](https://meta.discourse.org/u/Dannii)
#### Post date: [16 januari 2019 om 12:40 UTC](https://meta.discourse.org/t/does-discourse-use-mailguns-validations-feature/106580/13 "2019-01-16T12:40:48Z")

</div>

Thanks for the responses everyone. Also, I guess I’m glad this post has prompted some extra thinking on some of the docs? 🙂

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [2 juni 2019 om 23:45 UTC](https://meta.discourse.org/t/does-discourse-use-mailguns-validations-feature/106580/14 "2019-06-02T23:45:58Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
