Packagers: Debian
[exim.git] / test / confs / 2008
1 # Exim test configuration 2008
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
15 # ----- Main settings -----
16
17 domainlist local_domains = test.ex : *.test.ex
18
19 acl_smtp_rcpt = check_recipient
20 log_selector = +tls_peerdn
21 queue_only
22 queue_run_in_order
23 remote_max_parallel = 1
24
25 tls_advertise_hosts = *
26
27 # Set certificate only if server
28
29 tls_certificate = ${if eq {SERVER}{server}{DIR/aux-fixed/cert1}fail}
30
31
32 # ------ ACL ------
33
34 begin acl
35
36 check_recipient:
37   accept  domains = +local_domains
38   deny    message = relay not permitted
39
40
41 # ----- Routers -----
42
43 begin routers
44
45 client:
46   driver = accept
47   condition = ${if eq {SERVER}{server}{no}{yes}}
48   retry_use_local_part
49   transport = send_to_server${if eq{$local_part}{abcd}{2}{1}}
50
51 server:
52   driver = accept
53   retry_use_local_part
54   transport = local_delivery
55
56
57 # ----- Transports -----
58
59 begin transports
60
61 local_delivery:
62   driver = appendfile
63   file = DIR/test-mail/$local_part
64   headers_add = TLS: cipher=$tls_cipher peerdn=$tls_peerdn
65   user = CALLER
66
67 send_to_server1:
68   driver = smtp
69   allow_localhost
70   hosts = 127.0.0.1
71   port = PORT_D
72   helo_data = helo.data.changed
73
74 send_to_server2:
75   driver = smtp
76   allow_localhost
77   hosts = HOSTIPV4
78   port = PORT_D
79
80
81 # ----- Retry -----
82
83
84 begin retry
85
86 * * F,5d,10s
87
88
89 # End