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