Commit | Line | Data |
---|---|---|
afda344b PH |
1 | # Exim test configuration 0026 |
2 | ||
3 | exim_path = EXIM_PATH | |
bc3c7bb7 | 4 | keep_environment = |
afda344b PH |
5 | host_lookup_order = bydns |
6 | primary_hostname = myhost.test.ex | |
afda344b PH |
7 | spool_directory = DIR/spool |
8 | log_file_path = DIR/spool/log/%slog | |
9 | gecos_pattern = "" | |
10 | gecos_name = CALLER_NAME | |
23f3dc67 | 11 | tls_advertise_hosts = |
afda344b PH |
12 | |
13 | # ----- Main settings ----- | |
14 | ||
15 | domainlist local_domains = test.ex | |
16 | ||
17 | acl_smtp_rcpt = accept | |
18 | acl_smtp_data = acl_data | |
19 | ||
20 | trusted_users = CALLER | |
21 | ||
22 | # ------ ACLs ------ | |
23 | ||
24 | begin acl | |
25 | ||
26 | acl_data: | |
27 | deny log_message = body contains trigger | |
28 | condition = ${if match{$message_body}{trigger}{yes}{no}} | |
cf02e6b2 | 29 | warn logwrite = \$h_from: '$h_from:' |
afda344b PH |
30 | require verify = header_syntax |
31 | warn message = X-warning: this is a test warning | |
32 | accept senders = ! : | |
33 | accept verify = header_sender | |
34 | ||
35 | ||
36 | # ------ Routers ------ | |
37 | ||
38 | begin routers | |
39 | ||
40 | r1: | |
41 | driver = dnslookup | |
42 | domains = ! +local_domains | |
43 | transport = dev_null | |
44 | no_more | |
45 | ||
46 | r2: | |
47 | driver = accept | |
48 | local_parts = userx : postmaster | |
49 | transport = local_delivery | |
50 | ||
51 | ||
52 | # ------ Transports ------ | |
53 | ||
54 | begin transports | |
55 | ||
56 | dev_null: | |
57 | driver = appendfile | |
58 | file = /dev/null | |
59 | user = CALLER | |
60 | ||
61 | local_delivery: | |
62 | driver = appendfile | |
63 | file = DIR/test-mail/$local_part | |
64 | user = CALLER | |
65 | ||
66 | # End |