cfortune / PHP-Bounce-Handler

This class can be used to parse bounced message reports. It parses e-mail messages with multipart report content type formatted according to RFC 1892 and 1894 documents. If the bounce is not well formed, it also tries to extract some useful information. Exim is supported, partially. Please send bounce messages from your busted MTA, I'll extend the class to support them. It can extract the the address of the recipient that bounced as well the mail server response status code.
http://anti-spam-man.com/php_bouncehandler/
118 stars 72 forks source link

Bounce-Handler not working for me #19

Open dipskakadiya opened 9 years ago

dipskakadiya commented 9 years ago

Hello cfortune,

I am using your repo to filter bounce mail bun it doesn't work for me. Sample email is below

Delivered-To: support@rtcamp.com

Received: by 10.27.14.129 with SMTP id 1csp1169733wlo; Sun, 8 Feb 201500:46:13 -0800
(PST)

X-Received: by 10.140.92.161 with SMTP id b30mr26431246qge.59.1423385171989;Sun, 08 Feb
2015 00:46:11 -0800 (PST)

Return-Path: <>

Received: from mail-qa0-x248.google.com
(mail-qa0-x248.google.com.[2607:f8b0:400d:c00::248]) by mx.google.com with
ESMTPS idn94si9685903qgn.48.2015.02.08.00.46.11 for
<support@rtcamp.com>(version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256
bits=128/128); Sun, 08Feb 2015 00:46:11 -0800 (PST)

Received-SPF: none (google.com: mail-qa0-x248.google.com does not designatepermitted sender
hosts) client-ip=2607:f8b0:400d:c00::248;

Authentication-Results: mx.google.com; spf=none (google.com:mail-qa0-x248.google.com does not
designate permitted sender hosts)smtp.mail=; dkim=pass
header.i=@googlemail.com

Received: by mail-qa0-f72.google.com with SMTP id j7so59032827qaq.3
for<support@rtcamp.com>; Sun, 08 Feb 2015 00:46:11 -0800 (PST)

DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com;s=20120113;
h=mime-version:from:to:subject:message-id:date:content-type:content-transfer-encoding;
bh=o43EsPqHa1KK8tIxxcjBwa3oFvhDNXnoG9Ibl8wu5Lo=;b=m9Ol8HWy8xLWN7TvhlJqaC3UouzELkeKlYNPyanC++aYG5/O+VwNKpOqzcb6R7wNPTpROTh/6cWY4I5J2O26Cy3tMLc+U6EzlagMYKH+8/AqHEzu16avm6/BxIaLHQOIUKNZ28vCAzENjShr8dANswIuw9bBcQamtlKjlkOk1yMWFGdDhlfbtAyPKL+AHt9urgQ3lCFT1t4yag55jsQgaD3x1YH7DNnxgbCw75IZE1hHIi8cDdqw17exqnPAY37iOrx+MmguMCqiSznh09VUizT9v3R0AoBsx5aXt7ZmzhQSwBEEq3fOH+HUDFnGZ6lyT+z/6oOHCT95os85so
XNxA==

X-Received: by 10.236.23.229 with SMTP id v65mr3994160yhv.174.1423385171050;Sun, 08 Feb
2015 00:46:11 -0800 (PST)

MIME-Version: 1.0

Return-Path: <>

Received: by 10.236.23.229 with SMTP id v65mr3462457yhv.174; Sun, 08 Feb 201500:46:11
-0800 (PST)

From: Mail Delivery Subsystem <mailer-daemon@googlemail.com>

To: support@rtcamp.com

Subject: Delivery Status Notification (Delay)

Message-ID: <089e013c68407fbd9d050e8fafba@google.com>

Date: Sun, 08 Feb 2015 08:46:11 +0000

Content-Type: text/plain;
charset="UTF-8"

Content-Transfer-Encoding: quoted-printable

Body: This is an automatically generated Delivery Status Notification

THIS IS A WARNING MESSAGE ONLY.

YOU DO NOT NEED TO RESEND YOUR MESSAGE.

Delivery to the following recipient has been delayed:

postmaster@mail.kochar.com

Message will be retried for 1 more day(s)

Technical details of temporary failure:=20
The recipient server did not accept our requests to connect. Learn more at =
http://support.google.com/mail/bin/answer.py?answer=3D7720=20
[(0) mail.kochar.com. [182.50.146.128]:25: socket error]

----- Original message -----

