Docs: use verified version of local_part variable in router require_files example
[users/heiko/exim.git] / test / confs / 2117
1 # Exim test configuration 2117
2
3 SERVER =
4
5 .include DIR/aux-var/tls_conf_prefix
6
7 primary_hostname = myhost.test.ex
8
9 # ----- Main settings -----
10
11 acl_smtp_rcpt = accept
12
13 log_selector = +tls_peerdn
14
15 queue_only
16 queue_run_in_order
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 tls_privatekey = ${if eq {SERVER}{server}{DIR/aux-fixed/cert1}fail}
24
25
26 # ----- Routers -----
27
28 begin routers
29
30 client:
31   driver = accept
32   condition = ${if eq {SERVER}{server}{no}{yes}}
33   retry_use_local_part
34   transport = send_to_server
35
36 server:
37   driver = accept
38   retry_use_local_part
39   transport = local_delivery
40
41
42 # ----- Transports -----
43
44 begin transports
45
46 local_delivery:
47   driver = appendfile
48   file = DIR/test-mail/${bless:$local_part}
49   headers_add = TLS: cipher=$tls_cipher peerdn=$tls_peerdn
50   user = CALLER
51
52 send_to_server:
53   driver = smtp
54   allow_localhost
55   hosts = 127.0.0.1
56   port = PORT_D
57   hosts_try_fastopen = :
58   tls_try_verify_hosts = :
59   hosts_nopass_tls = *
60
61
62 # ----- Retry -----
63
64
65 begin retry
66
67 * * F,5d,10s
68
69
70 # End