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