Make {bounce,warn}_message_file expanded. Bug 2522
[exim.git] / test / confs / 0240
1 # Exim test configuration 0240
2
3 .include DIR/aux-var/std_conf_prefix
4
5
6 # ----- Main settings -----
7
8
9
10
11 acl_smtp_rcpt = check_recipient
12 acl_smtp_data = check_message
13
14
15 domainlist local_domains = test.ex
16
17
18
19 qualify_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
34 begin acl
35
36 #!!# ACL that is used after the RCPT command
37 check_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
44 check_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
61 begin 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
67 fail_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
80 all:
81 driver = accept
82 retry_use_local_part
83 transport = local
84
85
86 # ----- Transports -----
87
88 begin transports
89
90 local:
91 driver = appendfile
92 directory_mode = 3777
93 file = DIR/test-mail/subdir/${bless:$local_part}
94 user = CALLER
95
96
97 # ----- Retry -----
98
99
100 begin retry
101
102 * * F,5d,1d
103
104
105 # End