# Best approach to "whitelist" Precedence: bulk mails

**URL:** https://meta.discourse.org/t/best-approach-to-whitelist-precedence-bulk-mails/42804
**Category:** Feature
**Created:** [April 19, 2016, 7:54am UTC](https://meta.discourse.org/t/best-approach-to-whitelist-precedence-bulk-mails/42804 "2016-04-19T07:54:43Z")
**Posts on this page:** 12
**Page:** 1

<div class="post-metadata">

### Author: ![carlokok](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/carlokok/32/115951_2.png) [@carlokok](https://meta.discourse.org/u/carlokok)
#### Post date: [April 19, 2016, 7:54am UTC](https://meta.discourse.org/t/best-approach-to-whitelist-precedence-bulk-mails/42804/1 "2016-04-19T07:54:43Z")

</div>

Normally I’m fine with the filters discourse has setup to avoid posting data for maillings, however how would I best approach allow discourse to create a post anyway with a “Precedence: bulk” header set for a specific domain?

The reason I’m asking, one of our resellers is sending all mails with mandril and has a Precedence: bulk header set which doesn’t get posted as a discourse app. We obviously do want to deal with these mails, anyone have an idea on what best to do here?

---

<div class="post-metadata">

### Author: ![zogstrip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zogstrip/32/512781_2.png) [@zogstrip](https://meta.discourse.org/u/zogstrip)
#### Post date: [April 19, 2016, 8:29am UTC](https://meta.discourse.org/t/best-approach-to-whitelist-precedence-bulk-mails/42804/2 "2016-04-19T08:29:28Z")

</div>

I will be adding a new setting today to deal with that specific issue. Instead of rejecting “auto generated” emails, they will be marked as such but will be processed like any other emails.

---

<div class="post-metadata">

### Author: ![downey](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/downey/32/166878_2.png) [@downey](https://meta.discourse.org/u/downey)
#### Post date: [April 19, 2016, 12:10pm UTC](https://meta.discourse.org/t/best-approach-to-whitelist-precedence-bulk-mails/42804/3 "2016-04-19T12:10:30Z")

</div>

Cool! But hopefully this doesn’t mean the return of “out of office” replies. 😉

---

<div class="post-metadata">

### Author: ![zogstrip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zogstrip/32/512781_2.png) [@zogstrip](https://meta.discourse.org/u/zogstrip)
#### Post date: [April 19, 2016, 12:58pm UTC](https://meta.discourse.org/t/best-approach-to-whitelist-precedence-bulk-mails/42804/4 "2016-04-19T12:58:45Z")

</div>

It’ll be a site setting. But we’re experiencing about 50% false positives and want to feel the pain in order to understand it more.

---

<div class="post-metadata">

### Author: ![Jared\_Needell](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jared_needell/32/116554_2.png) [@Jared\_Needell](https://meta.discourse.org/u/Jared_Needell)
#### Post date: [April 19, 2016, 2:19pm UTC](https://meta.discourse.org/t/best-approach-to-whitelist-precedence-bulk-mails/42804/5 "2016-04-19T14:19:19Z")

</div>

So to confirm this is related to Google Apps as well,

User sends an email to an email address and the mail gets flagged as “Email::Receiver::AutoGeneratedEmailError”

 ![](https://global.discourse-cdn.com/meta/original/3X/6/0/60468bc3ff605f003702f7ecce2bec73ebf751e3.png)

---

<div class="post-metadata">

### Author: ![Jared\_Needell](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jared_needell/32/116554_2.png) [@Jared\_Needell](https://meta.discourse.org/u/Jared_Needell)
#### Post date: [April 19, 2016, 2:25pm UTC](https://meta.discourse.org/t/best-approach-to-whitelist-precedence-bulk-mails/42804/6 "2016-04-19T14:25:42Z")

</div>

Also is there a feature not send reject emails for the auto-generated stuff? I think it causes confusion when an out of office email gets caught.

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [April 20, 2016, 12:29am UTC](https://meta.discourse.org/t/best-approach-to-whitelist-precedence-bulk-mails/42804/7 "2016-04-20T00:29:06Z")

</div>

You should configure bounce email, cause that should eliminate the majority

---

<div class="post-metadata">

### Author: ![downey](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/downey/32/166878_2.png) [@downey](https://meta.discourse.org/u/downey)
#### Post date: [April 20, 2016, 2:13am UTC](https://meta.discourse.org/t/best-approach-to-whitelist-precedence-bulk-mails/42804/8 "2016-04-20T02:13:04Z")

</div>

> [@sam](#):
>
> You should configure bounce email, cause that should eliminate the majority

Not entirely sure I follow what you’re suggesting…

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [April 20, 2016, 3:44am UTC](https://meta.discourse.org/t/best-approach-to-whitelist-precedence-bulk-mails/42804/9 "2016-04-20T03:44:12Z")

</div>

See

[https://meta.discourse.org/t/how-discourse-manages-bounces-and-unsubscribe-while-sending-email-notifications/22039/8?u=sam](https://meta.discourse.org/t/how-discourse-manages-bounces-and-unsubscribe-while-sending-email-notifications/22039/8)

Most software sends out of office replies to the return path, some does not

---

<div class="post-metadata">

### Author: ![zogstrip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zogstrip/32/512781_2.png) [@zogstrip](https://meta.discourse.org/u/zogstrip)
#### Post date: [April 20, 2016, 7:33pm UTC](https://meta.discourse.org/t/best-approach-to-whitelist-precedence-bulk-mails/42804/10 "2016-04-20T19:33:58Z")

</div>

Here’s the new `block_auto_generated_emails` site setting (defaults to `true`) 📧

[https://github.com/discourse/discourse/commit/4960b621101845017f7bd4146f7f8d155a8b41e4](https://github.com/discourse/discourse/commit/4960b621101845017f7bd4146f7f8d155a8b41e4)

---

<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: [January 9, 2019, 10:52am UTC](https://meta.discourse.org/t/best-approach-to-whitelist-precedence-bulk-mails/42804/11 "2019-01-09T10:52:38Z")

</div>



---

<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: [January 9, 2019, 11:52am UTC](https://meta.discourse.org/t/best-approach-to-whitelist-precedence-bulk-mails/42804/12 "2019-01-09T11:52:36Z")

</div>


