Merge branch 'master'
[exim.git] / test / confs / 0240
1 # Exim test configuration 0240
2
3 exim_path = EXIM_PATH
4 keep_environment =
5 host_lookup_order = bydns
6 spool_directory = DIR/spool
7 log_file_path = DIR/spool/log/%slog
8 gecos_pattern = ""
9 gecos_name = CALLER_NAME
10 tls_advertise_hosts =
11
12 # ----- Main settings -----
13
14
15
16
17 acl_smtp_rcpt = check_recipient
18 acl_smtp_data = check_message
19
20
21 domainlist local_domains = test.ex
22
23
24
25 qualify_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
40 begin acl
41
42 #!!# ACL that is used after the RCPT command
43 check_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
50 check_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
67 begin 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
73 fail_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
86 all:
87 driver = accept
88 retry_use_local_part
89 transport = local
90
91
92 # ----- Transports -----
93
94 begin transports
95
96 local:
97 driver = appendfile
98 directory_mode = 3777
99 file = DIR/test-mail/subdir/$local_part
100 user = CALLER
101
102
103 # ----- Retry -----
104
105
106 begin retry
107
108 * * F,5d,1d
109
110
111 # End