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