aboutsummaryrefslogtreecommitdiffstats
path: root/tests/test_bounces.py
diff options
context:
space:
mode:
Diffstat (limited to '')
-rwxr-xr-xtests/test_bounces.py203
1 files changed, 103 insertions, 100 deletions
diff --git a/tests/test_bounces.py b/tests/test_bounces.py
index 082e9a99..44db3b9b 100755
--- a/tests/test_bounces.py
+++ b/tests/test_bounces.py
@@ -36,54 +36,54 @@ class BounceTest(unittest.TestCase):
('Postfix', 'postfix_01.txt', ['xxxxx@local.ie']),
('Postfix', 'postfix_02.txt', ['yyyyy@digicool.com']),
('Postfix', 'postfix_03.txt', ['ttttt@ggggg.com']),
- ('Postfix', 'postfix_04.txt', ['davidlowie@mail1.keftamail.com']),
- ('Postfix', 'postfix_05.txt', ['bjelf@detectit.net']),
+ ('Postfix', 'postfix_04.txt', ['userx@mail1.example.com']),
+ ('Postfix', 'postfix_05.txt', ['userx@example.net']),
# Exim bounces
- ('Exim', 'exim_01.txt', ['delangen@its.tudelft.nl']),
+ ('Exim', 'exim_01.txt', ['userx@its.example.nl']),
# SimpleMatch bounces
('SimpleMatch', 'sendmail_01.txt', ['zzzzz@shaft.coal.nl',
'zzzzz@nfg.nl']),
- ('SimpleMatch', 'simple_01.txt', ['bbbsss@turbosport.com']),
- ('SimpleMatch', 'simple_02.txt', ['chris.ggggmmmm@usa.net']),
- ('SimpleMatch', 'simple_04.txt', ['claird@starbase.neosoft.com']),
+ ('SimpleMatch', 'simple_01.txt', ['bbbsss@example.com']),
+ ('SimpleMatch', 'simple_02.txt', ['userx@example.net']),
+ ('SimpleMatch', 'simple_04.txt', ['userx@example.com']),
('SimpleMatch', 'newmailru_01.txt', ['zzzzz@newmail.ru']),
- ('SimpleMatch', 'hotpop_01.txt', ['allensmithee@hotpop.com']),
- ('SimpleMatch', 'microsoft_03.txt', ['midica@banknbr.com']),
- ('SimpleMatch', 'simple_05.txt', ['rlosardo@sbcglobal.net']),
- ('SimpleMatch', 'simple_06.txt', ['dlyle@hamiltonpacific.com']),
- ('SimpleMatch', 'simple_07.txt', ['william.xxxx@sbcglobal.net']),
- ('SimpleMatch', 'simple_08.txt', ['severin.XXX@t-online.de']),
- ('SimpleMatch', 'simple_09.txt', ['RobotMail@auto-walther.de']),
- ('SimpleMatch', 'simple_10.txt', ['sais@thehartford.com']),
- ('SimpleMatch', 'simple_11.txt', ['carlosr73@hartfordlife.com']),
- ('SimpleMatch', 'simple_12.txt', ['charrogar@rhine1.andrew.ac.jp']),
- ('SimpleMatch', 'simple_13.txt', ['dycusibreix@ademe.fr']),
- ('SimpleMatch', 'simple_14.txt', ['dump@dachamp.com',
- 'iqxwmmfauudpo@dachamp.com']),
- ('SimpleMatch', 'simple_15.txt', ['isam@kviv.be']),
- ('SimpleMatch', 'simple_16.txt', ['xvlogtfsei@the-messenger.com']),
- ('SimpleMatch', 'simple_17.txt', ['internetsailing@gmail.com']),
- ('SimpleMatch', 'simple_18.txt', ['powell@kesslersupply.com']),
- ('SimpleMatch', 'simple_19.txt', ['mcfall@cepi.com.ar']),
- ('SimpleMatch', 'simple_20.txt', ['duke@ald.socgen.com']),
- ('SimpleMatch', 'simple_23.txt', ['ketchuy@dadoservice.it']),
- ('SimpleMatch', 'simple_24.txt', ['liberty@gomaps.com']),
- ('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', 'simple_30.txt', ['wmnqicorpat@nqicorp.com']),
- ('SimpleMatch', 'simple_31.txt', ['nmorel@actisce.fr']),
- ('SimpleMatch', 'simple_32.txt', ['teteyn@agence-forbin.com']),
- ('SimpleMatch', 'simple_33.txt', ['hmu@extralumin.com']),
- ('SimpleMatch', 'simple_34.txt', ['roland@xxx.com']),
- ('SimpleMatch', 'simple_36.txt', ['garyt@xxx.com']),
- ('SimpleMatch', 'simple_37.txt', ['user@uci.edu']),
- ('SimpleMatch', 'simple_38.txt', ['prueba@domain.com']),
- ('SimpleMatch', 'simple_39.txt', ['foo@mail.ru']),
- ('SimpleMatch', 'simple_41.txt', ['jeff.chan@intercitytime.com']),
- ('SimpleMatch', 'bounce_02.txt', ['acinsp1@midsouth.rr.com']),
- ('SimpleMatch', 'bounce_03.txt', ['james@jeborall.demon.co.uk']),
+ ('SimpleMatch', 'hotpop_01.txt', ['userx@example.com']),
+ ('SimpleMatch', 'microsoft_03.txt', ['userx@example.com']),
+ ('SimpleMatch', 'simple_05.txt', ['userx@example.net']),
+ ('SimpleMatch', 'simple_06.txt', ['userx@example.com']),
+ ('SimpleMatch', 'simple_07.txt', ['userx@example.net']),
+ ('SimpleMatch', 'simple_08.txt', ['userx@example.de']),
+ ('SimpleMatch', 'simple_09.txt', ['userx@example.de']),
+ ('SimpleMatch', 'simple_10.txt', ['userx@example.com']),
+ ('SimpleMatch', 'simple_11.txt', ['userx@example.com']),
+ ('SimpleMatch', 'simple_12.txt', ['userx@example.ac.jp']),
+ ('SimpleMatch', 'simple_13.txt', ['userx@example.fr']),
+ ('SimpleMatch', 'simple_14.txt', ['userx@example.com',
+ 'usery@example.com']),
+ ('SimpleMatch', 'simple_15.txt', ['userx@example.be']),
+ ('SimpleMatch', 'simple_16.txt', ['userx@example.com']),
+ ('SimpleMatch', 'simple_17.txt', ['userx@example.com']),
+ ('SimpleMatch', 'simple_18.txt', ['userx@example.com']),
+ ('SimpleMatch', 'simple_19.txt', ['userx@example.com.ar']),
+ ('SimpleMatch', 'simple_20.txt', ['userx@example.com']),
+ ('SimpleMatch', 'simple_23.txt', ['userx@example.it']),
+ ('SimpleMatch', 'simple_24.txt', ['userx@example.com']),
+ ('SimpleMatch', 'simple_25.txt', ['userx@example.com']),
+ ('SimpleMatch', 'simple_26.txt', ['userx@example.it']),
+ ('SimpleMatch', 'simple_27.txt', ['userx@example.net.py']),
+ ('SimpleMatch', 'simple_29.txt', ['userx@example.com']),
+ ('SimpleMatch', 'simple_30.txt', ['userx@example.com']),
+ ('SimpleMatch', 'simple_31.txt', ['userx@example.fr']),
+ ('SimpleMatch', 'simple_32.txt', ['userx@example.com']),
+ ('SimpleMatch', 'simple_33.txt', ['userx@example.com']),
+ ('SimpleMatch', 'simple_34.txt', ['roland@example.com']),
+ ('SimpleMatch', 'simple_36.txt', ['userx@example.com']),
+ ('SimpleMatch', 'simple_37.txt', ['user@example.edu']),
+ ('SimpleMatch', 'simple_38.txt', ['userx@example.com']),
+ ('SimpleMatch', 'simple_39.txt', ['userx@example.ru']),
+ ('SimpleMatch', 'simple_41.txt', ['userx@example.com']),
+ ('SimpleMatch', 'bounce_02.txt', ['userx@example.com']),
+ ('SimpleMatch', 'bounce_03.txt', ['userx@example.uk']),
# SimpleWarning
('SimpleWarning', 'simple_03.txt', Stop),
('SimpleWarning', 'simple_21.txt', Stop),
@@ -92,90 +92,93 @@ class BounceTest(unittest.TestCase):
('SimpleWarning', 'simple_35.txt', Stop),
('SimpleWarning', 'simple_40.txt', Stop),
# GroupWise
- ('GroupWise', 'groupwise_01.txt', ['thoff@MAINEX1.ASU.EDU']),
+ ('GroupWise', 'groupwise_01.txt', ['userx@example.EDU']),
# This one really sucks 'cause it's text/html. Just make sure it
# doesn't throw an exception, but we won't get any meaningful
# addresses back from it.
('GroupWise', 'groupwise_02.txt', []),
# Actually, it's from Exchange, and Exchange does recognize it
- ('Exchange', 'groupwise_02.txt', ['omarmo@thebas.com']),
+ ('Exchange', 'groupwise_02.txt', ['userx@example.com']),
+ # Not a bounce but has confused groupwise
+ ('GroupWise', 'groupwise_03.txt', []),
# Yale's own
- ('Yale', 'yale_01.txt', ['thomas.dtankengine@cs.yale.edu',
- 'thomas.dtankengine@yale.edu']),
+ ('Yale', 'yale_01.txt', ['userx@cs.yale.edu',
+ 'userx@yale.edu']),
# DSN, i.e. RFC 1894
- ('DSN', 'dsn_01.txt', ['JimmyMcEgypt@go.com']),
- ('DSN', 'dsn_02.txt', ['zzzzz@zeus.hud.ac.uk']),
- ('DSN', 'dsn_03.txt', ['ddd.kkk@advalvas.be']),
- ('DSN', 'dsn_04.txt', ['max.haas@unibas.ch']),
+ ('DSN', 'dsn_01.txt', ['userx@example.com']),
+ ('DSN', 'dsn_02.txt', ['zzzzz@example.uk']),
+ ('DSN', 'dsn_03.txt', ['userx@example.be']),
+ ('DSN', 'dsn_04.txt', ['userx@example.ch']),
('DSN', 'dsn_05.txt', Stop),
('DSN', 'dsn_06.txt', Stop),
('DSN', 'dsn_07.txt', Stop),
('DSN', 'dsn_08.txt', Stop),
- ('DSN', 'dsn_09.txt', ['pr@allen-heath.com']),
+ ('DSN', 'dsn_09.txt', ['userx@example.com']),
('DSN', 'dsn_10.txt', ['anne.person@dom.ain']),
('DSN', 'dsn_11.txt', ['joem@example.com']),
- ('DSN', 'dsn_12.txt', ['auaauqdgrdz@jtc-con.co.jp']),
- ('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_12.txt', ['userx@example.jp']),
+ ('DSN', 'dsn_13.txt', ['userx@example.com']),
+ ('DSN', 'dsn_14.txt', ['userx@example.com.dk']),
+ ('DSN', 'dsn_15.txt', ['userx@example.com']),
+ ('DSN', 'dsn_16.txt', ['userx@example.com']),
('DSN', 'dsn_17.txt', Stop),
# Microsoft Exchange
- ('Exchange', 'microsoft_01.txt', ['DJBENNETT@IKON.COM']),
- ('Exchange', 'microsoft_02.txt', ['MDMOORE@BALL.COM']),
+ ('Exchange', 'microsoft_01.txt', ['userx@example.COM']),
+ ('Exchange', 'microsoft_02.txt', ['userx@example.COM']),
# SMTP32
- ('SMTP32', 'smtp32_01.txt', ['oliver@pcworld.com.ph']),
- ('SMTP32', 'smtp32_02.txt', ['lists@mail.spicynoodles.com']),
- ('SMTP32', 'smtp32_03.txt', ['borisk@gw.xraymedia.com']),
- ('SMTP32', 'smtp32_04.txt', ['after_another@pacbell.net',
- 'one_bad_address@pacbell.net']),
- ('SMTP32', 'smtp32_05.txt', ['jmrpowersports@jmrpowersports.com']),
- ('SMTP32', 'smtp32_06.txt', ['Absolute_garbage_addr@pacbell.net']),
- ('SMTP32', 'smtp32_07.txt', ['info@husbyran.com']),
+ ('SMTP32', 'smtp32_01.txt', ['userx@example.ph']),
+ ('SMTP32', 'smtp32_02.txt', ['userx@example.com']),
+ ('SMTP32', 'smtp32_03.txt', ['userx@example.com']),
+ ('SMTP32', 'smtp32_04.txt', ['after_another@example.net',
+ 'one_bad_address@example.net']),
+ ('SMTP32', 'smtp32_05.txt', ['userx@example.com']),
+ ('SMTP32', 'smtp32_06.txt', ['Absolute_garbage_addr@example.net']),
+ ('SMTP32', 'smtp32_07.txt', ['userx@example.com']),
# Qmail
- ('Qmail', 'qmail_01.txt', ['psadisc@wwwmail.n-h.de']),
- ('Qmail', 'qmail_02.txt', ['rauschlo@frontfin.com']),
- ('Qmail', 'qmail_03.txt', ['crown@hbc.co.jp']),
- ('Qmail', 'qmail_04.txt', ['merotiia@tennisnsw.com.au']),
- ('Qmail', 'qmail_05.txt', ['ivokggrrdvc@caixaforte.freeservers.com']),
+ ('Qmail', 'qmail_01.txt', ['userx@example.de']),
+ ('Qmail', 'qmail_02.txt', ['userx@example.com']),
+ ('Qmail', 'qmail_03.txt', ['userx@example.jp']),
+ ('Qmail', 'qmail_04.txt', ['userx@example.au']),
+ ('Qmail', 'qmail_05.txt', ['userx@example.com']),
('Qmail', 'qmail_06.txt', ['ntl@xxx.com']),
('Qmail', 'qmail_07.txt', ['user@example.net']),
('Qmail', 'qmail_08.txt', []),
# LLNL's custom Sendmail
- ('LLNL', 'llnl_01.txt', ['trotts1@llnl.gov']),
+ ('LLNL', 'llnl_01.txt', ['user1@example.gov']),
# Netscape's server...
('Netscape', 'netscape_01.txt', ['aaaaa@corel.com',
'bbbbb@corel.com']),
# Yahoo's proprietary format
- ('Yahoo', 'yahoo_01.txt', ['subscribe.motorcycles@listsociety.com']),
- ('Yahoo', 'yahoo_02.txt', ['agarciamartiartu@yahoo.es']),
- ('Yahoo', 'yahoo_03.txt', ['cresus22@yahoo.com']),
- ('Yahoo', 'yahoo_04.txt', ['agarciamartiartu@yahoo.es',
- 'open00now@yahoo.co.uk']),
- ('Yahoo', 'yahoo_05.txt', ['cresus22@yahoo.com',
- 'jjb700@yahoo.com']),
- ('Yahoo', 'yahoo_06.txt', ['andrew_polevoy@yahoo.com',
- 'baruch_sterin@yahoo.com',
- 'rjhoeks@yahoo.com',
- 'tritonrugger91@yahoo.com']),
- ('Yahoo', 'yahoo_07.txt', ['mark1960_1998@yahoo.com',
- 'ovchenkov@yahoo.com',
- 'tsa412@yahoo.com',
- 'vaxheadroom@yahoo.com']),
- ('Yahoo', 'yahoo_08.txt', ['chatrathis@yahoo.com',
- 'crownjules01@yahoo.com',
- 'cwl_999@yahoo.com',
- 'eichaiwiu@yahoo.com',
- 'rjhoeks@yahoo.com',
- 'yuli_kolesnikov@yahoo.com']),
- ('Yahoo', 'yahoo_09.txt', ['hankel_o_fung@yahoo.com',
- 'ultravirus2001@yahoo.com']),
- ('Yahoo', 'yahoo_10.txt', ['jajcchoo@yahoo.com',
- 'lyons94706@yahoo.com',
- 'turtle4jne@yahoo.com']),
+ ('Yahoo', 'yahoo_01.txt', ['userx@example.com']),
+ ('Yahoo', 'yahoo_02.txt', ['userx@example.es']),
+ ('Yahoo', 'yahoo_03.txt', ['userx@example.com']),
+ ('Yahoo', 'yahoo_04.txt', ['userx@example.es',
+ 'usery@example.uk']),
+ ('Yahoo', 'yahoo_05.txt', ['userx@example.com',
+ 'usery@example.com']),
+ ('Yahoo', 'yahoo_06.txt', ['userx@example.com',
+ 'usery@example.com',
+ 'userz@example.com',
+ 'usera@example.com']),
+ ('Yahoo', 'yahoo_07.txt', ['userw@example.com',
+ 'userx@example.com',
+ 'usery@example.com',
+ 'userz@example.com']),
+ ('Yahoo', 'yahoo_08.txt', ['usera@example.com',
+ 'userb@example.com',
+ 'userc@example.com',
+ 'userd@example.com',
+ 'usere@example.com',
+ 'userf@example.com']),
+ ('Yahoo', 'yahoo_09.txt', ['userx@example.com',
+ 'usery@example.com']),
+ ('Yahoo', 'yahoo_10.txt', ['userx@example.com',
+ 'usery@example.com',
+ 'userz@example.com']),
('Yahoo', 'yahoo_11.txt', ['bad_user@aol.com']),
# sina.com appears to use their own weird SINAEMAIL MTA
- ('Sina', 'sina_01.txt', ['boboman76@sina.com', 'alan_t18@sina.com']),
+ ('Sina', 'sina_01.txt', ['userx@sina.com',
+ 'usery@sina.com']),
('AOL', 'aol_01.txt', ['screenname@aol.com']),
# No address can be detected in these...
# dumbass_01.txt - We love Microsoft. :(