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