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