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