From 33d73e3b7a0201f4af19e8217ced618e68eaf1fb Mon Sep 17 00:00:00 2001 From: Philip Hazel Date: Thu, 27 Jul 2006 10:13:52 +0000 Subject: Made -oMaa and -oMt work with -bh and -bs to pretend the connection is authenticated or an ident call has been made. Suppress the default values for $authenticated_id and $authenticated_sender (but permit -oMai and -oMas) when testing with -bh. --- test/stderr/0537 | 167 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 167 insertions(+) create mode 100644 test/stderr/0537 (limited to 'test/stderr/0537') diff --git a/test/stderr/0537 b/test/stderr/0537 new file mode 100644 index 000000000..a4c766269 --- /dev/null +++ b/test/stderr/0537 @@ -0,0 +1,167 @@ +>>> host in hosts_connection_nolog? no (option unset) +>>> host in host_lookup? no (option unset) +>>> host in host_reject_connection? no (option unset) +>>> host in sender_unqualified_hosts? no (option unset) +>>> host in recipient_unqualified_hosts? no (option unset) +>>> host in helo_verify_hosts? no (option unset) +>>> host in helo_try_verify_hosts? no (option unset) +>>> host in helo_accept_junk_hosts? no (option unset) +>>> using ACL "connect" +>>> processing "accept" +>>> check acl = log +>>> using ACL "log" +>>> processing "accept" +>>> check logwrite = =========================================================== +LOG: =========================================================== +>>> check logwrite = sender_ip_address=[$sender_host_address] +>>> = sender_ip_address=[1.2.3.4] +LOG: sender_ip_address=[1.2.3.4] +>>> check logwrite = sender_host_authenticated=$sender_host_authenticated +>>> = sender_host_authenticated= +LOG: sender_host_authenticated= +>>> check logwrite = authenticated_id=$authenticated_id +>>> = authenticated_id= +LOG: authenticated_id= +>>> check logwrite = authenticated_sender=$authenticated_sender +>>> = authenticated_sender= +LOG: authenticated_sender= +>>> check logwrite = interface_address=[$interface_address] +>>> = interface_address=[] +LOG: interface_address=[] +>>> check logwrite = received_protocol=$received_protocol +>>> = received_protocol=smtp +LOG: received_protocol=smtp +>>> looking up host name for 1.2.3.4 +LOG: no host name found for IP address 1.2.3.4 +>>> check logwrite = sender_host_name=$sender_host_name +>>> = sender_host_name= +LOG: sender_host_name= +>>> check logwrite = sender_ident=$sender_ident +>>> = sender_ident= +LOG: sender_ident= +>>> accept: condition test succeeded +>>> accept: condition test succeeded +>>> host in hosts_connection_nolog? no (option unset) +>>> host in host_lookup? no (option unset) +>>> host in host_reject_connection? no (option unset) +>>> host in sender_unqualified_hosts? no (option unset) +>>> host in recipient_unqualified_hosts? no (option unset) +>>> host in helo_verify_hosts? no (option unset) +>>> host in helo_try_verify_hosts? no (option unset) +>>> host in helo_accept_junk_hosts? no (option unset) +>>> using ACL "connect" +>>> processing "accept" +>>> check acl = log +>>> using ACL "log" +>>> processing "accept" +>>> check logwrite = =========================================================== +LOG: =========================================================== +>>> check logwrite = sender_ip_address=[$sender_host_address] +>>> = sender_ip_address=[5.6.7.8] +LOG: sender_ip_address=[5.6.7.8] +>>> check logwrite = sender_host_authenticated=$sender_host_authenticated +>>> = sender_host_authenticated=authname +LOG: sender_host_authenticated=authname +>>> check logwrite = authenticated_id=$authenticated_id +>>> = authenticated_id=authid +LOG: authenticated_id=authid +>>> check logwrite = authenticated_sender=$authenticated_sender +>>> = authenticated_sender=authsender +LOG: authenticated_sender=authsender +>>> check logwrite = interface_address=[$interface_address] +>>> = interface_address=[9.10.11.12] +LOG: interface_address=[9.10.11.12] +>>> check logwrite = received_protocol=$received_protocol +>>> = received_protocol=smtp +LOG: received_protocol=smtp +>>> check logwrite = sender_host_name=$sender_host_name +>>> = sender_host_name=hostname +LOG: sender_host_name=hostname +>>> check logwrite = sender_ident=$sender_ident +>>> = sender_ident=ident +LOG: sender_ident=ident +>>> accept: condition test succeeded +>>> accept: condition test succeeded +>>> host in pipelining_advertise_hosts? yes (matched "*") +>>> using ACL "mail" +>>> processing "accept" +>>> check acl = log +>>> using ACL "log" +>>> processing "accept" +>>> check logwrite = =========================================================== +LOG: =========================================================== +>>> check logwrite = sender_ip_address=[$sender_host_address] +>>> = sender_ip_address=[5.6.7.8] +LOG: sender_ip_address=[5.6.7.8] +>>> check logwrite = sender_host_authenticated=$sender_host_authenticated +>>> = sender_host_authenticated=authname +LOG: sender_host_authenticated=authname +>>> check logwrite = authenticated_id=$authenticated_id +>>> = authenticated_id=authid +LOG: authenticated_id=authid +>>> check logwrite = authenticated_sender=$authenticated_sender +>>> = authenticated_sender= +LOG: authenticated_sender= +>>> check logwrite = interface_address=[$interface_address] +>>> = interface_address=[9.10.11.12] +LOG: interface_address=[9.10.11.12] +>>> check logwrite = received_protocol=$received_protocol +>>> = received_protocol=esmtpa +LOG: received_protocol=esmtpa +>>> check logwrite = sender_host_name=$sender_host_name +>>> = sender_host_name=hostname +LOG: sender_host_name=hostname +>>> check logwrite = sender_ident=$sender_ident +>>> = sender_ident=ident +LOG: sender_ident=ident +>>> accept: condition test succeeded +>>> check acl = auth +>>> using ACL "auth" +>>> processing "accept" +>>> check authenticated = * +>>> authname in "*"? yes (matched "*") +>>> check logwrite = +++ host is authenticated +++ +LOG: +++ host is authenticated +++ +>>> accept: condition test succeeded +>>> accept: condition test succeeded +>>> using ACL "mail" +>>> processing "accept" +>>> check acl = log +>>> using ACL "log" +>>> processing "accept" +>>> check logwrite = =========================================================== +LOG: =========================================================== +>>> check logwrite = sender_ip_address=[$sender_host_address] +>>> = sender_ip_address=[5.6.7.8] +LOG: sender_ip_address=[5.6.7.8] +>>> check logwrite = sender_host_authenticated=$sender_host_authenticated +>>> = sender_host_authenticated=authname +LOG: sender_host_authenticated=authname +>>> check logwrite = authenticated_id=$authenticated_id +>>> = authenticated_id=authid +LOG: authenticated_id=authid +>>> check logwrite = authenticated_sender=$authenticated_sender +>>> = authenticated_sender= +LOG: authenticated_sender= +>>> check logwrite = interface_address=[$interface_address] +>>> = interface_address=[9.10.11.12] +LOG: interface_address=[9.10.11.12] +>>> check logwrite = received_protocol=$received_protocol +>>> = received_protocol=esmtpa +LOG: received_protocol=esmtpa +>>> check logwrite = sender_host_name=$sender_host_name +>>> = sender_host_name=hostname +LOG: sender_host_name=hostname +>>> check logwrite = sender_ident=$sender_ident +>>> = sender_ident=ident +LOG: sender_ident=ident +>>> accept: condition test succeeded +>>> check acl = auth +>>> using ACL "auth" +>>> processing "accept" +>>> check authenticated = * +>>> authname in "*"? yes (matched "*") +>>> check logwrite = +++ host is authenticated +++ +LOG: +++ host is authenticated +++ +>>> accept: condition test succeeded +>>> accept: condition test succeeded -- cgit v1.2.1