Add variables for wildcard portion of local-part affix. Bug 281
[exim.git] / test / confs / 2007
CommitLineData
afda344b
PH
1# Exim test configuration 2007
2
3SERVER =
4
d4dc049f
JH
5.include DIR/aux-var/tls_conf_prefix
6
afda344b 7primary_hostname = myhost.test.ex
afda344b
PH
8
9# ----- Main settings -----
10
11acl_smtp_rcpt = accept
12
13log_selector = +smtp_confirmation+tls_peerdn
14
15queue_only
16queue_run_in_order
17
18tls_advertise_hosts = *
925ac8e4 19tls_require_ciphers = NORMAL:!DHE-RSA:!DHE-DSS:!ECDHE-RSA:!ECDHE-ECDSA:!ECDHE-PSK
afda344b
PH
20
21# Set certificate only if server
22
23tls_certificate = ${if eq {SERVER}{server}{DIR/aux-fixed/cert1}fail}
24tls_privatekey = ${if eq {SERVER}{server}{DIR/aux-fixed/cert1}fail}
25
26
27# ----- Routers -----
28
29begin routers
30
31client:
32 driver = accept
33 condition = ${if eq {SERVER}{server}{no}{yes}}
34 retry_use_local_part
35 transport = send_to_server${if eq{$local_part}{abcd}{2}{1}}
36
37server:
38 driver = accept
39 retry_use_local_part
40 transport = local_delivery
41
42
43# ----- Transports -----
44
45begin transports
46
47local_delivery:
48 driver = appendfile
0d2e392e 49 file = DIR/test-mail/${bless:$local_part}
afda344b
PH
50 headers_add = TLS: cipher=$tls_cipher peerdn=$tls_peerdn
51 user = CALLER
52
53send_to_server1:
54 driver = smtp
55 allow_localhost
56 hosts = 127.0.0.1
57 port = PORT_D
277b9979 58 hosts_try_fastopen = :
afda344b
PH
59
60send_to_server2:
61 driver = smtp
62 allow_localhost
63 hosts = HOSTIPV4
64 port = PORT_D
277b9979 65 hosts_try_fastopen = :
afda344b
PH
66
67# End