# Filtering out delivery status failed

**URL:** https://meta.discourse.org/t/filtering-out-delivery-status-failed/41748
**Category:** Support
**Created:** [3월 30, 2016, 7:16오전 UTC](https://meta.discourse.org/t/filtering-out-delivery-status-failed/41748 "2016-03-30T07:16:37Z")
**Posts on this page:** 6
**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: [3월 30, 2016, 7:16오전 UTC](https://meta.discourse.org/t/filtering-out-delivery-status-failed/41748/1 "2016-03-30T07:16:37Z")

</div>

Would it be possible for the email in code to filter out delivery status failure mails? We sent out a mailing last night and have 200 failures as posts in discourse now:

 ![](https://global.discourse-cdn.com/meta/original/3X/b/c/bcf9587a0fc04f301949743243552a6da0c7adcb.png)

(Any suggestions on getting these out in the first place would also be appreciated,especially the 200 notification entries)

---

<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: [3월 30, 2016, 7:22오전 UTC](https://meta.discourse.org/t/filtering-out-delivery-status-failed/41748/2 "2016-03-30T07:22:49Z")

</div>

Yep, they should be filtered already because they have a header state of `Auto-Submitted`

> **[Detecting autoresponders](https://github.com/jpmckinney/multi_mail/wiki/Detecting-autoresponders)**
>
> Ruby gem to easily switch between email APIs. Contribute to jpmckinney/multi\_mail development by creating an account on GitHub.

---

<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: [3월 30, 2016, 7:30오전 UTC](https://meta.discourse.org/t/filtering-out-delivery-status-failed/41748/3 "2016-03-30T07:30:26Z")

</div>

Looks like there’s a _lot_ of broken systems out there then 🙂

I see mails with `X-Auto-Response-Suppress: All` (from exhange)

Some just have:

```plaintext
Content-Type: multipart/report; report-type=delivery-status;
	boundary="110e4b6c-159b-4262-b2ca-cbe359515e6a"

```

as content type (and no other identifying headers)

QMail just sends a reject mail from `From: MAILER-DAEMON@somedomain` or `From: mailer-daemon@somedomain`.

Another one: `X-QQ-HolidayReply: true`

(I setup a sieve filter to block mailer-daemon & postmaster locally which cuts down 99% of these btw)

---

<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: [3월 30, 2016, 4:41오후 UTC](https://meta.discourse.org/t/filtering-out-delivery-status-failed/41748/4 "2016-03-30T16:41:46Z")

</div>

Just improved our auto generated email detection 👍

[https://github.com/discourse/discourse/commit/6c82fbebf5fe2912d534d7eb73c35227443457de](https://github.com/discourse/discourse/commit/6c82fbebf5fe2912d534d7eb73c35227443457de)

---

<div class="post-metadata">

### Author: ![DeanMarkTaylor](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/deanmarktaylor/32/102462_2.png) [@DeanMarkTaylor](https://meta.discourse.org/u/DeanMarkTaylor)
#### Post date: [3월 30, 2016, 6:06오후 UTC](https://meta.discourse.org/t/filtering-out-delivery-status-failed/41748/5 "2016-03-30T18:06:31Z")

</div>

@zogstrip you might have completed a feature here:  
[https://meta.discourse.org/t/filtering-out-out-of-office-replies-in-the-reply-by-mail-feature/8615](https://meta.discourse.org/t/filtering-out-out-of-office-replies-in-the-reply-by-mail-feature/8615)

---

<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: [3월 31, 2016, 4:42오후 UTC](https://meta.discourse.org/t/filtering-out-delivery-status-failed/41748/6 "2016-03-31T16:42:10Z")

</div>

This topic was automatically closed after 24 hours. New replies are no longer allowed.
