TLS: on Linux when sockopt TCP_FASTOPEN_CONNECT is available, use TFO for TLS-on...
[users/heiko/exim.git] / test / confs / 1150
1 # Exim test configuration 1150
2
3 SERVER =
4
5 .include DIR/aux-var/tls_conf_prefix
6
7 primary_hostname = myhost.test.ex
8
9
10 # ----- Main settings -----
11
12 domainlist local_domains = test.ex : *.test.ex
13
14 acl_smtp_rcpt = check_recipient
15 queue_only
16 queue_run_in_order
17 remote_max_parallel = 1
18
19 tls_advertise_hosts = *
20 tls_certificate = DIR/aux-fixed/cert1
21
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   helo_data = helo.data.changed
65   tls_verify_certificates = DIR/aux-fixed/cert1
66   tls_verify_cert_hostnames =
67
68 send_to_server2:
69   driver = smtp
70   allow_localhost
71   hosts = HOSTIPV4
72   port = PORT_D
73   hosts_try_fastopen =  :
74   tls_verify_certificates = DIR/aux-fixed/cert1
75   tls_verify_cert_hostnames =
76
77
78 # ----- Retry -----
79
80
81 begin retry
82
83 * * F,5d,10s
84
85
86 # End