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