Commit | Line | Data |
---|---|---|
afda344b PH |
1 | # Exim test configuration 0281 |
2 | ||
3 | exim_path = EXIM_PATH | |
4 | host_lookup_order = bydns | |
5 | primary_hostname = myhost.test.ex | |
6 | rfc1413_query_timeout = 0s | |
7 | spool_directory = DIR/spool | |
8 | log_file_path = DIR/spool/log/%slog | |
9 | gecos_pattern = "" | |
10 | gecos_name = CALLER_NAME | |
11 | ||
12 | # ----- Main settings ----- | |
13 | ||
14 | acl_smtp_rcpt = acl_rcpt_$local_part | |
15 | allow_domain_literals | |
16 | hosts_treat_as_local = other1.test.ex | |
17 | ||
18 | ||
19 | # ------ ACLs ------ | |
20 | ||
21 | begin acl | |
22 | ||
23 | acl_rcpt_1: | |
24 | require message = domain doesn't match @ or @[] | |
25 | domains = @ : @[] | |
26 | accept | |
27 | ||
28 | acl_rcpt_2: | |
29 | require message = domain doesn't match @mx_any | |
30 | domains = @mx_any | |
31 | accept | |
32 | ||
33 | acl_rcpt_3: | |
34 | require message = domain doesn't match @mx_primary | |
35 | domains = @mx_primary | |
36 | accept | |
37 | ||
38 | acl_rcpt_4: | |
39 | require message = domain doesn't match @mx_secondary | |
40 | domains = @mx_secondary | |
41 | accept | |
42 | ||
43 | acl_rcpt_5: | |
44 | require message = host doesn't match @ or @[] | |
45 | hosts = @ : @[] | |
46 | accept | |
47 | ||
48 | ||
49 | # ------ Routers ------ | |
50 | ||
51 | begin routers | |
52 | ||
53 | r1: | |
54 | driver = dnslookup | |
55 | domains = ! +local_domains | |
56 | transport = dev_null | |
57 | no_more | |
58 | ||
59 | r2: | |
60 | driver = accept | |
61 | local_parts = CALLER : postmaster | |
62 | transport = local_delivery | |
63 | ||
64 | ||
65 | # ------ Transports ------ | |
66 | ||
67 | begin transports | |
68 | ||
69 | dev_null: | |
70 | driver = appendfile | |
71 | file = /dev/null | |
72 | user = CALLER | |
73 | ||
74 | local_delivery: | |
75 | driver = appendfile | |
76 | file = DIR/test-mail/$local_part | |
77 | user = CALLER | |
78 | ||
79 | # End |