Commit | Line | Data |
---|---|---|
afda344b PH |
1 | # Exim test configuration 0094 |
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 | qualify_domain = test.ex | |
15 | ||
16 | acl_smtp_rcpt = check_recipient | |
17 | domainlist local_domains = test.ex | |
18 | ||
19 | hostlist relay_hosts = *.masq.test.ex | |
20 | ||
21 | host_lookup = 0.0.0.0/0 | |
22 | ||
23 | ||
24 | # ----- ACL ----- | |
25 | ||
26 | begin acl | |
27 | ||
28 | check_recipient: | |
29 | accept hosts = : | |
30 | accept domains = +local_domains | |
31 | accept hosts = +relay_hosts | |
32 | deny message = relay not permitted | |
33 | ||
34 | ||
35 | # ----- Routers ----- | |
36 | ||
37 | begin routers | |
38 | ||
39 | localuser: | |
40 | driver = accept | |
41 | local_parts = userx | |
42 | transport = appendfile | |
43 | ||
44 | ||
45 | # ----- Transports ----- | |
46 | ||
47 | begin transports | |
48 | ||
49 | appendfile: | |
50 | driver = appendfile | |
51 | file = DIR/test-mail/$local_part | |
52 | headers_add = host_lookup_failed: $host_lookup_failed\n\ | |
53 | host_lookup_deferred: $host_lookup_deferred | |
54 | user = CALLER | |
55 | ||
56 | ||
57 | # End |