Testsuite: TLS server testcase consolidation
[users/heiko/exim.git] / test / confs / 1159
1 # Exim test configuration 1159
2
3 SERVER =
4
5 .include DIR/aux-var/tls_conf_prefix
6
7 primary_hostname = myhost.test.ex
8
9 # ----- Main settings -----
10
11 acl_smtp_rcpt = accept
12
13 queue_only
14 queue_run_in_order
15
16 tls_advertise_hosts = *
17 tls_certificate = DIR/aux-fixed/cert1
18
19
20 # ----- Routers -----
21
22 begin routers
23
24 client:
25   driver = accept
26   condition = ${if eq {SERVER}{server}{no}{yes}}
27   retry_use_local_part
28   transport = send_to_server
29
30 server:
31   driver = accept
32   retry_use_local_part
33   transport = local_delivery
34
35
36 # ----- Transports -----
37
38 begin transports
39
40 local_delivery:
41   driver = appendfile
42   file = DIR/test-mail/${bless:$local_part}
43   headers_add = TLS: cipher=$tls_cipher peerdn=$tls_peerdn
44   user = CALLER
45
46 send_to_server:
47   driver = smtp
48   allow_localhost
49   hosts = 127.0.0.1
50   port = PORT_D
51   hosts_try_fastopen = :
52   tls_verify_certificates = DIR/aux-fixed/cert1
53   tls_verify_cert_hostnames = :
54   hosts_nopass_tls = *
55
56
57 # ----- Retry -----
58
59
60 begin retry
61
62 * * F,5d,10s
63
64
65 # End