DKIM-Signature: v=3D1; a=3Drsa-sha256; c=3Drelaxed/relaxed;
d=3Drtcamp.com; s=3Dgoogle;
h=3Dmessage-id:date:from:subject:to:mime-version:content-type
:content-transfer-encoding:sender;
bh=3D/0M3tqpeBCRwnJNk0tnFEMZVdwVTABrINVKi8tnYCB4=3D;
b=3DW1Fnme6JrJC8t12RSroptxgjQfnqYhFbN11myzpjFG2rIHA9VE0FK9V4Uls5O4F=
rKH
zRYEfAECd787qcxEN1n0M1MCUGB2hqg8cltYEWDvr6csEGTzd7XHFyZW/0Xxvc7eqL=
tc
ws++f4wOdNVf+Vss2uzwk1zBZkD4PjtaDqZ7o=3D
X-Google-DKIM-Signature: v=3D1; a=3Drsa-sha256; c=3Drelaxed/relaxed;
d=3D1e100.net; s=3D20130820;
h=3Dx-gm-message-state:message-id:date:from:subject:to:mime-version
:content-type:content-transfer-encoding:sender;
bh=3D/0M3tqpeBCRwnJNk0tnFEMZVdwVTABrINVKi8tnYCB4=3D;
b=3DGDGFQ1Zkk3XPN8m0Unr2F3034v1/QEqBbYUf68Tg9fT0q75pqD/mWn4BZSB59Zq=
70E
bh7EGzImF/48fu3zMkGUxyFxumW5qob1rKcAdKDKFJ/XJOgKV0yaiytspwhHeyZrR1=
ZD
/cj8mjNia4xpwBOCyNg6Wv0xhmuPng9foN0/rFR7wQWxxR13fh87IFq2w78fWUltJ5=
Ll
nzUogOlkIwBJl0jHnnZjnXZL6sPQW2csRUVgzMnpCLVKgHHctoZB/dyRs9TIGYFLek=
0H
ol0LW+FErig+LR19Bl4GueKG00/zwOgnsYi22eNsu32d5LlXr50TfOHmWo/KGoIBNW=
8/
Xh/A=3D=3D
X-Gm-Message-State: ALoCoQmvG5GmMaiPW9pjgBco9/YCpca5mIpGzMNGsDoJktJiqDogZiW=
4s5IPsAB9EuBN2+mWTz21
X-Received: by 10.236.23.229 with SMTP id v65mr563084yhv.174.1423210102366;
Fri, 06 Feb 2015 00:08:22 -0800 (PST)
Return-Path:
Received: from smtp.gmail.com (li.rtcamp.com. [23.92.30.145])
by mx.google.com with ESMTPSA id o47sm1111741yhd.48.2015.02.06.00.0=
8.21
(version=3DTLSv1 cipher=3DECDHE-RSA-RC4-SHA bits=3D128/128);
Fri, 06 Feb 2015 00:08:21 -0800 (PST)
Message-ID:
Date: Fri, 06 Feb 2015 08:08:20 +0000
From: rtCamp
X-Helpdesk: notification
Subject: [Helpdesk #80061] =E2=80=9C0=E2=80=9D COST CAMPUS RECRUITMENT DRIV=
E for B.Tech/MCA 2015
passing out students
To: postmaster@mail.kochar.com,
cpb.feedback@tatachemicals.com,
fert.feedback@tatachemicals.com,
busdev@ajantapharma.com,
corporate_communications@tatachemicals.com,
innovations@tatachemicals.com,
tataswach@tatachemicals.com,
chemconnect@tatachemicals.com,
info@netsolutionsindia.com,
estore@shoppersstop.com,
gv@shoppersstop.com,
sales@wildnettechnologies.com,
jobs@wildnettechnologies.com,
info@krawler.com,
crm@krawler.com,
sgi@in.sopra.com,
info@kochartech.com,
reservations@tajhotels.com,
hiring@langoor.com,
custmail@ford.com,
info@300plusconsultant.com,
careers@asianpaints.com,
proffice@asianpaints.com,
info@terii.in,
ed@antrix.gov.in,
investor.relations@asianpaints.com,
customercare@asianpaints.com,
sales@nrsc.gov.in
MIME-Version: 1.0
Content-Type: text/html
Content-Transfer-Encoding: quoted-printable
Sender:=20

----- End of message -----
dipskakadiya commented 9 years ago

Hey any update on it? please let me know if possible. any help from you it well be valueble for me.