summaryrefslogtreecommitdiff
path: root/test/confs/1153
diff options
context:
space:
mode:
authorJeremy Harris <jgh146exb@wizmail.org>2021-01-20 20:44:21 +0000
committerJeremy Harris <jgh146exb@wizmail.org>2021-01-21 12:20:27 +0000
commitc2decce2cb31c21601da988ef6ef02bec9073bdd (patch)
treee6c274c6009a94bcadd384954313d905feeea1c8 /test/confs/1153
parent90e0b2485d19eea5e93b5adad2fbcce5fc48a237 (diff)
Testsuite: TLS client testcase consolidation
Diffstat (limited to 'test/confs/1153')
-rw-r--r--test/confs/115361
1 files changed, 61 insertions, 0 deletions
diff --git a/test/confs/1153 b/test/confs/1153
new file mode 100644
index 000000000..13e2c4097
--- /dev/null
+++ b/test/confs/1153
@@ -0,0 +1,61 @@
+# Exim test configuration 1153
+
+SERVER =
+
+.include DIR/aux-var/tls_conf_prefix
+
+primary_hostname = myhost.test.ex
+
+# ----- Main settings -----
+
+acl_smtp_rcpt = check_recipient
+hostlist tls_hosts = 127.0.0.1
+
+queue_only
+queue_run_in_order
+
+tls_advertise_hosts = *
+
+# Set certificate only if server
+
+tls_certificate = ${if eq {SERVER}{server}{DIR/aux-fixed/cert1}fail}
+tls_privatekey = ${if eq {SERVER}{server}{DIR/aux-fixed/cert1}fail}
+
+
+
+# ----- ACL -----
+
+begin acl
+
+check_recipient:
+ deny hosts = +tls_hosts
+ message = encryption required
+ !encrypted = *
+ accept domains = +local_domains
+ deny message = relay not permitted
+
+
+# ----- Routers -----
+
+begin routers
+
+client:
+ driver = accept
+ condition = ${if eq {SERVER}{server}{no}{yes}}
+ retry_use_local_part
+ transport = send_to_server
+
+
+# ----- Transports -----
+
+begin transports
+
+send_to_server:
+ driver = smtp
+ allow_localhost
+ hosts = 127.0.0.1
+ port = PORT_D
+ hosts_try_fastopen = :
+ hosts_avoid_tls = 127.0.0.1
+
+# End