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