1 # Exim test configuration 3461
5 .include DIR/aux-var/tls_conf_prefix
7 primary_hostname = myhost.test.ex
9 # ----- Main settings -----
11 acl_smtp_rcpt = accept
13 log_selector = +tls_peerdn
18 smtp_accept_max_nonmail = 0
20 tls_advertise_hosts = *
22 # Set certificate only if server
24 tls_certificate = ${if eq {SERVER}{server}{DIR/aux-fixed/cert1}fail}
25 tls_privatekey = ${if eq {SERVER}{server}{DIR/aux-fixed/cert1}fail}
28 # ----- Authenticators -----
36 ${if and {{eq{$2}{userx}}{eq{$3}{secret}}}{yes}{no}}"
38 client_send = ^userx^secret
47 condition = ${if eq {SERVER}{server}{no}{yes}}
49 transport = send_to_server
54 transport = local_delivery
57 # ----- Transports -----
63 file = DIR/test-mail/$local_part
64 headers_add = TLS: cipher=$tls_cipher peerdn=$tls_peerdn
73 tls_try_verify_hosts = :