From c963162792c2a6c2bea80f00f5e71db3038d0a23 Mon Sep 17 00:00:00 2001
From: Jared Hancock <jared@osticket.com>
Date: Fri, 9 Oct 2015 15:06:43 -0500
Subject: [PATCH] filter: Consider mails from postmaster@... to be bounces

---
 include/class.filter.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/class.filter.php b/include/class.filter.php
index 70a5f2718..7cfca2905 100644
--- a/include/class.filter.php
+++ b/include/class.filter.php
@@ -905,7 +905,7 @@ class TicketFilter {
 
         $bounce_headers = array(
             'From'  => array('stripos',
-                        array('MAILER-DAEMON', '<>'), null, false),
+                        array('MAILER-DAEMON', '<>', 'postmaster@'), null, false),
             'Subject'   => array('stripos',
                 array('DELIVERY FAILURE', 'DELIVERY STATUS',
                     'UNDELIVERABLE:', 'Undelivered Mail Returned'), 0),
-- 
GitLab