Commit | Line | Data |
---|---|---|
cafbabb7 JH |
1 | # Exim test configuration 0600 |
2 | # utf8clean:string | |
b9c2e32f AR |
3 | |
4 | exim_path = EXIM_PATH | |
5 | host_lookup_order = bydns | |
6 | rfc1413_query_timeout = 0s | |
7 | spool_directory = DIR/spool | |
8 | log_file_path = DIR/spool/log/%slog | |
9 | gecos_pattern = "" | |
10 | gecos_name = CALLER_NAME | |
11 | ||
12 | # ----- Main settings ----- | |
13 | ||
14 | domainlist local_domains = @ | |
15 | ||
16 | acl_smtp_rcpt = accept | |
17 | acl_smtp_data = check_data | |
18 | ||
19 | trusted_users = CALLER | |
20 | ||
21 | ||
22 | # ----- ACL ----- | |
23 | ||
24 | begin acl | |
25 | ||
26 | check_data: | |
27 | accept logwrite = \ | |
28 | x-test-header-good1: ${utf8clean:$h_x-test-header-good1:} | |
29 | logwrite = \ | |
30 | x-test-header-good2: ${utf8clean:$h_x-test-header-good2:} | |
31 | logwrite = \ | |
32 | x-test-header-too-short: ${utf8clean:$h_x-test-header-too-short:} | |
33 | logwrite = \ | |
34 | x-test-header-too-long: ${utf8clean:$h_x-test-header-too-long:} | |
35 | logwrite = \ | |
36 | x-test-header-too-big: ${utf8clean:$h_x-test-header-too-big:} | |
37 | ||
38 | ||
39 | ||
40 | # ----- Routers ----- | |
41 | ||
42 | begin routers | |
43 | ||
44 | fail_remote_domains: | |
45 | driver = redirect | |
46 | domains = ! +local_domains | |
47 | data = :fail: unrouteable mail domain "$domain" | |
48 | ||
49 | localuser: | |
50 | driver = accept | |
51 | check_local_user | |
52 | transport = local_delivery | |
53 | headers_add = X-local-user: uid=$local_user_uid gid=$local_user_gid | |
54 | ||
55 | ||
56 | # ----- Transports ----- | |
57 | ||
58 | begin transports | |
59 | ||
60 | local_delivery: | |
61 | driver = appendfile | |
62 | delivery_date_add | |
63 | envelope_to_add | |
64 | file = DIR/test-mail/$local_part | |
65 | headers_add = "X-body-linecount: $body_linecount\n\ | |
66 | X-message-linecount: $message_linecount\n\ | |
67 | X-received-count: $received_count" | |
68 | return_path_add | |
69 | ||
70 | # End |