Commit | Line | Data |
---|---|---|
afda344b PH |
1 | # Exim test configuration 0121 |
2 | ||
d4dc049f JH |
3 | .include DIR/aux-var/std_conf_prefix |
4 | ||
afda344b PH |
5 | |
6 | # ----- Main settings ----- | |
7 | ||
8 | acl_smtp_rcpt = check_recipient | |
9 | acl_smtp_data = check_message | |
10 | ||
11 | domainlist local_domains = test.ex | |
12 | domainlist relay_domains = test.ex | |
13 | qualify_domain = test.ex | |
14 | ||
15 | ||
16 | # ----- ACL ----- | |
17 | ||
18 | begin acl | |
19 | ||
20 | check_recipient: | |
21 | require verify = sender | |
22 | accept domains = +local_domains | |
23 | accept domains = +relay_domains | |
24 | deny message = relay not permitted | |
25 | ||
26 | check_message: | |
27 | require verify = header_sender | |
28 | accept | |
29 | ||
30 | ||
31 | # ----- Routers ----- | |
32 | ||
33 | begin routers | |
34 | ||
35 | fail_remote_domains: | |
36 | driver = redirect | |
37 | domains = ! +local_domains | |
38 | allow_fail | |
39 | data = :fail: unrouteable mail domain "$domain" | |
40 | ||
41 | defer: | |
42 | driver = redirect | |
43 | allow_defer | |
44 | allow_fail | |
45 | data = :defer: forced defer | |
46 | local_parts = defer | |
47 | retry_use_local_part | |
48 | ||
49 | userx: | |
50 | driver = accept | |
51 | local_parts = userx | |
52 | retry_use_local_part | |
53 | transport = appendfile | |
54 | ||
55 | ||
56 | # ----- Transports ----- | |
57 | ||
58 | begin transports | |
59 | ||
60 | appendfile: | |
61 | driver = appendfile | |
62 | file = DIR/test-mail/$local_part | |
63 | user = CALLER | |
64 | ||
65 | ||
66 | # End |