summaryrefslogtreecommitdiff
path: root/test/confs/4020
diff options
context:
space:
mode:
authorJeremy Harris <jgh146exb@wizmail.org>2021-04-07 21:34:42 +0100
committerJeremy Harris <jgh146exb@wizmail.org>2021-04-07 21:34:42 +0100
commit2081aac24b67f3f3f34389aadc06354abcad0cad (patch)
tree7a44809cf11d053d00d10741b4f46dadfb92d464 /test/confs/4020
parentd901e231acd1917d24b688cbd7823efc2bed45c4 (diff)
Pass proxy addresses/ports to continued trasnports. Bug 2710
Diffstat (limited to 'test/confs/4020')
-rw-r--r--test/confs/402011
1 files changed, 10 insertions, 1 deletions
diff --git a/test/confs/4020 b/test/confs/4020
index 05c95a571..dc0db460e 100644
--- a/test/confs/4020
+++ b/test/confs/4020
@@ -5,6 +5,7 @@ OPT =
.include DIR/aux-var/std_conf_prefix
primary_hostname = myhost.test.ex
+queue_run_in_order
# ----- Main settings -----
@@ -14,6 +15,13 @@ domainlist local_domains = test.ex : *.test.ex
acl_smtp_rcpt = accept
+# ----- ACL -----
+
+begin acl
+
+logger:
+ accept logwrite = pla $proxy_local_address plp $proxy_local_port pea $proxy_external_address pep $proxy_external_port
+
# ----- Routers -----
begin routers
@@ -35,9 +43,10 @@ my_smtp:
driver = smtp
interface = HOSTIPV4
port = PORT_S
- hide socks_proxy = 127.0.0.1 port=PORT_D OPT
+ hide socks_proxy = HOSTIPV4 port=PORT_D OPT
hosts_try_fastopen = ${if eq {$local_part}{user_tfo} {*}}
debug_print = transport_name <$transport_name>
+ event_action = ${if eq {smtp:connect}{$event_name} {${acl {logger}}} {}}
# End