From f0562e55bb47dd29a832bb8d6b6fed8d0555138c Mon Sep 17 00:00:00 2001 From: Mark Sapiro Date: Sun, 15 Jun 2008 12:39:31 -0700 Subject: Made several improvements to bounce recognition. --- tests/bounces/dsn_15.txt | 0 tests/bounces/dsn_16.txt | 213 ++++++++++++++++++++++++++++++++++++++++++++ tests/bounces/dsn_17.txt | 101 +++++++++++++++++++++ tests/bounces/qmail_04.txt | 0 tests/bounces/qmail_05.txt | 0 tests/bounces/simple_17.txt | 0 tests/bounces/simple_18.txt | 0 tests/bounces/simple_19.txt | 0 tests/bounces/simple_20.txt | 0 tests/bounces/simple_21.txt | 0 tests/bounces/simple_22.txt | 0 tests/bounces/simple_23.txt | 0 tests/bounces/simple_24.txt | 0 tests/bounces/simple_25.txt | 0 tests/bounces/simple_26.txt | 0 tests/bounces/simple_27.txt | 0 tests/bounces/simple_29.txt | 55 ++++++++++++ tests/bounces/smtp32_07.txt | 0 tests/test_bounces.py | 3 + 19 files changed, 372 insertions(+) mode change 100755 => 100644 tests/bounces/dsn_15.txt create mode 100644 tests/bounces/dsn_16.txt create mode 100644 tests/bounces/dsn_17.txt mode change 100755 => 100644 tests/bounces/qmail_04.txt mode change 100755 => 100644 tests/bounces/qmail_05.txt mode change 100755 => 100644 tests/bounces/simple_17.txt mode change 100755 => 100644 tests/bounces/simple_18.txt mode change 100755 => 100644 tests/bounces/simple_19.txt mode change 100755 => 100644 tests/bounces/simple_20.txt mode change 100755 => 100644 tests/bounces/simple_21.txt mode change 100755 => 100644 tests/bounces/simple_22.txt mode change 100755 => 100644 tests/bounces/simple_23.txt mode change 100755 => 100644 tests/bounces/simple_24.txt mode change 100755 => 100644 tests/bounces/simple_25.txt mode change 100755 => 100644 tests/bounces/simple_26.txt mode change 100755 => 100644 tests/bounces/simple_27.txt create mode 100644 tests/bounces/simple_29.txt mode change 100755 => 100644 tests/bounces/smtp32_07.txt (limited to 'tests') diff --git a/tests/bounces/dsn_15.txt b/tests/bounces/dsn_15.txt old mode 100755 new mode 100644 diff --git a/tests/bounces/dsn_16.txt b/tests/bounces/dsn_16.txt new file mode 100644 index 00000000..b1f9b9ec --- /dev/null +++ b/tests/bounces/dsn_16.txt @@ -0,0 +1,213 @@ +Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) + by strategicnetwork.org (Postfix) with ESMTP id E71AC73423D + for ; Sat, 17 May 2008 11:15:50 -0600 (MDT) +From: "Mail Delivery System" +To: +Subject: Undelivered Mail Returned to Sender +Date: Sun, 18 May 2008 01:15:51 +0800 +Message-ID: <20080517171551.6EBAB734E3A@strategicnetwork.org> +MIME-Version: 1.0 +Content-Type: multipart/mixed; + boundary="----=_NextPart_000_0092_01C8B8BF.529D6450" +X-Mailer: Microsoft Office Outlook 12.0 +Thread-Index: Aci4Qafw1YeAmx2mRI2jVZKbY8YZ5A== + +This is a multipart message in MIME format. + +------=_NextPart_000_0092_01C8B8BF.529D6450 +Content-Type: text/plain; + boundary="E71AC73423D.1211044551/strategicnetwork.org"; + charset="iso-8859-1"; + report-type=delivery-status +Content-Transfer-Encoding: 7bit + +This is the Postfix program at host strategicnetwork.org. + +I'm sorry to have to inform you that your message could not +be delivered to one or more recipients. It's attached below. + +For further assistance, please send mail to + +If you do so, please include this problem report. You can +delete your own text from the attached returned message. + + The Postfix program + +: host mx.pastors.com[70.183.18.160] said: 550 + unknown user (in reply to RCPT TO command) + +------=_NextPart_000_0092_01C8B8BF.529D6450 +Content-Type: message/delivery-status; + name="details.txt" +Content-Transfer-Encoding: 7bit +Content-Disposition: attachment; + filename="details.txt" + +Reporting-MTA: dns; strategicnetwork.org +X-Postfix-Queue-ID: E71AC73423D +X-Postfix-Sender: rfc822; mailman-bounces@strategicnetwork.org +Arrival-Date: Sat, 17 May 2008 11:15:50 -0600 (MDT) + +Final-Recipient: rfc822; hishealinghand@pastors.com +Action: failed +Status: 5.0.0 +Diagnostic-Code: X-Postfix; host mx.pastors.com[70.183.18.160] said: 550 + unknown user (in reply to RCPT TO command) + +------=_NextPart_000_0092_01C8B8BF.529D6450 +Content-Type: message/rfc822 +Content-Transfer-Encoding: 7bit +Content-Disposition: attachment + +Received: from nt-server.mmv.int (unknown [81.17.109.140]) + by ipx14075.ipxserver.de (Postfix) with ESMTP id 24DA5E28456 + for ; + Sat, 17 May 2008 19:15:46 +0200 (CEST) +From: +To: +Subject: Uncaught bounce notification +Date: Sun, 18 May 2008 01:15:50 +0800 +Message-ID: +MIME-Version: 1.0 +Content-Type: multipart/mixed; + boundary="----=_NextPart_000_008E_01C8B8BF.529D6450" +X-Mailer: Microsoft Office Outlook 12.0 +Thread-Index: Aci4QadXUNJ/Y2gvR9+59kbk4uSejw== + +This is a multipart message in MIME format. + +------=_NextPart_000_008E_01C8B8BF.529D6450 +Content-Type: text/plain; + boundary="===============0013193983=="; + charset="us-ascii" +Content-Transfer-Encoding: 7bit + +The attached message was received as a bounce, but either the bounce +format was not recognized, or no member addresses could be extracted +from it. This mailing list has been configured to send all +unrecognized bounce messages to the list administrator(s). + +For more information see: +http://strategicnetwork.org/mailman/admin/prayer-needs/bounce + + +------=_NextPart_000_008E_01C8B8BF.529D6450 +Content-Type: message/rfc822 +Content-Transfer-Encoding: 7bit +Content-Disposition: attachment + +Received: from strategicnetwork.org ([66.35.39.241]) by nt-server.mmv.int with + Microsoft SMTPSVC(6.0.3790.3959); Sat, 17 May 2008 07:14:58 +0200 +Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by + strategicnetwork.org (Postfix) with ESMTP id 6B793734E95 for + ; + Fri, 16 May 2008 23:09:37 -0600 (MDT) +From: +To: +Subject: =?utf-7?Q?Benachrichtigung__zum__ +ANw-bermitt?= + =?utf-7?Q?lungsstatus__=28Verz+APY-gerung=29?= +Date: Sun, 18 May 2008 01:21:01 +0800 +Message-ID: +MIME-Version: 1.0 +Content-Type: multipart/mixed; + boundary="----=_NextPart_000_008A_01C8B8BF.5298A960" +X-Mailer: Microsoft Office Outlook 12.0 +Thread-Index: Aci4QaYm8cki4UrMStOQ1CvDilgOdw== + +This is a multipart message in MIME format. + +------=_NextPart_000_008A_01C8B8BF.5298A960 +Content-Type: text/plain; + boundary="9B095B5ADSN=_01C8B2602C2F6AEE0007F371nt?server.mmv.in"; + charset="utf-7"; + report-type=delivery-status +Content-Transfer-Encoding: quoted-printable + +Dies ist eine automatisch erstellte Benachrichtigung +APw-ber den = +Zustellstatus. + +DIES IST NUR EINE WARNUNG. + +SIE M+ANw-SSEN DIE NACHRICHT NICHT ERNEUT SENDEN. + ++ANw-bermittlung an folgende Empf+AOQ-nger wurde verz+APY-gert. + + spam+AEA-michael-mueller-verlag.de + + + + +------=_NextPart_000_008A_01C8B8BF.5298A960 +Content-Type: message/delivery-status; + name="details.txt" +Content-Transfer-Encoding: 7bit +Content-Disposition: attachment; + filename="details.txt" + +Reporting-MTA: dns;nt-server.mmv.int +Received-From-MTA: dns;strategicnetwork.org +Arrival-Date: Sat, 17 May 2008 07:14:58 +0200 + +Final-Recipient: rfc822;spam@michael-mueller-verlag.de +Action: delayed +Status: 4.4.7 +Will-Retry-Until: Mon, 19 May 2008 07:15:00 +0200 +X-Display-Name: Spam + +------=_NextPart_000_008A_01C8B8BF.5298A960 +Content-Type: message/rfc822 +Content-Transfer-Encoding: 7bit +Content-Disposition: attachment + +Return-Path: +Reply-To: +From: +Sender: +To: +Subject: confirm 3804b2ed9538e463f662ee4b2c3676ffec2658be +Date: Sat, 17 May 2008 13:09:36 +0800 +Message-ID: +MIME-Version: 1.0 +Content-Type: text/plain; + charset="us-ascii" +Content-Transfer-Encoding: 7bit +X-Mailer: Microsoft Office Outlook 12.0 +Thread-Index: Aci33PPN66MaDZVxS0+jRAs9I4FtWw== +Content-Class: urn:content-classes:message + +Mailing list subscription confirmation notice for mailing list +Prayer-needs + +We have received a request from +onlore.marr-bieger@michael-mueller-verlag.de for subscription of your +email address, "oNlore.marr-bieger@michael-mueller-verlag.de", to the +prayer-needs@strategicnetwork.org mailing list. To confirm that you +want to be added to this mailing list, simply reply to this message, +keeping the Subject: header intact. Or visit this web page: + + +http://strategicnetwork.org/mailman/confirm/prayer-needs/3804b2ed9538e463f66 +2ee4b2c3676ffec2658be + + +Or include the following line -- and only the following line -- in a +message to prayer-needs-request@strategicnetwork.org: + + confirm 3804b2ed9538e463f662ee4b2c3676ffec2658be + +Note that simply sending a `reply' to this message should work from +most mail readers, since that usually leaves the Subject: line in the +right form (additional "Re:" text in the Subject: is okay). + +If you do not wish to be subscribed to this list, please simply +disregard this message. If you think you are being maliciously +subscribed to the list, or have any other questions, send them to +prayer-needs-owner@strategicnetwork.org. + + +------=_NextPart_000_008A_01C8B8BF.5298A960-- + +------=_NextPart_000_008E_01C8B8BF.529D6450-- + +------=_NextPart_000_0092_01C8B8BF.529D6450-- + diff --git a/tests/bounces/dsn_17.txt b/tests/bounces/dsn_17.txt new file mode 100644 index 00000000..2fc60838 --- /dev/null +++ b/tests/bounces/dsn_17.txt @@ -0,0 +1,101 @@ +From: "Mail Delivery System" +To: +Subject: Delayed Mail (still being retried) +Date: Sun, 4 May 2008 13:30:10 +0800 +Message-ID: <20080504053010.83D5413301A@be37.mail.saunalahti.fi> +MIME-Version: 1.0 +Content-Type: multipart/mixed; + boundary="----=_NextPart_000_00B7_01C8B0E9.3E667630" +X-Mailer: Microsoft Office Outlook 12.0 +Thread-Index: Acitp+yPLzjU0sphReGZRtBo3Ns6bg== + +This is a multipart message in MIME format. + +------=_NextPart_000_00B7_01C8B0E9.3E667630 +Content-Type: text/plain; + report-type=delivery-status; + boundary="ED106133145.1209879010/be37.mail.saunalahti.fi"; + charset="US-ASCII" +Content-Transfer-Encoding: 7bit + +This is the mail system at host be37.mail.saunalahti.fi. + +#################################################################### +# THIS IS A WARNING ONLY. YOU DO NOT NEED TO RESEND YOUR MESSAGE. # +#################################################################### + +Your message could not be delivered for more than 15 minutes. +It will be retried until it is 24 hours old. + +For further assistance, please contact your postmaster. + +If you do so, please include this problem report. You can +delete your own text from the attached returned message. + + The mail system + + (expanded from + ): temporary failure. Command output: +Quota + exceeded message delivery failed to /mail/mbx/p/5/kb3543/INBOX + +------=_NextPart_000_00B7_01C8B0E9.3E667630 +Content-Type: message/delivery-status; + name="details.txt" +Content-Transfer-Encoding: 7bit +Content-Disposition: attachment; + filename="details.txt" + +Reporting-MTA: dns; be37.mail.saunalahti.fi +X-Postfix-Queue-ID: ED106133145 +X-Postfix-Sender: rfc822; pray4-team-bounces@strategicnetwork.org +Arrival-Date: Sun, 4 May 2008 05:51:07 +0300 (EEST) + +Final-Recipient: rfc822; kb3543.50@be37.mail.saunalahti.fi +Original-Recipient: rfc822;christine.barsas@sivarikeskus.fi +Action: delayed +Status: 4.3.0 +Diagnostic-Code: x-unix; Quota exceeded message delivery failed to + /mail/mbx/p/5/kb3543/INBOX +Will-Retry-Until: Mon, 5 May 2008 05:51:07 +0300 (EEST) + +------=_NextPart_000_00B7_01C8B0E9.3E667630 +Content-Type: text/rfc822-headers; + name="Undelivered Message Headers.txt" +Content-Transfer-Encoding: quoted-printable +Content-Disposition: attachment; + filename="Undelivered Message Headers.txt" + +Received: from emh07.mail.saunalahti.fi (emh07.mail.saunalahti.fi = +[62.142.5.117]) + by be37.mail.saunalahti.fi (Postfix) with ESMTP id ED106133145 + for ; Sun, 4 May 2008 05:51:07 +0300 = +(EEST) +Received: from strategicnetwork.org (strategicnetwork.org = +[66.35.39.241]) + by emh07.mail.saunalahti.fi (Postfix) with ESMTP id D3C661C639E + for ; Sun, 4 May 2008 05:51:06 +0300 = +(EEST) +Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) + by strategicnetwork.org (Postfix) with ESMTP id 27DF4734B75 + for ; Sat, 3 May 2008 20:51:05 -0600 = +(MDT) +MIME-Version: 1.0 +Content-Type: text/plain; charset=3D"us-ascii" +Content-Transfer-Encoding: 7bit +From: pray4-team-request@strategicnetwork.org +To: christine.barsas@sivarikeskus.fi +Subject: confirm d35a398026f31a7462cc90622a1e6180cd63ba60 +Reply-To: pray4-team-request@strategicnetwork.org +Message-ID: = + +Date: Sat, 03 May 2008 20:51:04 -0600 +Precedence: bulk +X-BeenThere: pray4-team@strategicnetwork.org +X-Mailman-Version: 2.1.5 +List-Id: pray4-team.strategicnetwork.org +X-List-Administrivia: yes +Sender: pray4-team-bounces@strategicnetwork.org +Errors-To: pray4-team-bounces@strategicnetwork.org + +------=_NextPart_000_00B7_01C8B0E9.3E667630-- diff --git a/tests/bounces/qmail_04.txt b/tests/bounces/qmail_04.txt old mode 100755 new mode 100644 diff --git a/tests/bounces/qmail_05.txt b/tests/bounces/qmail_05.txt old mode 100755 new mode 100644 diff --git a/tests/bounces/simple_17.txt b/tests/bounces/simple_17.txt old mode 100755 new mode 100644 diff --git a/tests/bounces/simple_18.txt b/tests/bounces/simple_18.txt old mode 100755 new mode 100644 diff --git a/tests/bounces/simple_19.txt b/tests/bounces/simple_19.txt old mode 100755 new mode 100644 diff --git a/tests/bounces/simple_20.txt b/tests/bounces/simple_20.txt old mode 100755 new mode 100644 diff --git a/tests/bounces/simple_21.txt b/tests/bounces/simple_21.txt old mode 100755 new mode 100644 diff --git a/tests/bounces/simple_22.txt b/tests/bounces/simple_22.txt old mode 100755 new mode 100644 diff --git a/tests/bounces/simple_23.txt b/tests/bounces/simple_23.txt old mode 100755 new mode 100644 diff --git a/tests/bounces/simple_24.txt b/tests/bounces/simple_24.txt old mode 100755 new mode 100644 diff --git a/tests/bounces/simple_25.txt b/tests/bounces/simple_25.txt old mode 100755 new mode 100644 diff --git a/tests/bounces/simple_26.txt b/tests/bounces/simple_26.txt old mode 100755 new mode 100644 diff --git a/tests/bounces/simple_27.txt b/tests/bounces/simple_27.txt old mode 100755 new mode 100644 diff --git a/tests/bounces/simple_29.txt b/tests/bounces/simple_29.txt new file mode 100644 index 00000000..33dcb3c0 --- /dev/null +++ b/tests/bounces/simple_29.txt @@ -0,0 +1,55 @@ +Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) + by strategicnetwork.org (Postfix) with ESMTP id 635A27347E5 + for ; Tue, 13 May 2008 12:51:46 -0600 (MDT) +From: "Mail Delivery System" +To: +Subject: Mail delivery failed +Date: Wed, 14 May 2008 02:51:47 +0800 +Message-ID: +MIME-Version: 1.0 +Content-Type: text/plain; + charset="iso-8859-1" +Content-Transfer-Encoding: 7bit +X-Mailer: Microsoft Office Outlook 12.0 +Thread-Index: Aci1Kmbra/4UZFszTWaO4wdczWcBCQ== + +This message was created automatically by mail delivery software. + +A message that you have sent could not be delivered to one or more +recipients. This is a permanent error. The following address failed: + + : 550 unknown user + + + + +Included is a copy of the message header: +----------------------------------------- +Received: from unknown [66.35.39.241] (EHLO strategicnetwork.org) + by p02c11m063.mxlogic.net (mxl_mta-5.5.0-3) + with ESMTP id +243e9284.3570539440.159512.00-095.p02c11m063.mxlogic.net (envelope-from +); + Tue, 13 May 2008 12:51:46 -0600 (MDT) +Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) + by strategicnetwork.org (Postfix) with ESMTP id 635A27347E5 + for ; Tue, 13 May 2008 12:51:46 -0600 +(MDT) +MIME-Version: 1.0 +Content-Type: text/plain; charset="us-ascii" +Content-Transfer-Encoding: 7bit +From: network-news-request@strategicnetwork.org +To: thilakayi_bing@landshire.com +Subject: confirm 729791e8feb106a11648f358c538d4073e9eb7b1 +Reply-To: network-news-request@strategicnetwork.org +Message-ID: +Date: Tue, 13 May 2008 12:51:45 -0600 +Precedence: bulk +X-BeenThere: network-news@strategicnetwork.org +X-Mailman-Version: 2.1.5 +List-Id: network-news.strategicnetwork.org +X-List-Administrivia: yes +Sender: network-news-bounces@strategicnetwork.org +Errors-To: network-news-bounces@strategicnetwork.org + + diff --git a/tests/bounces/smtp32_07.txt b/tests/bounces/smtp32_07.txt old mode 100755 new mode 100644 diff --git a/tests/test_bounces.py b/tests/test_bounces.py index dd41fdf4..f9b2fdc9 100644 --- a/tests/test_bounces.py +++ b/tests/test_bounces.py @@ -66,6 +66,7 @@ class BounceTest(unittest.TestCase): ('SimpleMatch', 'simple_25.txt', ['mahau@cnbearing.com']), ('SimpleMatch', 'simple_26.txt', ['reilizavet@lar.ieo.it']), ('SimpleMatch', 'simple_27.txt', ['kulp@webmail.pla.net.py']), + ('SimpleMatch', 'simple_29.txt', ['thilakayi_bing@landshire.com']), ('SimpleMatch', 'bounce_02.txt', ['acinsp1@midsouth.rr.com']), ('SimpleMatch', 'bounce_03.txt', ['james@jeborall.demon.co.uk']), # SimpleWarning @@ -100,6 +101,8 @@ class BounceTest(unittest.TestCase): ('DSN', 'dsn_13.txt', ['marcooherbst@cardinal.com']), ('DSN', 'dsn_14.txt', ['artboardregistration@home.dk']), ('DSN', 'dsn_15.txt', ['horu@ccc-ces.com']), + ('DSN', 'dsn_16.txt', ['hishealinghand@pastors.com']), + ('DSN', 'dsn_17.txt', Stop), # Microsoft Exchange ('Exchange', 'microsoft_01.txt', ['DJBENNETT@IKON.COM']), ('Exchange', 'microsoft_02.txt', ['MDMOORE@BALL.COM']), -- cgit v1.2.3