Testsuite: testcase for -bP
authorJeremy Harris <jgh146exb@wizmail.org>
Sun, 27 Dec 2015 14:25:39 +0000 (14:25 +0000)
committerJeremy Harris <jgh146exb@wizmail.org>
Sun, 27 Dec 2015 14:26:39 +0000 (14:26 +0000)
test/confs/0572 [new symlink]
test/confs/4020
test/scripts/0000-Basic/0572 [new file with mode: 0644]
test/stdout/0572 [new file with mode: 0644]

diff --git a/test/confs/0572 b/test/confs/0572
new file mode 120000 (symlink)
index 0000000..4af051c
--- /dev/null
@@ -0,0 +1 @@
+4020
\ No newline at end of file
index 794272e..acc4477 100644 (file)
@@ -3,7 +3,7 @@
 OPT =
 
 exim_path = EXIM_PATH
-host_lookup_order = bydns
+hide host_lookup_order = bydns
 primary_hostname = myhost.test.ex
 spool_directory = DIR/spool
 log_file_path = DIR/spool/log/%slog
@@ -40,7 +40,7 @@ my_smtp:
   driver = smtp
   interface = HOSTIPV4
   port = PORT_S
-  socks_proxy = 127.0.0.1 port=PORT_D OPT
+  hide socks_proxy = 127.0.0.1 port=PORT_D OPT
   debug_print = transport_name <$transport_name>
 
 
diff --git a/test/scripts/0000-Basic/0572 b/test/scripts/0000-Basic/0572
new file mode 100644 (file)
index 0000000..3525333
--- /dev/null
@@ -0,0 +1,27 @@
+# -bP
+#
+# Ought to test a non-priv user, checking "hide", but
+# the testsuite cannot do that...
+#
+exim -bP spool_directory
+****
+perl -e 'print "\n";'
+****
+#
+exim -bP host_lookup_order
+****
+perl -e 'print "\n";'
+****
+#
+exim -bP +local_domains
+****
+perl -e 'print "\n";'
+****
+#
+exim -bP transport my_smtp
+****
+perl -e 'print "\n";'
+****
+#
+exim -bP config
+****
diff --git a/test/stdout/0572 b/test/stdout/0572
new file mode 100644 (file)
index 0000000..ec427ae
--- /dev/null
@@ -0,0 +1,133 @@
+spool_directory = TESTSUITE/spool
+
+host_lookup_order = bydns
+
+domainlist local_domains = test.ex : *.test.ex
+
+no_body_only
+current_directory = 
+debug_print = transport_name <$transport_name>
+no_delivery_date_add
+no_disable_logging
+driver = smtp
+no_envelope_to_add
+event_action = 
+group = 
+headers_add = 
+no_headers_only
+headers_remove = 
+headers_rewrite = 
+home_directory = 
+no_initgroups
+max_parallel = 
+message_size_limit = 
+no_rcpt_include_affixes
+no_retry_use_local_part
+return_path = 
+no_return_path_add
+shadow_condition = 
+shadow_transport = 
+transport_filter = 
+transport_filter_timeout = 5m
+user = 
+address_retry_include_sender
+no_allow_localhost
+authenticated_sender = 
+no_authenticated_sender_force
+command_timeout = 5m
+connect_timeout = 5m
+connection_max_messages = 500
+data_timeout = 5m
+delay_after_cutoff
+dkim_canon = 
+dkim_domain = 
+dkim_private_key = 
+dkim_selector = 
+dkim_sign_headers = 
+dkim_strict = 
+dns_qualify_single
+no_dns_search_parents
+dnssec_request_domains = 
+dnssec_require_domains = 
+dscp = 
+fallback_hosts = 
+final_timeout = 10m
+no_gethostbyname
+gnutls_require_kx = 
+gnutls_require_mac = 
+gnutls_require_protocols = 
+helo_data = $primary_hostname
+hosts = 
+hosts_avoid_esmtp = 
+hosts_avoid_pipelining = 
+hosts_avoid_tls = 
+hosts_max_try = 5
+hosts_max_try_hardlimit = 50
+hosts_nopass_tls = 
+no_hosts_override
+no_hosts_randomize
+hosts_request_ocsp = *
+hosts_require_auth = 
+hosts_require_dane = 
+hosts_require_ocsp = 
+hosts_require_tls = 
+hosts_try_auth = 
+hosts_try_dane = 
+hosts_try_prdr = *
+hosts_verify_avoid_tls = 
+interface = ip4.ip4.ip4.ip4
+keepalive
+no_lmtp_ignore_quota
+max_rcpt = 100
+multi_domain
+port = 1224
+protocol = smtp
+retry_include_ip_address
+serialize_hosts = 
+size_addition = 1024
+socks_proxy = 127.0.0.1 port=1225
+tls_certificate = 
+tls_crl = 
+tls_dh_min_bits = 1024
+tls_privatekey = 
+tls_require_ciphers = 
+tls_sni = 
+tls_tempfail_tryclear
+tls_try_verify_hosts = *
+tls_verify_cert_hostnames = *
+tls_verify_certificates = system
+tls_verify_hosts = 
+
+# Exim Configuration (X)
+# 1 "TESTSUITE/test-config"
+OPT =
+exim_path = TESTSUITE/eximdir/exim
+hide host_lookup_order = bydns
+primary_hostname = myhost.test.ex
+spool_directory = TESTSUITE/spool
+log_file_path = TESTSUITE/spool/log/%slog
+gecos_pattern = ""
+gecos_name = CALLER_NAME
+tls_advertise_hosts =
+log_selector = +proxy +outgoing_port
+domainlist local_domains = test.ex : *.test.ex
+acl_smtp_rcpt = accept
+
+begin routers
+
+  my_main_router:
+    driver = manualroute
+    route_list = * 127.0.0.1
+    self = send
+    transport = my_smtp
+    debug_print = router_name <$router_name>
+    no_more
+
+begin transports
+
+  my_smtp:
+    driver = smtp
+    interface = ip4.ip4.ip4.ip4
+    port = 1224
+    hide socks_proxy = 127.0.0.1 port=1225
+    debug_print = transport_name <$transport_name>