summaryrefslogtreecommitdiff
path: root/test/confs/5721
diff options
context:
space:
mode:
authorJeremy Harris <jgh146exb@wizmail.org>2022-01-03 16:08:37 +0000
committerJeremy Harris <jgh146exb@wizmail.org>2022-01-03 16:38:11 +0000
commitef2e5890df09193717f9d345ffaaa406e2d8aae7 (patch)
treeedc137cccf5d14c4c0b0f2ce34d95de99f18147b /test/confs/5721
parent299efa252e69a2bbf49cce670afa893663df9610 (diff)
TLS: event for daemon accept fail
Diffstat (limited to 'test/confs/5721')
-rw-r--r--test/confs/572134
1 files changed, 34 insertions, 0 deletions
diff --git a/test/confs/5721 b/test/confs/5721
new file mode 100644
index 000000000..d156b1bf5
--- /dev/null
+++ b/test/confs/5721
@@ -0,0 +1,34 @@
+# Exim test configuration 5721
+
+.include DIR/aux-var/tls_conf_prefix
+
+primary_hostname = myhost.test.ex
+
+# ----- Main settings -----
+
+acl_smtp_connect = accept logwrite = ACL conn
+acl_smtp_quit = accept logwrite = ACL quit
+acl_smtp_notquit = accept logwrite = ACL notquit
+
+tls_advertise_hosts = *
+tls_certificate = DIR/aux-fixed/cert1
+
+host_reject_connection = ${acl {hrc}}
+event_action = ${acl {tls_fail}}
+
+# ------ ACL ------
+
+begin acl
+
+hrc:
+ accept logwrite = eval host_reject_connection
+ # no mesage= hence host_reject_connection should be empty
+
+tls_fail:
+ warn logwrite = EV $event_name
+ accept condition = ${if eq {tls:fail:connect}{$event_name}}
+ logwrite = EVDATA: $event_data
+ accept
+
+
+# End