From 382afc6ba69545d52398da6b437e487aa23f185d Mon Sep 17 00:00:00 2001 From: Philip Hazel Date: Tue, 28 Feb 2006 12:42:47 +0000 Subject: Add authenticated_sender_force to the smtp transport. --- test/confs/0001 | 1 + test/confs/0215 | 4 ++++ test/log/0215 | 4 ++++ test/scripts/0000-Basic/0215 | 30 ++++++++++++++++++++++++++++++ test/stdout/0215 | 24 ++++++++++++++++++++++++ 5 files changed, 63 insertions(+) (limited to 'test') diff --git a/test/confs/0001 b/test/confs/0001 index 049cd1787..aa07ef053 100644 --- a/test/confs/0001 +++ b/test/confs/0001 @@ -574,6 +574,7 @@ appendfile4: smtp: driver = smtp authenticated_sender = abcde + authenticated_sender_force = true no_allow_localhost command_timeout = 5m connect_timeout = 0s diff --git a/test/confs/0215 b/test/confs/0215 index b513fcd6c..102fd0ada 100644 --- a/test/confs/0215 +++ b/test/confs/0215 @@ -1,6 +1,8 @@ # Exim test configuration 0215 IGNORE_QUOTA=false +AUTHS= +AUTHF= exim_path = EXIM_PATH host_lookup_order = bydns @@ -45,6 +47,8 @@ lmtp: port = PORT_S protocol = LMTP lmtp_ignore_quota = IGNORE_QUOTA + AUTHS + AUTHF # ----- Retry ----- diff --git a/test/log/0215 b/test/log/0215 index 9e9b5bba8..9dc3aaf90 100644 --- a/test/log/0215 +++ b/test/log/0215 @@ -45,3 +45,7 @@ 1999-03-02 09:44:33 10HmbF-0005vi-00 -> userxy@myhost.test.ex F= R=smartuser T=lmtp H=127.0.0.1 [127.0.0.1] 1999-03-02 09:44:33 10HmbF-0005vi-00 -> userxz@myhost.test.ex F= R=smartuser T=lmtp H=127.0.0.1 [127.0.0.1] 1999-03-02 09:44:33 10HmbF-0005vi-00 Completed +1999-03-02 09:44:33 10HmbG-0005vi-00 <= CALLER@myhost.test.ex U=CALLER P=local S=sss +1999-03-02 09:44:33 10HmbG-0005vi-00 == userx@myhost.test.ex R=smartuser T=lmtp defer (-44): SMTP error from remote mail server after RCPT TO:: host 127.0.0.1 [127.0.0.1]: 450 LATER +1999-03-02 09:44:33 10HmbH-0005vi-00 <= CALLER@myhost.test.ex U=CALLER P=local S=sss +1999-03-02 09:44:33 10HmbH-0005vi-00 == userx@myhost.test.ex R=smartuser T=lmtp defer (-44): SMTP error from remote mail server after RCPT TO:: host 127.0.0.1 [127.0.0.1]: 450 LATER diff --git a/test/scripts/0000-Basic/0215 b/test/scripts/0000-Basic/0215 index ab108bc87..47f1f1cc8 100644 --- a/test/scripts/0000-Basic/0215 +++ b/test/scripts/0000-Basic/0215 @@ -189,4 +189,34 @@ QUIT exim -odi -DIGNORE_QUOTA=true userxx userxy userxz This is a test message. **** +# Tests for authenticated_sender forcing: this one doesn't do it +server PORT_S +220 ESMTP +LHLO +250 OK +MAIL FROM: +250 Sender OK +RCPT TO: +450 LATER +QUIT +250 OK +**** +exim -odi -DAUTHS=authenticated_sender=xxx@yyy userx +Another test message. +**** +# Tests for authenticated_sender forcing: this one does it +server PORT_S +220 ESMTP +LHLO +250 OK +MAIL FROM: +250 Sender OK +RCPT TO: +450 LATER +QUIT +250 OK +**** +exim -odi -DAUTHS=authenticated_sender=xxx@yyy -DAUTHF=authenticated_sender_force userx +Another test message. +**** no_msglog_check diff --git a/test/stdout/0215 b/test/stdout/0215 index a562016e0..d6d06cfe6 100644 --- a/test/stdout/0215 +++ b/test/stdout/0215 @@ -217,3 +217,27 @@ This is a test message. QUIT 250 OK End of script +Listening on port 1224 ... +Connection request from [127.0.0.1] +220 ESMTP +LHLO myhost.test.ex +250 OK +MAIL FROM: +250 Sender OK +RCPT TO: +450 LATER +QUIT +250 OK +End of script +Listening on port 1224 ... +Connection request from [127.0.0.1] +220 ESMTP +LHLO myhost.test.ex +250 OK +MAIL FROM: AUTH=xxx@yyy +250 Sender OK +RCPT TO: +450 LATER +QUIT +250 OK +End of script -- cgit v1.2.3