From 60c02b350a7d325e64ae0a656cfd37a9fbd162a7 Mon Sep 17 00:00:00 2001 From: Jeremy Harris Date: Sun, 16 Dec 2018 16:33:32 +0000 Subject: Log failures to extract envelope addresses from message headers. Bug 2351 --- test/mail/0021.CALLER | 23 +++++++++++++++++++++++ test/mail/0021.ok | 16 ++++++++-------- test/mail/0021.userx | 28 ++++++++++++++-------------- test/mail/0021.x | 4 ++-- 4 files changed, 47 insertions(+), 24 deletions(-) create mode 100644 test/mail/0021.CALLER (limited to 'test/mail') diff --git a/test/mail/0021.CALLER b/test/mail/0021.CALLER new file mode 100644 index 000000000..8cdd7b30f --- /dev/null +++ b/test/mail/0021.CALLER @@ -0,0 +1,23 @@ +From MAILER-DAEMON Tue Mar 02 09:44:33 1999 +Received: from EXIMUSER by myhost.test.ex with local (Exim x.yz) + id 10HmbM-0005vi-00 + for CALLER@test.ex; Tue, 2 Mar 1999 09:44:33 +0000 +Auto-Submitted: auto-replied +From: Mail Delivery System +To: CALLER@test.ex +Subject: Mail failure - no recipient addresses +Message-Id: +Date: Tue, 2 Mar 1999 09:44:33 +0000 + +A message that you sent contained no recipient addresses, and therefore no +delivery could be attempted. + +------ This is a copy of your message, including all the headers. ------ + +From: userx@test1 +To: +Subject: this should get a bounce, too +Message-Id: +Date: Tue, 2 Mar 1999 09:44:33 +0000 + + diff --git a/test/mail/0021.ok b/test/mail/0021.ok index 213d0c60a..e061f8670 100644 --- a/test/mail/0021.ok +++ b/test/mail/0021.ok @@ -1,12 +1,12 @@ From MAILER-DAEMON Tue Mar 02 09:44:33 1999 Received: from EXIMUSER by myhost.test.ex with local (Exim x.yz) - id 10HmbE-0005vi-00 + id 10HmbF-0005vi-00 for ok@test2; Tue, 2 Mar 1999 09:44:33 +0000 Auto-Submitted: auto-replied From: Mail Delivery System To: ok@test2 Subject: Mail failure - rejected by local scanning code -Message-Id: +Message-Id: Date: Tue, 2 Mar 1999 09:44:33 +0000 A message that you sent was rejected by the local scanning code that @@ -18,9 +18,9 @@ checks incoming messages on this system. The following error was given: Received: from CALLER by myhost.test.ex with local (Exim x.yz) (envelope-from ) - id 10HmaY-0005vi-00 + id 10HmaZ-0005vi-00 for userx@test.ex; Tue, 2 Mar 1999 09:44:33 +0000 -Message-Id: +Message-Id: From: ok@test2 Date: Tue, 2 Mar 1999 09:44:33 +0000 @@ -28,13 +28,13 @@ Test message 3. From MAILER-DAEMON Tue Mar 02 09:44:33 1999 Received: from EXIMUSER by myhost.test.ex with local (Exim x.yz) - id 10HmbG-0005vi-00 + id 10HmbH-0005vi-00 for ok@test4; Tue, 2 Mar 1999 09:44:33 +0000 Auto-Submitted: auto-replied From: Mail Delivery System To: ok@test4 Subject: Mail failure - rejected by local scanning code -Message-Id: +Message-Id: Date: Tue, 2 Mar 1999 09:44:33 +0000 A message that you sent was rejected by the local scanning code that @@ -46,9 +46,9 @@ checks incoming messages on this system. The following error was given: Received: from CALLER by myhost.test.ex with local (Exim x.yz) (envelope-from ) - id 10HmaZ-0005vi-00 + id 10HmbA-0005vi-00 for userx@test.ex; Tue, 2 Mar 1999 09:44:33 +0000 -Message-Id: +Message-Id: From: ok@test4 Date: Tue, 2 Mar 1999 09:44:33 +0000 diff --git a/test/mail/0021.userx b/test/mail/0021.userx index 2abd8d315..a290342b0 100644 --- a/test/mail/0021.userx +++ b/test/mail/0021.userx @@ -1,12 +1,12 @@ From MAILER-DAEMON Tue Mar 02 09:44:33 1999 Received: from EXIMUSER by myhost.test.ex with local (Exim x.yz) - id 10HmbC-0005vi-00 + id 10HmbD-0005vi-00 for userx@test1; Tue, 2 Mar 1999 09:44:33 +0000 Auto-Submitted: auto-replied From: Mail Delivery System To: userx@test1 Subject: Mail failure - rejected by local scanning code -Message-Id: +Message-Id: Date: Tue, 2 Mar 1999 09:44:33 +0000 A message that you sent was rejected by the local scanning code that @@ -18,9 +18,9 @@ checks incoming messages on this system. The following error was given: Received: from CALLER by myhost.test.ex with local (Exim x.yz) (envelope-from ) - id 10HmaX-0005vi-00 + id 10HmaY-0005vi-00 for userx@test.ex; Tue, 2 Mar 1999 09:44:33 +0000 -Message-Id: +Message-Id: From: userx@test1 Date: Tue, 2 Mar 1999 09:44:33 +0000 @@ -29,9 +29,9 @@ Test message 1. From ok@test1 Tue Mar 02 09:44:33 1999 Received: from CALLER by myhost.test.ex with local (Exim x.yz) (envelope-from ) - id 10HmbD-0005vi-00 + id 10HmbE-0005vi-00 for userx@test.ex; Tue, 2 Mar 1999 09:44:33 +0000 -Message-Id: +Message-Id: From: ok@test1 Date: Tue, 2 Mar 1999 09:44:33 +0000 @@ -40,9 +40,9 @@ Test message 2. From ok@test3 Tue Mar 02 09:44:33 1999 Received: from CALLER by myhost.test.ex with local (Exim x.yz) (envelope-from ) - id 10HmbF-0005vi-00 + id 10HmbG-0005vi-00 for userx@test.ex; Tue, 2 Mar 1999 09:44:33 +0000 -Message-Id: +Message-Id: From: ok@test3 Date: Tue, 2 Mar 1999 09:44:33 +0000 @@ -50,13 +50,13 @@ Test message 4. From MAILER-DAEMON Tue Mar 02 09:44:33 1999 Received: from EXIMUSER by myhost.test.ex with local (Exim x.yz) - id 10HmbI-0005vi-00 + id 10HmbJ-0005vi-00 for userx@test1; Tue, 2 Mar 1999 09:44:33 +0000 Auto-Submitted: auto-replied From: Mail Delivery System To: userx@test1 Subject: Mail failure - rejected by local scanning code -Message-Id: +Message-Id: Date: Tue, 2 Mar 1999 09:44:33 +0000 A message that you sent was rejected by the local scanning code that @@ -66,13 +66,13 @@ checks incoming messages on this system. The following error was given: From MAILER-DAEMON Tue Mar 02 09:44:33 1999 Received: from EXIMUSER by myhost.test.ex with local (Exim x.yz) - id 10HmbJ-0005vi-00 + id 10HmbK-0005vi-00 for userx@test1; Tue, 2 Mar 1999 09:44:33 +0000 Auto-Submitted: auto-replied From: Mail Delivery System To: userx@test1 Subject: Mail failure - rejected by local scanning code -Message-Id: +Message-Id: Date: Tue, 2 Mar 1999 09:44:33 +0000 A message that you sent was rejected by the local scanning code that @@ -85,9 +85,9 @@ checks incoming messages on this system. The following error was given: Received: from CALLER by myhost.test.ex with local (Exim x.yz) (envelope-from ) - id 10HmbB-0005vi-00 + id 10HmbC-0005vi-00 for userx@test.ex; Tue, 2 Mar 1999 09:44:33 +0000 -Message-Id: +Message-Id: From: userx@test1 Date: Tue, 2 Mar 1999 09:44:33 +0000 diff --git a/test/mail/0021.x b/test/mail/0021.x index 12fcf69e8..8e8b1256d 100644 --- a/test/mail/0021.x +++ b/test/mail/0021.x @@ -2,7 +2,7 @@ From ok@test3 Tue Mar 02 09:44:33 1999 Received: from [10.9.8.8] (ident=CALLER) by myhost.test.ex with smtp (Exim x.yz) (envelope-from ) - id 10HmbH-0005vi-00 + id 10HmbI-0005vi-00 for x@y; Tue, 2 Mar 1999 09:44:33 +0000 X-ACL-Warn: added header line @@ -12,7 +12,7 @@ From ok@test3 Tue Mar 02 09:44:33 1999 Received: from [10.9.8.8] (ident=CALLER) by myhost.test.ex with smtp (Exim x.yz) (envelope-from ) - id 10HmbK-0005vi-00 + id 10HmbL-0005vi-00 for x@y; Tue, 2 Mar 1999 09:44:33 +0000 X-ACL-Warn: added header line -- cgit v1.2.3