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