Fix CVE-2016-1531
[exim.git] / test / confs / 2009
1 # Exim test configuration 2009
2
3 SERVER =
4
5 exim_path = EXIM_PATH
6 keep_environment =
7 host_lookup_order = bydns
8 primary_hostname = myhost.test.ex
9 rfc1413_query_timeout = 0s
10 spool_directory = DIR/spool
11 log_file_path = DIR/spool/log/SERVER%slog
12 gecos_pattern = ""
13 gecos_name = CALLER_NAME
14
15 # ----- Main settings -----
16
17 acl_smtp_rcpt = check_recipient
18 hostlist tls_hosts = 127.0.0.1
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
32 # ----- ACL -----
33
34 begin acl
35
36 check_recipient:
37   deny    hosts = +tls_hosts
38           message = encryption required
39          !encrypted = *
40   accept  domains = +local_domains
41   deny    message = relay not permitted
42
43
44 # ----- Routers -----
45
46 begin routers
47
48 client:
49   driver = accept
50   condition = ${if eq {SERVER}{server}{no}{yes}}
51   retry_use_local_part
52   transport = send_to_server
53
54
55 # ----- Transports -----
56
57 begin transports
58
59 send_to_server:
60   driver = smtp
61   allow_localhost
62   hosts = 127.0.0.1
63   hosts_avoid_tls = 127.0.0.1
64   port = PORT_D
65
66 # End