Fix CVE-2016-1531
[exim.git] / test / confs / 4000
1 # Exim test configuration 4000
2
3 exim_path = EXIM_PATH
4 keep_environment =
5 host_lookup_order = bydns
6 primary_hostname = myhost.test.ex
7 rfc1413_query_timeout = 0s
8 spool_directory = DIR/spool
9 log_file_path = DIR/spool/log/%slog
10 gecos_pattern = ""
11 gecos_name = CALLER_NAME
12
13
14 # ----- Main settings -----
15
16 acl_smtp_rcpt = check_rcpt
17 acl_smtp_data = check_data
18 acl_not_smtp  = check_data
19 acl_smtp_mime = check_mime
20 acl_not_smtp_mime = check_mime
21
22 av_scanner = clamd:CLAMSOCKET
23
24
25 # ----- ACL -----
26
27 begin acl
28
29 check_rcpt:
30   accept
31
32 check_data:
33   deny     message = Found $malware_name
34            malware = *
35
36   warn     spam    = nobody
37
38   warn     set acl_m0 = $spam_score_int
39
40   warn     message = X-Regex: Regex matched
41            regex   = THIS REGEX
42
43   warn     condition = ${if !eq{$h_fakereject:}{}}
44            control   = fakereject
45
46   warn     condition = ${if !eq{$h_fakedefer:}{}}
47            control   = fakedefer
48
49   accept
50
51 check_mime:
52   warn     decode  = default
53            add_header = X-$mime_part_count-content-type: $mime_content_type\n\
54                         X-$mime_part_count-filename: $mime_filename\n\
55                         X-$mime_part_count-charset: $mime_charset\n\
56                         X-$mime_part_count-boundary: $mime_boundary\n\
57                         X-$mime_part_count-content-disposition: $mime_content_disposition\n\
58                         X-$mime_part_count-content-transfer-encoding: $mime_content_transfer_encoding\n\
59                         X-$mime_part_count-content-id: $mime_content_id\n\
60                         X-$mime_part_count-content-description: $mime_content_description\n\
61                         X-$mime_part_count-is-multipart: $mime_is_multipart\n\
62                         X-$mime_part_count-is-coverletter: $mime_is_coverletter\n\
63                         X-$mime_part_count-is-rfc822: $mime_is_rfc822\n\
64                         X-$mime_part_count-decode-filename: $mime_decoded_filename\n\
65                         X-$mime_part_count-content-size: $mime_content_size
66   warn     mime_regex = (?s)\
67                         (?=Test quoted-printable =)\
68                         (?=.*?Continued line with this)
69            add_header = X-mime-regex: matched
70   accept
71
72
73 # ----- Routers -----
74
75 begin routers
76
77 r1:
78   driver = accept
79   transport = t1
80   headers_add = X-Router-SSint: \
81                 ${if eq {$spam_score_int}{$acl_m0}\
82                 {was preserved}{was not preserver}}
83
84
85 # ----- Transports -----
86
87 begin transports
88
89 t1:
90   driver = appendfile
91   file = DIR/test-mail/$local_part
92   user = CALLER
93
94
95 # End