Testsuite: case for TLS client tls-on-connect
[exim.git] / test / confs / 1160
1 # Exim test configuration 2160
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 domainlist local_domains = test.ex : *.test.ex
12
13 acl_smtp_rcpt = check_recipient
14 queue_only
15 queue_run_in_order
16 remote_max_parallel = 1
17
18 tls_advertise_hosts = *
19 tls_on_connect_ports = PORT_D
20
21 tls_certificate = DIR/aux-fixed/cert1
22
23 # ------ ACL ------
24
25 begin acl
26
27 check_recipient:
28   accept  domains = +local_domains
29   deny    message = relay not permitted
30
31
32 # ----- Routers -----
33
34 begin routers
35
36 client:
37   driver = accept
38   condition = ${if eq {SERVER}{server}{no}{yes}}
39   retry_use_local_part
40   transport = send_to_server${if eq{$local_part}{abcd}{2}{1}}
41
42 server:
43   driver = accept
44   retry_use_local_part
45   transport = local_delivery
46
47
48 # ----- Transports -----
49
50 begin transports
51
52 local_delivery:
53   driver = appendfile
54   file = DIR/test-mail/${bless:$local_part}
55   headers_add = TLS: cipher=$tls_cipher peerdn=$tls_peerdn
56   user = CALLER
57
58 send_to_server1:
59   driver = smtp
60   allow_localhost
61   hosts = 127.0.0.1
62   port = PORT_D
63   hosts_try_fastopen = :
64   protocol = smtps
65   tls_verify_certificates =     DIR/aux-fixed/cert1
66   tls_verify_cert_hostnames =   :
67   helo_data = helo.data.changed
68
69 send_to_server2:
70   driver = smtp
71   allow_localhost
72   hosts = HOSTIPV4
73   port = PORT_D
74   hosts_try_fastopen = :
75   protocol = smtps
76   tls_verify_certificates =     DIR/aux-fixed/cert1
77   tls_verify_cert_hostnames =   :
78
79
80 # ----- Retry -----
81
82
83 begin retry
84
85 * * F,5d,10s
86
87
88 # End