Add tls_verify_hosts and tls_try_verify_hosts to smtp transport, GnuTLS.
[exim.git] / test / confs / 5601
CommitLineData
f5d78688
JH
1# Exim test configuration 5601
2# OCSP stapling, client
3
4SERVER =
5
6exim_path = EXIM_PATH
7host_lookup_order = bydns
8primary_hostname = server1.example.com
9rfc1413_query_timeout = 0s
10spool_directory = DIR/spool
11log_file_path = DIR/spool/log/SERVER%slog
12gecos_pattern = ""
13gecos_name = CALLER_NAME
14
15
16# ----- Main settings -----
17
18domainlist local_domains = test.ex : *.test.ex
19
20acl_smtp_rcpt = check_recipient
21log_selector = +tls_peerdn
22remote_max_parallel = 1
23
24tls_advertise_hosts = *
25
26# Set certificate only if server
27
28tls_certificate = ${if eq {SERVER}{server}\
29{DIR/aux-fixed/exim-ca/example.com/server1.example.com/server1.example.com.chain.pem}\
30fail\
31}
32
33#{DIR/aux-fixed/exim-ca/example.com/CA/CA.pem}\
34
35tls_privatekey = ${if eq {SERVER}{server}\
36{DIR/aux-fixed/exim-ca/example.com/server1.example.com/server1.example.com.unlocked.key}\
37fail}
38
39tls_ocsp_file = OCSP
40
41
42# ------ ACL ------
43
44begin acl
45
46check_recipient:
47 accept domains = +local_domains
48 deny message = relay not permitted
49
50
51# ----- Routers -----
52
53begin routers
54
55client:
56 driver = accept
57 condition = ${if eq {SERVER}{server}{no}{yes}}
58 retry_use_local_part
59 transport = send_to_server${if eq{$local_part}{nostaple}{1} \
60 {${if eq{$local_part}{smtps} {3}{2}}} \
61 }
62
63server:
64 driver = redirect
65 data = :blackhole:
66 #retry_use_local_part
67 #transport = local_delivery
68
69
70# ----- Transports -----
71
72begin transports
73
74local_delivery:
75 driver = appendfile
76 file = DIR/test-mail/$local_part
77 headers_add = TLS: cipher=$tls_cipher peerdn=$tls_peerdn
78 user = CALLER
79
80send_to_server1:
81 driver = smtp
82 allow_localhost
83 hosts = HOSTIPV4
84 port = PORT_D
85 tls_verify_certificates = DIR/aux-fixed/exim-ca/example.com/CA/CA.pem
86 hosts_require_tls = *
87# note no ocsp here
88
89send_to_server2:
90 driver = smtp
91 allow_localhost
92 hosts = 127.0.0.1
93 port = PORT_D
94 helo_data = helo.data.changed
95 #tls_verify_certificates = DIR/aux-fixed/exim-ca/example.com/server1.example.com/ca_chain.pem
96 tls_verify_certificates = DIR/aux-fixed/exim-ca/example.com/CA/CA.pem
97 hosts_require_tls = *
98 hosts_require_ocsp = *
99
100send_to_server3:
101 driver = smtp
102 allow_localhost
103 hosts = 127.0.0.1
104 port = PORT_D
105 helo_data = helo.data.changed
106 #tls_verify_certificates = DIR/aux-fixed/exim-ca/example.com/server1.example.com/ca_chain.pem
107 tls_verify_certificates = DIR/aux-fixed/exim-ca/example.com/CA/CA.pem
108 protocol = smtps
109 hosts_require_tls = *
110 hosts_require_ocsp = *
111
112
113# ----- Retry -----
114
115
116begin retry
117
118* * F,5d,1s
119
120
121# End