ALPN: feature macro
[exim.git] / test / confs / 1190
1 # Exim test configuration 1190
2 # ALPN
3
4 SERVER =
5 CONTROL =
6
7 .include DIR/aux-var/tls_conf_prefix
8
9 primary_hostname = myhost.test.ex
10
11 # ----- Main settings -----
12
13 domainlist local_domains = test.ex : *.test.ex
14
15 acl_smtp_rcpt = accept
16
17 tls_advertise_hosts = *
18 tls_certificate = DIR/aux-fixed/cert1
19
20 .ifdef STRICT
21 tls_alpn = STRICT
22 .endif
23 .ifdef REQUIRE
24 hosts_require_alpn = *
25 .endif
26
27
28 # ------ ACL ------
29
30 begin acl
31
32 # ----- Routers -----
33
34 begin routers
35
36 client:
37   driver = accept
38   condition = ${if eq {SERVER}{server} {no}{yes}}
39   transport = send_to_server
40
41 server:
42   driver = redirect
43   data = :blackhole:
44
45
46 # ----- Transports -----
47
48 begin transports
49
50 send_to_server:
51   driver =      smtp
52   allow_localhost
53   hosts =       HOSTIPV4
54   port =        PORT_D
55   tls_verify_certificates = DIR/aux-fixed/cert1
56   tls_verify_cert_hostnames = :
57
58   hosts_require_tls = *
59   hosts_try_fastopen =  :
60   tls_alpn =    CONTROL
61 .ifdef REQUIRE
62   hosts_require_alpn = *
63 .endif
64
65 # ----- Retry -----
66
67
68 begin retry
69
70 * * F,5d,10s
71
72
73 # End