summaryrefslogtreecommitdiff
path: root/test/confs/2035
diff options
context:
space:
mode:
authorJeremy Harris <jgh146exb@wizmail.org>2017-03-21 16:16:38 +0000
committerJeremy Harris <jgh146exb@wizmail.org>2017-03-21 17:23:30 +0000
commit57cc27852af9019c0c423bcfde0165e698a0ce54 (patch)
treecb3792034e90a7d8336e3493f1c931f349e39ebb /test/confs/2035
parent5013d912e961203f2ab2d5f64be90255cda81b80 (diff)
Callouts: a "hold" option for receipient-verify, which keeps the connection open both for
further recipients and for eventual delivery.
Diffstat (limited to 'test/confs/2035')
-rw-r--r--test/confs/203584
1 files changed, 84 insertions, 0 deletions
diff --git a/test/confs/2035 b/test/confs/2035
new file mode 100644
index 000000000..a10dc53e9
--- /dev/null
+++ b/test/confs/2035
@@ -0,0 +1,84 @@
+# Exim test configuration 2035
+
+OPT =
+
+.include DIR/aux-var/tls_conf_prefix
+
+.ifdef SERVER
+tls_certificate = DIR/aux-fixed/exim-ca/example.com/server1.example.com/server1.example.com.chain.pem
+tls_privatekey = DIR/aux-fixed/exim-ca/example.com/server1.example.com/server1.example.com.unlocked.key
+.else
+tls_advertise_hosts =
+.endif
+
+primary_hostname = myhost.test.ex
+
+# ----- Main settings -----
+
+acl_smtp_rcpt = check_rcpt
+acl_smtp_data = check_data
+
+log_selector = +received_recipients +outgoing_port
+OPT
+
+# ----- ACLs -----
+
+begin acl
+
+check_rcpt:
+ accept
+ condition = ${if or { {!eq {SERVER}{server}} {= {$received_port}{PORT_S}} }}
+ verify = recipient/callout=use_sender,hold
+ defer condition = ${if eq {SERVER}{server}}
+ local_parts = rcpt_defer
+ accept
+
+check_data:
+ warn logwrite = $message_exim_id received on port $received_port
+ defer condition = ${if eq {SERVER}{server}}
+ condition = ${if eq {data_defer}{${local_part:$recipients}}}
+ accept
+
+# ----- Routers -----
+
+begin routers
+
+.ifdef SERVER
+
+target:
+ driver = redirect
+ condition = ${if = {$received_port}{PORT_D}}
+ data = :blackhole:
+
+dut:
+ driver = manualroute
+ route_list = * 127.0.0.1
+ self = send
+ transport = t1
+
+.else
+
+client:
+ driver = manualroute
+ route_list = * 127.0.0.1
+ self = send
+ transport = t1
+ errors_to = ""
+
+.endif
+
+
+begin transports
+
+t1:
+ driver = smtp
+ port = PORT_D
+ tls_verify_certificates = DIR/aux-fixed/exim-ca/example.com/CA/CA.pem
+ tls_verify_cert_hostnames = :
+
+
+# ----- Retry -----
+begin retry
+
+* * F,5d,10s
+# End