testsuite: abstract out common conf settings
[exim.git] / test / confs / 0600
1 # Exim test configuration 0600
2 # utf8clean:string
3
4 .include DIR/aux-var/std_conf_prefix
5
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 = \
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:}
32
33
34
35 # ----- Routers -----
36
37 begin routers
38
39 fail_remote_domains:
40   driver = redirect
41   domains = ! +local_domains
42   data = :fail: unrouteable mail domain "$domain"
43
44 localuser:
45   driver = accept
46   check_local_user
47   transport = local_delivery
48   headers_add = X-local-user: uid=$local_user_uid gid=$local_user_gid
49
50
51 # ----- Transports -----
52
53 begin transports
54
55 local_delivery:
56   driver = appendfile
57   delivery_date_add
58   envelope_to_add
59   file = DIR/test-mail/$local_part
60   headers_add = "X-body-linecount: $body_linecount\n\
61                  X-message-linecount: $message_linecount\n\
62                  X-received-count: $received_count"
63   return_path_add
64
65 # End