Testsuite: track newer GnuTLS behaviour
[exim.git] / test / confs / 2107
1 # Exim test configuration 2107
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 log_selector = +smtp_confirmation+tls_peerdn
14
15 queue_only
16 queue_run_in_order
17
18 tls_advertise_hosts = *
19 tls_require_ciphers = AES256-SHA
20
21 # Set certificate only if server
22
23 tls_certificate = ${if eq {SERVER}{server}{DIR/aux-fixed/cert1}fail}
24 tls_privatekey = ${if eq {SERVER}{server}{DIR/aux-fixed/cert1}fail}
25
26
27 # ----- Routers -----
28
29 begin routers
30
31 client:
32   driver = accept
33   condition = ${if eq {SERVER}{server}{no}{yes}}
34   retry_use_local_part
35   transport = send_to_server${if eq{$local_part}{abcd}{2}{1}}
36
37 server:
38   driver = accept
39   retry_use_local_part
40   transport = local_delivery
41
42
43 # ----- Transports -----
44
45 begin transports
46
47 local_delivery:
48   driver = appendfile
49   file = DIR/test-mail/$local_part
50   headers_add = TLS: cipher=$tls_cipher peerdn=$tls_peerdn
51   user = CALLER
52
53 send_to_server1:
54   driver = smtp
55   allow_localhost
56   hosts = 127.0.0.1
57   port = PORT_D
58
59 send_to_server2:
60   driver = smtp
61   allow_localhost
62   hosts = HOSTIPV4
63   port = PORT_D
64
65 # End