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