OpenSSL: in server, detect TCP RST from client after QUIT under SSL,
[users/heiko/exim.git] / test / confs / 2030
1 # Exim test configuration 2030
2 # SNI
3
4 SERVER =
5
6 .include DIR/aux-var/tls_conf_prefix
7
8 primary_hostname = myhost.test.ex
9
10 # ----- Main settings -----
11
12 domainlist local_domains = test.ex : *.test.ex
13
14 acl_smtp_rcpt = acl_log_sni
15 log_selector = +tls_peerdn +tls_sni
16 remote_max_parallel = 1
17
18 tls_advertise_hosts = *
19
20 # Set certificate only if server
21
22 tls_certificate = ${if eq {SERVER}{server}{DIR/aux-fixed/cert1}fail}
23
24
25 # ------ ACL ------
26
27 begin acl
28
29 acl_log_sni:
30   accept
31          logwrite = SNI <$tls_in_sni>
32
33 # ----- Routers -----
34
35 begin routers
36
37 client:
38   driver = accept
39   condition = ${if !eq {SERVER}{server}}
40   transport = send_to_server${if eq{$local_part}{abcd}{2}{1}}
41
42 server:
43   driver = redirect
44   data = :blackhole:
45
46
47 # ----- Transports -----
48
49 begin transports
50
51 send_to_server1:
52   driver = smtp
53   allow_localhost
54   hosts = HOSTIPV4
55   port = PORT_D
56   hosts_try_fastopen =  :
57   tls_sni = fred
58
59 send_to_server2:
60   driver = smtp
61   allow_localhost
62   hosts = HOSTIPV4
63   port = PORT_D
64   hosts_try_fastopen =  :
65
66
67 # ----- Retry -----
68
69
70 begin retry
71
72 * * F,5d,10s
73
74
75 # End