Commit | Line | Data |
---|---|---|
afda344b PH |
1 | # Exim test configuration 0057 |
2 | ||
3 | exim_path = EXIM_PATH | |
4 | host_lookup_order = bydns | |
5 | primary_hostname = myhost.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 = check_recipient | |
15 | ||
16 | domainlist local_domains = test.ex : myhost.ex : *.test.ex | |
17 | domainlist relay_domains = test.ex : !* | |
18 | ||
19 | percent_hack_domains = ! a.test.ex : !b.test.ex : \ | |
20 | !DIR/aux-fixed/TESTNUM.d1 : ! DIR/aux-fixed/TESTNUM.d2 : *.test.ex | |
21 | ||
22 | ||
23 | # ------ ACL ------ | |
24 | ||
25 | begin acl | |
26 | ||
27 | check_recipient: | |
28 | accept domains = +local_domains | |
29 | accept domains = +relay_domains | |
30 | deny message = relay not permitted | |
31 | ||
32 | ||
33 | # ----- Routers ----- | |
34 | ||
35 | begin routers | |
36 | ||
37 | fail_remote_domains: | |
38 | driver = redirect | |
39 | domains = ! +local_domains | |
40 | data = :fail: unrouteable mail domain "$domain" | |
41 | ||
42 | localuser: | |
43 | driver = accept | |
44 | local_parts = userx | |
45 | verify_only | |
46 | ||
47 | # End |