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