appendfile: refactor
[exim.git] / test / confs / 0027
CommitLineData
afda344b
PH
1# Exim test configuration 0027
2
d4dc049f
JH
3.include DIR/aux-var/std_conf_prefix
4
afda344b 5primary_hostname = myhost.test.ex
afda344b
PH
6
7# ----- Main settings -----
8
9domainlist local_domains = test.ex
10
11acl_smtp_rcpt = acl_rcpt
12acl_smtp_data = $h_subject:
13
14trusted_users = CALLER
15
16
17# ------ ACLs ------
18
19begin acl
20
21userx:
22 deny message = deny for userx
23
24postmaster:
25 accept verify = sender
26
27data:
28 accept
29
30data1:
31 accept verify = recipient
32
33data2:
34 accept domains = a.b.c
35
36data3:
37 accept local_parts = a.b.c
38
39acl_rcpt:
05caaeaa 40 warn set acl_m_1 = ${acl {data}}
afda344b
PH
41 accept endpass
42 acl = ${tr{$local_part}{:}{\n}}
43 deny message = this message should not occur
44
45
46# ------ Routers ------
47
48begin routers
49
50r1:
51 driver = dnslookup
52 domains = ! +local_domains
53 transport = dev_null
54 no_more
55
56r2:
57 driver = accept
58 local_parts = userx : postmaster
59 transport = local_delivery
60
61
62# ------ Transports ------
63
64begin transports
65
66dev_null:
67 driver = appendfile
68 file = /dev/null
69 user = CALLER
70
71local_delivery:
72 driver = appendfile
73 file = DIR/test-mail/$local_part
74 user = CALLER
75
76# End