Commit | Line | Data |
---|---|---|
afda344b PH |
1 | # Exim test configuration 0027 |
2 | ||
d4dc049f JH |
3 | .include DIR/aux-var/std_conf_prefix |
4 | ||
afda344b | 5 | primary_hostname = myhost.test.ex |
afda344b PH |
6 | |
7 | # ----- Main settings ----- | |
8 | ||
9 | domainlist local_domains = test.ex | |
10 | ||
11 | acl_smtp_rcpt = acl_rcpt | |
12 | acl_smtp_data = $h_subject: | |
13 | ||
14 | trusted_users = CALLER | |
15 | ||
16 | ||
17 | # ------ ACLs ------ | |
18 | ||
19 | begin acl | |
20 | ||
21 | userx: | |
22 | deny message = deny for userx | |
23 | ||
24 | postmaster: | |
25 | accept verify = sender | |
26 | ||
27 | data: | |
28 | accept | |
29 | ||
30 | data1: | |
31 | accept verify = recipient | |
32 | ||
33 | data2: | |
34 | accept domains = a.b.c | |
35 | ||
36 | data3: | |
37 | accept local_parts = a.b.c | |
38 | ||
39 | acl_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 | ||
48 | begin routers | |
49 | ||
50 | r1: | |
51 | driver = dnslookup | |
52 | domains = ! +local_domains | |
53 | transport = dev_null | |
54 | no_more | |
55 | ||
56 | r2: | |
57 | driver = accept | |
58 | local_parts = userx : postmaster | |
59 | transport = local_delivery | |
60 | ||
61 | ||
62 | # ------ Transports ------ | |
63 | ||
64 | begin transports | |
65 | ||
66 | dev_null: | |
67 | driver = appendfile | |
68 | file = /dev/null | |
69 | user = CALLER | |
70 | ||
71 | local_delivery: | |
72 | driver = appendfile | |
73 | file = DIR/test-mail/$local_part | |
74 | user = CALLER | |
75 | ||
76 | # End |