Fix CVE-2016-1531
[exim.git] / test / confs / 0240
CommitLineData
afda344b
PH
1# Exim test configuration 0240
2
3exim_path = EXIM_PATH
bc3c7bb7 4keep_environment =
afda344b 5host_lookup_order = bydns
afda344b
PH
6spool_directory = DIR/spool
7log_file_path = DIR/spool/log/%slog
8gecos_pattern = ""
9gecos_name = CALLER_NAME
23f3dc67 10tls_advertise_hosts =
afda344b
PH
11
12# ----- Main settings -----
13
14
15
16
17acl_smtp_rcpt = check_recipient
18acl_smtp_data = check_message
19
20
21domainlist local_domains = test.ex
22
23
24
25qualify_domain = test.ex
26
27
28#!!#######################################################!!#
29#!!# This new section of the configuration contains ACLs #!!#
30#!!# (Access Control Lists) derived from the Exim 3 #!!#
31#!!# policy control options. #!!#
32#!!#######################################################!!#
33
34#!!# These ACLs are crudely constructed from Exim 3 options.
35#!!# They are almost certainly not optimal. You should study
36#!!# them and rewrite as necessary.
37
38# ----- ACL -----
39
40begin acl
41
42#!!# ACL that is used after the RCPT command
43check_recipient:
44 # Exim 3 had no checking on -bs messages
45 accept hosts = :
46 accept domains = +local_domains
47 deny message = relay not permitted
48
49#!!# ACL that is used after the DATA command
50check_message:
51 accept
52
53
54# ----- Rewrite -----
55
56# End
57
58#!!#######################################################!!#
59#!!# Here follow routers created from the old routers, #!!#
60#!!# for handling non-local domains. #!!#
61#!!#######################################################!!#
62
63
64
65# ----- Routers -----
66
67begin routers
68
69
70#!!# This new router is put here to fail all domains that
71#!!# were not in local_domains in the Exim 3 configuration.
72
73fail_remote_domains:
74 driver = redirect
75 domains = ! +local_domains
76 data = :fail: unrouteable mail domain "$domain"
77
78
79#!!#######################################################!!#
80#!!# Here follow routers created from the old directors, #!!#
81#!!# for handling local domains. #!!#
82#!!#######################################################!!#
83
84# ----- Directors -----
85
86all:
87 driver = accept
88 retry_use_local_part
89 transport = local
90
91
92# ----- Transports -----
93
94begin transports
95
96local:
97 driver = appendfile
98 directory_mode = 3777
99 file = DIR/test-mail/subdir/$local_part
100 user = CALLER
101
102
103# ----- Retry -----
104
105
106begin retry
107
108* * F,5d,1d
109
110
111# End