blob: a818257f57e530781ea13e32f55f29b8cec24c76 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
|
# Exim test configuration 0571
LOG_SELECTOR=
.include DIR/aux-var/std_conf_prefix
primary_hostname = myhost.test.ex
# ----- Main settings -----
disable_ipv6 = true
addresslist ok_senders = ok@ok.ok
domainlist local_domains = test.ex : *.test.ex
qualify_domain = test.ex
trusted_users = CALLER
# Use first three components of from_domain to select ACL
acl_not_smtp = ${if def:sender_address \
{acl_${sg{${tr{$sender_address_domain}{.}{_}}}{^(.*)_.*\$}{\$1}}} \
{accept control=queue_only}}
# ----- ACLs -----
begin acl
acl_29_29_29:
deny dnslists = test.ex/$sender_address_domain
accept logwrite = authresults: ${authresults {$primary_hostname}}
acl_29_29_0:
deny dnslists = test.ex
accept
# ----- Transports -----
begin transports
t1:
driver = appendfile
file = DIR/test-mail/$local_part
user = CALLER
t2:
driver = appendfile
file = DIR/test-mail/okbatch
user = CALLER
batch_max = 100
envelope_to_add
# ----- Routers -----
begin routers
r0:
driver = accept
local_parts = ^ok
transport = t2
r1:
driver = accept
local_parts = ^userx : ^cond-
transport = t1
r2:
driver = redirect
local_parts = fail
allow_fail
data = :fail: here is a fail message
# End
|