More new test committing.
[users/heiko/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            message = 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
66   accept
67
68
69 # ----- Routers -----
70
71 begin routers
72
73 r1:
74   driver = accept
75   transport = t1
76   headers_add = X-Router-SSint: \
77                 ${if eq {$spam_score_int}{$acl_m0}\
78                 {was preserved}{was not preserver}}
79
80
81 # ----- Transports -----
82
83 begin transports
84
85 t1:
86   driver = appendfile
87   file = DIR/test-mail/$local_part
88   user = CALLER
89
90
91 # End