OpenSSL: fix configuration of older TLS protocol versions
[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 .ifdef _HAVE_OPENSSL
28 tls_require_ciphers = ALL:@SECLEVEL=0
29 openssl_options = -no_sslv3 -no_tlsv1_1 -no_tlsv1
30 .endif
31
32 # ------ ACL ------
33
34 begin acl
35
36 # ----- Routers -----
37
38 begin routers
39
40 client:
41   driver = accept
42   condition = ${if eq {SERVER}{server} {no}{yes}}
43   transport = send_to_server
44
45 server:
46   driver = redirect
47   data = :blackhole:
48
49
50 # ----- Transports -----
51
52 begin transports
53
54 send_to_server:
55   driver =      smtp
56   allow_localhost
57   hosts =       HOSTIPV4
58   port =        PORT_D
59   tls_verify_certificates = DIR/aux-fixed/cert1
60   tls_verify_cert_hostnames = :
61
62   hosts_require_tls = *
63   hosts_try_fastopen =  :
64   tls_alpn =    CONTROL
65 .ifdef REQUIRE
66   hosts_require_alpn = *
67 .endif
68
69 # ----- Retry -----
70
71
72 begin retry
73
74 * * F,5d,10s
75
76
77 # End