Add the add_header modifier for use with all ACL verbs.
[users/jgh/exim.git] / test / confs / 2007
1 # Exim test configuration 2007
2
3 SERVER =
4
5 exim_path = EXIM_PATH
6 host_lookup_order = bydns
7 primary_hostname = myhost.test.ex
8 rfc1413_query_timeout = 0s
9 spool_directory = DIR/spool
10 log_file_path = DIR/spool/log/SERVER%slog
11 gecos_pattern = ""
12 gecos_name = CALLER_NAME
13
14 # ----- Main settings -----
15
16 acl_smtp_rcpt = accept
17
18 log_selector = +smtp_confirmation+tls_peerdn
19
20 queue_only
21 queue_run_in_order
22
23 tls_advertise_hosts = *
24
25 # Set certificate only if server
26
27 tls_certificate = ${if eq {SERVER}{server}{DIR/aux-fixed/cert1}fail}
28 tls_privatekey = ${if eq {SERVER}{server}{DIR/aux-fixed/cert1}fail}
29
30
31 # ----- Routers -----
32
33 begin routers
34
35 client:
36   driver = accept
37   condition = ${if eq {SERVER}{server}{no}{yes}}
38   retry_use_local_part
39   transport = send_to_server${if eq{$local_part}{abcd}{2}{1}}
40
41 server:
42   driver = accept
43   retry_use_local_part
44   transport = local_delivery
45
46
47 # ----- Transports -----
48
49 begin transports
50
51 local_delivery:
52   driver = appendfile
53   file = DIR/test-mail/$local_part
54   headers_add = TLS: cipher=$tls_cipher peerdn=$tls_peerdn
55   user = CALLER
56
57 send_to_server1:
58   driver = smtp
59   allow_localhost
60   hosts = 127.0.0.1
61   port = PORT_D
62
63 send_to_server2:
64   driver = smtp
65   allow_localhost
66   hosts = HOSTIPV4
67   port = PORT_D
68
69 # End