diff options
author | Philip Hazel <ph10@hermes.cam.ac.uk> | 2006-03-20 10:55:21 +0000 |
---|---|---|
committer | Philip Hazel <ph10@hermes.cam.ac.uk> | 2006-03-20 10:55:21 +0000 |
commit | 715ab37671cc2b25fe70463a940f2245af73615b (patch) | |
tree | 8719d1be62292fa83b933dbdc8190b07efdbc628 /test | |
parent | f3d7df6c6b103bd096bfc455e88d79c8f6c3195b (diff) |
Fix bounces for non-SMTP reception errors to recognize
bounce_return_xxx.
Diffstat (limited to 'test')
-rw-r--r-- | test/confs/0021 | 3 | ||||
-rw-r--r-- | test/log/0021 | 40 | ||||
-rw-r--r-- | test/mail/0021.ok | 8 | ||||
-rw-r--r-- | test/mail/0021.userx | 56 | ||||
-rw-r--r-- | test/mail/0021.x | 2 | ||||
-rw-r--r-- | test/rejectlog/0021 | 20 | ||||
-rw-r--r-- | test/scripts/0000-Basic/0021 | 12 | ||||
-rw-r--r-- | test/stdout/0021 | 2 |
8 files changed, 115 insertions, 28 deletions
diff --git a/test/confs/0021 b/test/confs/0021 index 902d5f369..5ff787e28 100644 --- a/test/confs/0021 +++ b/test/confs/0021 @@ -1,6 +1,7 @@ # Exim test configuration 0021 SERVER= +BR= exim_path = EXIM_PATH host_lookup_order = bydns @@ -24,6 +25,8 @@ acl_smtp_helo = helo acl_smtp_mail = mail acl_smtp_rcpt = rcpt +BR + qualify_domain = test.ex trusted_users = CALLER diff --git a/test/log/0021 b/test/log/0021 index 5f6faf289..77ae6a64f 100644 --- a/test/log/0021 +++ b/test/log/0021 @@ -1,21 +1,21 @@ 1999-03-02 09:44:33 10HmaX-0005vi-00 F=<userx@test1> rejected by non-SMTP ACL: don't like sender userx@test1 -1999-03-02 09:44:33 10HmbA-0005vi-00 <= <> R=10HmaX-0005vi-00 U=EXIMUSER P=local S=sss -1999-03-02 09:44:33 10HmbA-0005vi-00 => userx <userx@test1> R=accept T=appendfile -1999-03-02 09:44:33 10HmbA-0005vi-00 Completed -1999-03-02 09:44:33 10HmbB-0005vi-00 <= ok@test1 U=CALLER P=local S=sss -1999-03-02 09:44:33 10HmbB-0005vi-00 => userx <userx@test.ex> R=accept T=appendfile -1999-03-02 09:44:33 10HmbB-0005vi-00 Completed -1999-03-02 09:44:33 10HmaY-0005vi-00 F=<ok@test2> rejected by non-SMTP ACL: cannot test hosts condition in non-SMTP ACL -1999-03-02 09:44:33 10HmbC-0005vi-00 <= <> R=10HmaY-0005vi-00 U=EXIMUSER P=local S=sss -1999-03-02 09:44:33 10HmbC-0005vi-00 => ok <ok@test2> R=accept T=appendfile +1999-03-02 09:44:33 10HmbC-0005vi-00 <= <> R=10HmaX-0005vi-00 U=EXIMUSER P=local S=sss +1999-03-02 09:44:33 10HmbC-0005vi-00 => userx <userx@test1> R=accept T=appendfile 1999-03-02 09:44:33 10HmbC-0005vi-00 Completed -1999-03-02 09:44:33 10HmbD-0005vi-00 <= ok@test3 U=CALLER P=local S=sss +1999-03-02 09:44:33 10HmbD-0005vi-00 <= ok@test1 U=CALLER P=local S=sss 1999-03-02 09:44:33 10HmbD-0005vi-00 => userx <userx@test.ex> R=accept T=appendfile 1999-03-02 09:44:33 10HmbD-0005vi-00 Completed -1999-03-02 09:44:33 10HmaZ-0005vi-00 F=<ok@test4> rejected by non-SMTP ACL: no verified certificate -1999-03-02 09:44:33 10HmbE-0005vi-00 <= <> R=10HmaZ-0005vi-00 U=EXIMUSER P=local S=sss -1999-03-02 09:44:33 10HmbE-0005vi-00 => ok <ok@test4> R=accept T=appendfile +1999-03-02 09:44:33 10HmaY-0005vi-00 F=<ok@test2> rejected by non-SMTP ACL: cannot test hosts condition in non-SMTP ACL +1999-03-02 09:44:33 10HmbE-0005vi-00 <= <> R=10HmaY-0005vi-00 U=EXIMUSER P=local S=sss +1999-03-02 09:44:33 10HmbE-0005vi-00 => ok <ok@test2> R=accept T=appendfile 1999-03-02 09:44:33 10HmbE-0005vi-00 Completed +1999-03-02 09:44:33 10HmbF-0005vi-00 <= ok@test3 U=CALLER P=local S=sss +1999-03-02 09:44:33 10HmbF-0005vi-00 => userx <userx@test.ex> R=accept T=appendfile +1999-03-02 09:44:33 10HmbF-0005vi-00 Completed +1999-03-02 09:44:33 10HmaZ-0005vi-00 F=<ok@test4> rejected by non-SMTP ACL: no verified certificate +1999-03-02 09:44:33 10HmbG-0005vi-00 <= <> R=10HmaZ-0005vi-00 U=EXIMUSER P=local S=sss +1999-03-02 09:44:33 10HmbG-0005vi-00 => ok <ok@test4> R=accept T=appendfile +1999-03-02 09:44:33 10HmbG-0005vi-00 Completed 1999-03-02 09:44:33 H=[10.9.8.7] U=CALLER rejected connection in "connect" ACL 1999-03-02 09:44:33 10.9.8.8 accepted by connect ACL 1999-03-02 09:44:33 H=[10.9.8.8] U=CALLER rejected MAIL <bad@test1> @@ -28,6 +28,14 @@ 1999-03-02 09:44:33 H=(x.y.z) [10.9.8.10] U=CALLER rejected EHLO or HELO x.y.z 1999-03-02 09:44:33 10.9.8.8 accepted by connect ACL 1999-03-02 09:44:33 mail accepted -1999-03-02 09:44:33 10HmbF-0005vi-00 <= ok@test3 H=[10.9.8.8] U=CALLER P=smtp S=sss -1999-03-02 09:44:33 10HmbF-0005vi-00 => x <x@y> R=accept T=appendfile -1999-03-02 09:44:33 10HmbF-0005vi-00 Completed +1999-03-02 09:44:33 10HmbH-0005vi-00 <= ok@test3 H=[10.9.8.8] U=CALLER P=smtp S=sss +1999-03-02 09:44:33 10HmbH-0005vi-00 => x <x@y> R=accept T=appendfile +1999-03-02 09:44:33 10HmbH-0005vi-00 Completed +1999-03-02 09:44:33 10HmbA-0005vi-00 F=<userx@test1> rejected by non-SMTP ACL: don't like sender userx@test1 +1999-03-02 09:44:33 10HmbI-0005vi-00 <= <> R=10HmbA-0005vi-00 U=EXIMUSER P=local S=sss +1999-03-02 09:44:33 10HmbI-0005vi-00 => userx <userx@test1> R=accept T=appendfile +1999-03-02 09:44:33 10HmbI-0005vi-00 Completed +1999-03-02 09:44:33 10HmbB-0005vi-00 F=<userx@test1> rejected by non-SMTP ACL: don't like sender userx@test1 +1999-03-02 09:44:33 10HmbJ-0005vi-00 <= <> R=10HmbB-0005vi-00 U=EXIMUSER P=local S=sss +1999-03-02 09:44:33 10HmbJ-0005vi-00 => userx <userx@test1> R=accept T=appendfile +1999-03-02 09:44:33 10HmbJ-0005vi-00 Completed diff --git a/test/mail/0021.ok b/test/mail/0021.ok index c4e87e422..213d0c60a 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 10HmbC-0005vi-00 + id 10HmbE-0005vi-00 for ok@test2; Tue, 2 Mar 1999 09:44:33 +0000 Auto-Submitted: auto-replied From: Mail Delivery System <Mailer-Daemon@test.ex> To: ok@test2 Subject: Mail failure - rejected by local scanning code -Message-Id: <E10HmbC-0005vi-00@myhost.test.ex> +Message-Id: <E10HmbE-0005vi-00@myhost.test.ex> Date: Tue, 2 Mar 1999 09:44:33 +0000 A message that you sent was rejected by the local scanning code that @@ -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 10HmbE-0005vi-00 + id 10HmbG-0005vi-00 for ok@test4; Tue, 2 Mar 1999 09:44:33 +0000 Auto-Submitted: auto-replied From: Mail Delivery System <Mailer-Daemon@test.ex> To: ok@test4 Subject: Mail failure - rejected by local scanning code -Message-Id: <E10HmbE-0005vi-00@myhost.test.ex> +Message-Id: <E10HmbG-0005vi-00@myhost.test.ex> Date: Tue, 2 Mar 1999 09:44:33 +0000 A message that you sent was rejected by the local scanning code that diff --git a/test/mail/0021.userx b/test/mail/0021.userx index e8f147a4f..2abd8d315 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 10HmbA-0005vi-00 + id 10HmbC-0005vi-00 for userx@test1; Tue, 2 Mar 1999 09:44:33 +0000 Auto-Submitted: auto-replied From: Mail Delivery System <Mailer-Daemon@test.ex> To: userx@test1 Subject: Mail failure - rejected by local scanning code -Message-Id: <E10HmbA-0005vi-00@myhost.test.ex> +Message-Id: <E10HmbC-0005vi-00@myhost.test.ex> Date: Tue, 2 Mar 1999 09:44:33 +0000 A message that you sent was rejected by the local scanning code that @@ -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 <ok@test1>) - id 10HmbB-0005vi-00 + id 10HmbD-0005vi-00 for userx@test.ex; Tue, 2 Mar 1999 09:44:33 +0000 -Message-Id: <E10HmbB-0005vi-00@myhost.test.ex> +Message-Id: <E10HmbD-0005vi-00@myhost.test.ex> From: ok@test1 Date: Tue, 2 Mar 1999 09:44:33 +0000 @@ -40,11 +40,55 @@ 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 <ok@test3>) - id 10HmbD-0005vi-00 + id 10HmbF-0005vi-00 for userx@test.ex; Tue, 2 Mar 1999 09:44:33 +0000 -Message-Id: <E10HmbD-0005vi-00@myhost.test.ex> +Message-Id: <E10HmbF-0005vi-00@myhost.test.ex> From: ok@test3 Date: Tue, 2 Mar 1999 09:44:33 +0000 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 + for userx@test1; Tue, 2 Mar 1999 09:44:33 +0000 +Auto-Submitted: auto-replied +From: Mail Delivery System <Mailer-Daemon@test.ex> +To: userx@test1 +Subject: Mail failure - rejected by local scanning code +Message-Id: <E10HmbI-0005vi-00@myhost.test.ex> +Date: Tue, 2 Mar 1999 09:44:33 +0000 + +A message that you sent was rejected by the local scanning code that +checks incoming messages on this system. The following error was given: + + don't like sender userx@test1 + +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 + for userx@test1; Tue, 2 Mar 1999 09:44:33 +0000 +Auto-Submitted: auto-replied +From: Mail Delivery System <Mailer-Daemon@test.ex> +To: userx@test1 +Subject: Mail failure - rejected by local scanning code +Message-Id: <E10HmbJ-0005vi-00@myhost.test.ex> +Date: Tue, 2 Mar 1999 09:44:33 +0000 + +A message that you sent was rejected by the local scanning code that +checks incoming messages on this system. The following error was given: + + don't like sender userx@test1 + +------ This is a copy of the headers that were received before the error + was detected. + +Received: from CALLER by myhost.test.ex with local (Exim x.yz) + (envelope-from <userx@test1>) + id 10HmbB-0005vi-00 + for userx@test.ex; Tue, 2 Mar 1999 09:44:33 +0000 +Message-Id: <E10HmbB-0005vi-00@myhost.test.ex> +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 41a8070f9..9dd43af38 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 <ok@test3>) - id 10HmbF-0005vi-00 + id 10HmbH-0005vi-00 for x@y; Tue, 2 Mar 1999 09:44:33 +0000 X-ACL-Warn: added header line diff --git a/test/rejectlog/0021 b/test/rejectlog/0021 index 90e92c7c3..a2e943557 100644 --- a/test/rejectlog/0021 +++ b/test/rejectlog/0021 @@ -35,3 +35,23 @@ F From: ok@test4 1999-03-02 09:44:33 U=CALLER rejected connection in "connect" ACL 1999-03-02 09:44:33 H=(x.y.z) [10.9.8.10] U=CALLER rejected EHLO or HELO x.y.z 1999-03-02 09:44:33 mail accepted +1999-03-02 09:44:33 10HmbA-0005vi-00 F=<userx@test1> rejected by non-SMTP ACL: don't like sender userx@test1 +Envelope-from: <userx@test1> +Envelope-to: <userx@test.ex> +P Received: from CALLER by myhost.test.ex with local (Exim x.yz) + (envelope-from <userx@test1>) + id 10HmbA-0005vi-00 + for userx@test.ex; Tue, 2 Mar 1999 09:44:33 +0000 +I Message-Id: <E10HmbA-0005vi-00@myhost.test.ex> +F From: userx@test1 + Date: Tue, 2 Mar 1999 09:44:33 +0000 +1999-03-02 09:44:33 10HmbB-0005vi-00 F=<userx@test1> rejected by non-SMTP ACL: don't like sender userx@test1 +Envelope-from: <userx@test1> +Envelope-to: <userx@test.ex> +P Received: from CALLER by myhost.test.ex with local (Exim x.yz) + (envelope-from <userx@test1>) + id 10HmbB-0005vi-00 + for userx@test.ex; Tue, 2 Mar 1999 09:44:33 +0000 +I Message-Id: <E10HmbB-0005vi-00@myhost.test.ex> +F From: userx@test1 + Date: Tue, 2 Mar 1999 09:44:33 +0000 diff --git a/test/scripts/0000-Basic/0021 b/test/scripts/0000-Basic/0021 index 2ec354ffd..71b334130 100644 --- a/test/scripts/0000-Basic/0021 +++ b/test/scripts/0000-Basic/0021 @@ -48,3 +48,15 @@ Some message . quit **** +# Test unsetting bounce_return_message for non-SMTP +1 +exim -DBR=no_bounce_return_message -odi -f userx@test1 userx +Test message 1. +. +**** +# Test unsetting bounce_return_body for non-SMTP +1 +exim -DBR=no_bounce_return_body -odi -f userx@test1 userx +Test message 1. +. +**** diff --git a/test/stdout/0021 b/test/stdout/0021 index e09e72f1e..490d13fad 100644 --- a/test/stdout/0021 +++ b/test/stdout/0021 @@ -14,5 +14,5 @@ 250 OK
250 Accepted
354 Enter message, ending with "." on a line by itself
-250 OK id=10HmbF-0005vi-00
+250 OK id=10HmbH-0005vi-00
221 myhost.test.ex closing connection
|