Imported Upstream version 1.7.0
[platform/upstream/augeas.git] / lenses / tests / test_mailscanner.aug
1 module Test_Mailscanner =
2
3 let conf = "# Main configuration file for the MailScanner E-Mail Virus Scanner
4 %org-name% = BARUWA
5 %org-long-name% = BARUWA MAILFW
6 %web-site% = www.baruwa.com
7 %etc-dir% = /etc/MailScanner
8 %reports-base% = /etc/MailScanner/reports
9 %report-dir% = /etc/MailScanner/reports/en
10 %rules-dir% = /etc/MailScanner/rules
11 %mcp-dir% = /etc/MailScanner/mcp
12 %spool-dir% = /var/spool/MailScanner
13 %signature-dir% = /etc/MailScanner/baruwa/signatures
14 %brules-dir% = /etc/MailScanner/baruwa/rules
15 Max Children = 5
16 Run As User = exim
17 Run As Group = exim
18 Queue Scan Interval = 6
19 Incoming Queue Dir = /var/spool/exim.in/input
20 Outgoing Queue Dir = /var/spool/exim/input
21 Incoming Work Dir = %spool-dir%/incoming
22 Quarantine Dir = %spool-dir%/quarantine
23 PID file = /var/run/MailScanner/MailScanner.pid
24 Restart Every = 7200
25 MTA = exim
26 Sendmail = /usr/sbin/exim -C /etc/exim/exim_out.conf
27 Sendmail2 = /usr/sbin/exim -C /etc/exim/exim_out.conf
28 Incoming Work User = exim
29 Incoming Work Group = clam
30 Incoming Work Permissions = 0640
31 Quarantine User = exim
32 Quarantine Group = baruwa
33 Quarantine Permissions = 0660
34 Max Unscanned Bytes Per Scan = 100m
35 Max Unsafe Bytes Per Scan = 50m
36 Max Unscanned Messages Per Scan = 30
37 Max Unsafe Messages Per Scan = 30
38 Max Normal Queue Size = 800
39 Scan Messages = %rules-dir%/scan.messages.rules
40 Reject Message = no
41 Maximum Processing Attempts = 6
42 Processing Attempts Database = %spool-dir%/incoming/Processing.db
43 Maximum Attachments Per Message = 200
44 Expand TNEF = yes
45 Use TNEF Contents = replace
46 Deliver Unparsable TNEF = no
47 TNEF Expander = /usr/bin/tnef --maxsize=100000000
48 TNEF Timeout = 120
49 File Command = /usr/sbin/file-wrapper
50 File Timeout = 20
51 Gunzip Command = /bin/gunzip
52 Gunzip Timeout = 50
53 Unrar Command = /usr/bin/unrar
54 Unrar Timeout = 50
55 Find UU-Encoded Files = no
56 Maximum Message Size = %brules-dir%/message.size.rules
57 Maximum Attachment Size = -1
58 Minimum Attachment Size = -1
59 Maximum Archive Depth = 4
60 Find Archives By Content = yes
61 Unpack Microsoft Documents = yes
62 Zip Attachments = no
63 Attachments Zip Filename = MessageAttachments.zip
64 Attachments Min Total Size To Zip = 100k
65 Attachment Extensions Not To Zip = .zip .rar .gz .tgz .jpg .jpeg .mpg .mpe .mpeg .mp3 .rpm .htm .html .eml
66 Add Text Of Doc = no
67 Antiword = /usr/bin/antiword -f
68 Antiword Timeout = 50
69 Unzip Maximum Files Per Archive = 0
70 Unzip Maximum File Size = 50k
71 Unzip Filenames = *.txt *.ini *.log *.csv
72 Unzip MimeType = text/plain
73 Virus Scanning = %brules-dir%/virus.checks.rules
74 Virus Scanners = auto
75 Virus Scanner Timeout = 300
76 Deliver Disinfected Files = no
77 Silent Viruses = HTML-IFrame All-Viruses
78 Still Deliver Silent Viruses = no
79 Non-Forging Viruses = Joke/ OF97/ WM97/ W97M/ eicar
80 Spam-Virus Header = X-%org-name%-BaruwaFW-SpamVirus-Report:
81 Virus Names Which Are Spam = Sanesecurity.Spam*UNOFFICIAL HTML/* *Phish* *Suspected-phishing_safebrowsing*
82 Block Encrypted Messages = no
83 Block Unencrypted Messages = no
84 Allow Password-Protected Archives = yes
85 Check Filenames In Password-Protected Archives = yes
86 Allowed Sophos Error Messages =
87 Sophos IDE Dir = /opt/sophos-av/lib/sav
88 Sophos Lib Dir = /opt/sophos-av/lib
89 Monitors For Sophos Updates = /opt/sophos-av/lib/sav/*.ide
90 Monitors for ClamAV Updates = /var/lib/clamav/*.cvd
91 ClamAVmodule Maximum Recursion Level = 8
92 ClamAVmodule Maximum Files = 1000
93 ClamAVmodule Maximum File Size = 10000000
94 ClamAVmodule Maximum Compression Ratio = 250
95 Clamd Port = 3310
96 Clamd Socket = /var/run/clamav/clamd.sock
97 Clamd Lock File =
98 Clamd Use Threads = no
99 ClamAV Full Message Scan = yes
100 Fpscand Port = 10200
101 Dangerous Content Scanning = %rules-dir%/content.scanning.rules
102 Allow Partial Messages = no
103 Allow External Message Bodies = no
104 Find Phishing Fraud = yes
105 Also Find Numeric Phishing = yes
106 Use Stricter Phishing Net = yes
107 Highlight Phishing Fraud = yes
108 Phishing Safe Sites File = %etc-dir%/phishing.safe.sites.conf
109 Phishing Bad Sites File = %etc-dir%/phishing.bad.sites.conf
110 Country Sub-Domains List = %etc-dir%/country.domains.conf
111 Allow IFrame Tags = disarm
112 Allow Form Tags = disarm
113 Allow Script Tags = disarm
114 Allow WebBugs = disarm
115 Ignored Web Bug Filenames = spacer pixel.gif pixel.png gap
116 Known Web Bug Servers = msgtag.com
117 Web Bug Replacement = https://datafeeds.baruwa.com/1x1spacer.gif
118 Allow Object Codebase Tags = disarm
119 Convert Dangerous HTML To Text = no
120 Convert HTML To Text = no
121 Archives Are = zip rar ole
122 Allow Filenames =
123 Deny Filenames =
124 Filename Rules = %rules-dir%/filename.rules
125 Allow Filetypes =
126 Allow File MIME Types =
127 Deny Filetypes =
128 Deny File MIME Types =
129 Filetype Rules = %rules-dir%/filetype.rules
130 Archives: Allow Filenames =
131 Archives: Deny Filenames =
132 Archives: Filename Rules = %etc-dir%/archives.filename.rules.conf
133 Archives: Allow Filetypes =
134 Archives: Allow File MIME Types =
135 Archives: Deny Filetypes =
136 Archives: Deny File MIME Types =
137 Archives: Filetype Rules = %etc-dir%/archives.filetype.rules.conf
138 Default Rename Pattern = __FILENAME__.disarmed
139 Quarantine Infections = yes
140 Quarantine Silent Viruses = no
141 Quarantine Modified Body = no
142 Quarantine Whole Message = yes
143 Quarantine Whole Messages As Queue Files = no
144 Keep Spam And MCP Archive Clean = yes
145 Language Strings = %brules-dir%/languages.rules
146 Rejection Report = %brules-dir%/rejectionreport.rules
147 Deleted Bad Content Message Report = %brules-dir%/deletedcontentmessage.rules
148 Deleted Bad Filename Message Report = %brules-dir%/deletedfilenamemessage.rules
149 Deleted Virus Message Report = %brules-dir%/deletedvirusmessage.rules
150 Deleted Size Message Report = %brules-dir%/deletedsizemessage.rules
151 Stored Bad Content Message Report = %brules-dir%/storedcontentmessage.rules
152 Stored Bad Filename Message Report = %brules-dir%/storedfilenamemessage.rules
153 Stored Virus Message Report = %brules-dir%/storedvirusmessage.rules
154 Stored Size Message Report = %brules-dir%/storedsizemessage.rules
155 Disinfected Report = %brules-dir%/disinfectedreport.rules
156 Inline HTML Signature = %brules-dir%/html.sigs.rules
157 Inline Text Signature = %brules-dir%/text.sigs.rules
158 Signature Image Filename = %brules-dir%/sig.imgs.names.rules
159 Signature Image <img> Filename = %brules-dir%/sig.imgs.rules
160 Inline HTML Warning = %brules-dir%/inlinewarninghtml.rules
161 Inline Text Warning = %brules-dir%/inlinewarningtxt.rules
162 Sender Content Report = %brules-dir%/sendercontentreport.rules
163 Sender Error Report = %brules-dir%/sendererrorreport.rules
164 Sender Bad Filename Report = %brules-dir%/senderfilenamereport.rules
165 Sender Virus Report = %brules-dir%/sendervirusreport.rules
166 Sender Size Report = %brules-dir%/sendersizereport.rules
167 Hide Incoming Work Dir = yes
168 Include Scanner Name In Reports = yes
169 Mail Header = X-%org-name%-BaruwaFW:
170 Spam Header = X-%org-name%-BaruwaFW-SpamCheck:
171 Spam Score Header = X-%org-name%-BaruwaFW-SpamScore:
172 Information Header = X-%org-name%-BaruwaFW-Information:
173 Add Envelope From Header = yes
174 Add Envelope To Header = no
175 Envelope From Header = X-BARUWA-BaruwaFW-From:
176 Envelope To Header = X-%org-name%-BaruwaFW-To:
177 ID Header = X-%org-name%-BaruwaFW-ID:
178 IP Protocol Version Header =
179 Spam Score Character = s
180 SpamScore Number Instead Of Stars = no
181 Minimum Stars If On Spam List = 0
182 Clean Header Value = Found to be clean
183 Infected Header Value = Found to be infected
184 Disinfected Header Value = Disinfected
185 Information Header Value = Please contact %org-long-name% for more information
186 Detailed Spam Report = yes
187 Include Scores In SpamAssassin Report = yes
188 Always Include SpamAssassin Report = no
189 Multiple Headers = add
190 Place New Headers At Top Of Message = yes
191 Hostname = the %org-name% ($HOSTNAME) Baruwa
192 Sign Messages Already Processed = no
193 Sign Clean Messages = %brules-dir%/sign.clean.msgs.rules
194 Attach Image To Signature = yes
195 Attach Image To HTML Message Only = yes
196 Allow Multiple HTML Signatures = no
197 Dont Sign HTML If Headers Exist =
198 Mark Infected Messages = yes
199 Mark Unscanned Messages = no
200 Unscanned Header Value = Not scanned: please contact %org-long-name% for details
201 Remove These Headers = X-Mozilla-Status: X-Mozilla-Status2:
202 Deliver Cleaned Messages = yes
203 Notify Senders = no
204 Notify Senders Of Viruses = no
205 Notify Senders Of Blocked Filenames Or Filetypes = no
206 Notify Senders Of Blocked Size Attachments = no
207 Notify Senders Of Other Blocked Content = no
208 Never Notify Senders Of Precedence = list bulk
209 Scanned Modify Subject = no
210 Scanned Subject Text = {Scanned}
211 Virus Modify Subject = no
212 Virus Subject Text = {Virus?}
213 Filename Modify Subject = no
214 Filename Subject Text = {Filename?}
215 Content Modify Subject = no
216 Content Subject Text = {Dangerous Content?}
217 Size Modify Subject = no
218 Size Subject Text = {Size}
219 Disarmed Modify Subject = no
220 Disarmed Subject Text = {Disarmed}
221 Phishing Modify Subject = yes
222 Phishing Subject Text = {Suspected Phishing?}
223 Spam Modify Subject = no
224 Spam Subject Text = {Spam?}
225 High Scoring Spam Modify Subject = no
226 High Scoring Spam Subject Text = {Spam?}
227 Warning Is Attachment = yes
228 Attachment Warning Filename = %org-name%-Attachment-Warning.txt
229 Attachment Encoding Charset = ISO-8859-1
230 Archive Mail =
231 Missing Mail Archive Is = file
232 Send Notices = no
233 Notices Include Full Headers = yes
234 Hide Incoming Work Dir in Notices = yes
235 Notice Signature = -- \\n%org-name%\\nEmail Security\\n%website%
236 Notices From = Baruwa
237 Notices To = postmaster
238 Local Postmaster = postmaster
239 Spam List Definitions = %etc-dir%/spam.lists.conf
240 Virus Scanner Definitions = %etc-dir%/virus.scanners.conf
241 Spam Checks = %brules-dir%/spam.checks.rules
242 Spam List =
243 Spam Domain List =
244 Spam Lists To Be Spam = 1
245 Spam Lists To Reach High Score = 3
246 Spam List Timeout = 10
247 Max Spam List Timeouts = 7
248 Spam List Timeouts History = 10
249 Is Definitely Not Spam = %brules-dir%/approved.senders.rules
250 Is Definitely Spam = %brules-dir%/banned.senders.rules
251 Definite Spam Is High Scoring = yes
252 Ignore Spam Whitelist If Recipients Exceed = 20
253 Max Spam Check Size = 4000k
254 Use Watermarking = no
255 Add Watermark = yes
256 Check Watermarks With No Sender = yes
257 Treat Invalid Watermarks With No Sender as Spam = nothing
258 Check Watermarks To Skip Spam Checks = yes
259 Watermark Secret = %org-name%-BaruwaFW-Secret
260 Watermark Lifetime = 604800
261 Watermark Header = X-%org-name%-BaruwaFW-Watermark:
262 Use SpamAssassin = yes
263 Max SpamAssassin Size = 800k
264 Required SpamAssassin Score = %brules-dir%/spam.score.rules
265 High SpamAssassin Score = %brules-dir%/highspam.score.rules
266 SpamAssassin Auto Whitelist = yes
267 SpamAssassin Timeout = 75
268 Max SpamAssassin Timeouts = 10
269 SpamAssassin Timeouts History = 30
270 Check SpamAssassin If On Spam List = yes
271 Include Binary Attachments In SpamAssassin = no
272 Spam Score = yes
273 Cache SpamAssassin Results = yes
274 SpamAssassin Cache Database File = %spool-dir%/incoming/SpamAssassin.cache.db
275 Rebuild Bayes Every = 0
276 Wait During Bayes Rebuild = no
277 Use Custom Spam Scanner = no
278 Max Custom Spam Scanner Size = 20k
279 Custom Spam Scanner Timeout = 20
280 Max Custom Spam Scanner Timeouts = 10
281 Custom Spam Scanner Timeout History = 20
282 Spam Actions = %brules-dir%/spam.actions.rules
283 High Scoring Spam Actions = %brules-dir%/highspam.actions.rules
284 Non Spam Actions = %rules-dir%/nonspam.actions.rules
285 SpamAssassin Rule Actions =
286 Sender Spam Report = %brules-dir%/senderspamreport.rules
287 Sender Spam List Report = %brules-dir%/senderspamrblreport.rules
288 Sender SpamAssassin Report = %brules-dir%/senderspamsareport.rules
289 Inline Spam Warning = %brules-dir%/inlinespamwarning.rules
290 Recipient Spam Report = %brules-dir%/recipientspamreport.rules
291 Enable Spam Bounce = %rules-dir%/bounce.rules
292 Bounce Spam As Attachment = no
293 Syslog Facility = mail
294 Log Speed = no
295 Log Spam = no
296 Log Non Spam = no
297 Log Delivery And Non-Delivery = no
298 Log Permitted Filenames = no
299 Log Permitted Filetypes = no
300 Log Permitted File MIME Types = no
301 Log Silent Viruses = no
302 Log Dangerous HTML Tags = no
303 Log SpamAssassin Rule Actions = no
304 SpamAssassin Temporary Dir = /var/spool/MailScanner/incoming/SpamAssassin-Temp
305 SpamAssassin User State Dir =
306 SpamAssassin Install Prefix =
307 SpamAssassin Site Rules Dir = /etc/mail/spamassassin
308 SpamAssassin Local Rules Dir =
309 SpamAssassin Local State Dir =
310 SpamAssassin Default Rules Dir =
311 DB DSN = DBI:Pg:database=baruwa
312 DB Username = baruwa
313 DB Password = password
314 SQL Serial Number = SELECT MAX(value) AS confserialnumber FROM configurations WHERE internal='confserialnumber'
315 SQL Quick Peek = SELECT dbvalue(value) AS value FROM quickpeek WHERE external = ? AND (hostname = ? OR hostname='default') LIMIT 1
316 SQL Config = SELECT internal, dbvalue(value) AS value, hostname FROM quickpeek WHERE hostname=? OR hostname='default'
317 SQL Ruleset = SELECT row_number, ruleset AS rule FROM msrulesets WHERE name=?
318 SQL SpamAssassin Config =
319 SQL Debug = no
320 Sphinx Host = 127.0.0.1
321 Sphinx Port = 9306
322 MCP Checks = no
323 First Check = spam
324 MCP Required SpamAssassin Score = 1
325 MCP High SpamAssassin Score = 10
326 MCP Error Score = 1
327 MCP Header = X-%org-name%-BaruwaFW-MCPCheck:
328 Non MCP Actions = deliver
329 MCP Actions = deliver
330 High Scoring MCP Actions = deliver
331 Bounce MCP As Attachment = no
332 MCP Modify Subject = start
333 MCP Subject Text = {MCP?}
334 High Scoring MCP Modify Subject = start
335 High Scoring MCP Subject Text = {MCP?}
336 Is Definitely MCP = no
337 Is Definitely Not MCP = no
338 Definite MCP Is High Scoring = no
339 Always Include MCP Report = no
340 Detailed MCP Report = yes
341 Include Scores In MCP Report = no
342 Log MCP = no
343 MCP Max SpamAssassin Timeouts = 20
344 MCP Max SpamAssassin Size = 100k
345 MCP SpamAssassin Timeout = 10
346 MCP SpamAssassin Prefs File = %mcp-dir%/mcp.spam.assassin.prefs.conf
347 MCP SpamAssassin User State Dir =
348 MCP SpamAssassin Local Rules Dir = %mcp-dir%
349 MCP SpamAssassin Default Rules Dir = %mcp-dir%
350 MCP SpamAssassin Install Prefix = %mcp-dir%
351 Recipient MCP Report = %report-dir%/recipient.mcp.report.txt
352 Sender MCP Report = %report-dir%/sender.mcp.report.txt
353 Use Default Rules With Multiple Recipients = no
354 Read IP Address From Received Header = no
355 Spam Score Number Format = %d.1f
356 MailScanner Version Number = 4.85.5
357 SpamAssassin Cache Timings = 1800,300,10800,172800,600
358 Debug = no
359 Debug SpamAssassin = no
360 Run In Foreground = no
361 Always Looked Up Last = &BaruwaLog
362 Always Looked Up Last After Batch = no
363 Deliver In Background = yes
364 Delivery Method = batch
365 Split Exim Spool = no
366 Lockfile Dir = %spool-dir%/incoming/Locks
367 Custom Functions Dir = /usr/share/baruwa/CustomFunctions
368 Lock Type =
369 Syslog Socket Type =
370 Automatic Syntax Check = yes
371 Minimum Code Status = supported
372 include /etc/MailScanner/conf.d/*.conf
373 "
374
375 test Mailscanner.lns get conf =
376     { "#comment" = "Main configuration file for the MailScanner E-Mail Virus Scanner"}
377     { "%org-name%" = "BARUWA" }
378     { "%org-long-name%" = "BARUWA MAILFW" }
379     { "%web-site%" = "www.baruwa.com" }
380     { "%etc-dir%" = "/etc/MailScanner" }
381     { "%reports-base%" = "/etc/MailScanner/reports" }
382     { "%report-dir%" = "/etc/MailScanner/reports/en" }
383     { "%rules-dir%" = "/etc/MailScanner/rules" }
384     { "%mcp-dir%" = "/etc/MailScanner/mcp" }
385     { "%spool-dir%" = "/var/spool/MailScanner" }
386     { "%signature-dir%" = "/etc/MailScanner/baruwa/signatures" }
387     { "%brules-dir%" = "/etc/MailScanner/baruwa/rules" }
388     { "Max Children" = "5" }
389     { "Run As User" = "exim" }
390     { "Run As Group" = "exim" }
391     { "Queue Scan Interval" = "6" }
392     { "Incoming Queue Dir" = "/var/spool/exim.in/input" }
393     { "Outgoing Queue Dir" = "/var/spool/exim/input" }
394     { "Incoming Work Dir" = "%spool-dir%/incoming" }
395     { "Quarantine Dir" = "%spool-dir%/quarantine" }
396     { "PID file" = "/var/run/MailScanner/MailScanner.pid" }
397     { "Restart Every" = "7200" }
398     { "MTA" = "exim" }
399     { "Sendmail" = "/usr/sbin/exim -C /etc/exim/exim_out.conf" }
400     { "Sendmail2" = "/usr/sbin/exim -C /etc/exim/exim_out.conf" }
401     { "Incoming Work User" = "exim" }
402     { "Incoming Work Group" = "clam" }
403     { "Incoming Work Permissions" = "0640" }
404     { "Quarantine User" = "exim" }
405     { "Quarantine Group" = "baruwa" }
406     { "Quarantine Permissions" = "0660" }
407     { "Max Unscanned Bytes Per Scan" = "100m" }
408     { "Max Unsafe Bytes Per Scan" = "50m" }
409     { "Max Unscanned Messages Per Scan" = "30" }
410     { "Max Unsafe Messages Per Scan" = "30" }
411     { "Max Normal Queue Size" = "800" }
412     { "Scan Messages" = "%rules-dir%/scan.messages.rules" }
413     { "Reject Message" = "no" }
414     { "Maximum Processing Attempts" = "6" }
415     { "Processing Attempts Database" = "%spool-dir%/incoming/Processing.db" }
416     { "Maximum Attachments Per Message" = "200" }
417     { "Expand TNEF" = "yes" }
418     { "Use TNEF Contents" = "replace" }
419     { "Deliver Unparsable TNEF" = "no" }
420     { "TNEF Expander" = "/usr/bin/tnef --maxsize=100000000" }
421     { "TNEF Timeout" = "120" }
422     { "File Command" = "/usr/sbin/file-wrapper" }
423     { "File Timeout" = "20" }
424     { "Gunzip Command" = "/bin/gunzip" }
425     { "Gunzip Timeout" = "50" }
426     { "Unrar Command" = "/usr/bin/unrar" }
427     { "Unrar Timeout" = "50" }
428     { "Find UU-Encoded Files" = "no" }
429     { "Maximum Message Size" = "%brules-dir%/message.size.rules" }
430     { "Maximum Attachment Size" = "-1" }
431     { "Minimum Attachment Size" = "-1" }
432     { "Maximum Archive Depth" = "4" }
433     { "Find Archives By Content" = "yes" }
434     { "Unpack Microsoft Documents" = "yes" }
435     { "Zip Attachments" = "no" }
436     { "Attachments Zip Filename" = "MessageAttachments.zip" }
437     { "Attachments Min Total Size To Zip" = "100k" }
438     { "Attachment Extensions Not To Zip" = ".zip .rar .gz .tgz .jpg .jpeg .mpg .mpe .mpeg .mp3 .rpm .htm .html .eml" }
439     { "Add Text Of Doc" = "no" }
440     { "Antiword" = "/usr/bin/antiword -f" }
441     { "Antiword Timeout" = "50" }
442     { "Unzip Maximum Files Per Archive" = "0" }
443     { "Unzip Maximum File Size" = "50k" }
444     { "Unzip Filenames" = "*.txt *.ini *.log *.csv" }
445     { "Unzip MimeType" = "text/plain" }
446     { "Virus Scanning" = "%brules-dir%/virus.checks.rules" }
447     { "Virus Scanners" = "auto" }
448     { "Virus Scanner Timeout" = "300" }
449     { "Deliver Disinfected Files" = "no" }
450     { "Silent Viruses" = "HTML-IFrame All-Viruses" }
451     { "Still Deliver Silent Viruses" = "no" }
452     { "Non-Forging Viruses" = "Joke/ OF97/ WM97/ W97M/ eicar" }
453     { "Spam-Virus Header" = "X-%org-name%-BaruwaFW-SpamVirus-Report:" }
454     { "Virus Names Which Are Spam" = "Sanesecurity.Spam*UNOFFICIAL HTML/* *Phish* *Suspected-phishing_safebrowsing*" }
455     { "Block Encrypted Messages" = "no" }
456     { "Block Unencrypted Messages" = "no" }
457     { "Allow Password-Protected Archives" = "yes" }
458     { "Check Filenames In Password-Protected Archives" = "yes" }
459     { "Allowed Sophos Error Messages" }
460     { "Sophos IDE Dir" = "/opt/sophos-av/lib/sav" }
461     { "Sophos Lib Dir" = "/opt/sophos-av/lib" }
462     { "Monitors For Sophos Updates" = "/opt/sophos-av/lib/sav/*.ide" }
463     { "Monitors for ClamAV Updates" = "/var/lib/clamav/*.cvd" }
464     { "ClamAVmodule Maximum Recursion Level" = "8" }
465     { "ClamAVmodule Maximum Files" = "1000" }
466     { "ClamAVmodule Maximum File Size" = "10000000" }
467     { "ClamAVmodule Maximum Compression Ratio" = "250" }
468     { "Clamd Port" = "3310" }
469     { "Clamd Socket" = "/var/run/clamav/clamd.sock" }
470     { "Clamd Lock File" }
471     { "Clamd Use Threads" = "no" }
472     { "ClamAV Full Message Scan" = "yes" }
473     { "Fpscand Port" = "10200" }
474     { "Dangerous Content Scanning" = "%rules-dir%/content.scanning.rules" }
475     { "Allow Partial Messages" = "no" }
476     { "Allow External Message Bodies" = "no" }
477     { "Find Phishing Fraud" = "yes" }
478     { "Also Find Numeric Phishing" = "yes" }
479     { "Use Stricter Phishing Net" = "yes" }
480     { "Highlight Phishing Fraud" = "yes" }
481     { "Phishing Safe Sites File" = "%etc-dir%/phishing.safe.sites.conf" }
482     { "Phishing Bad Sites File" = "%etc-dir%/phishing.bad.sites.conf" }
483     { "Country Sub-Domains List" = "%etc-dir%/country.domains.conf" }
484     { "Allow IFrame Tags" = "disarm" }
485     { "Allow Form Tags" = "disarm" }
486     { "Allow Script Tags" = "disarm" }
487     { "Allow WebBugs" = "disarm" }
488     { "Ignored Web Bug Filenames" = "spacer pixel.gif pixel.png gap" }
489     { "Known Web Bug Servers" = "msgtag.com" }
490     { "Web Bug Replacement" = "https://datafeeds.baruwa.com/1x1spacer.gif" }
491     { "Allow Object Codebase Tags" = "disarm" }
492     { "Convert Dangerous HTML To Text" = "no" }
493     { "Convert HTML To Text" = "no" }
494     { "Archives Are" = "zip rar ole" }
495     { "Allow Filenames" }
496     { "Deny Filenames" }
497     { "Filename Rules" = "%rules-dir%/filename.rules" }
498     { "Allow Filetypes" }
499     { "Allow File MIME Types" }
500     { "Deny Filetypes" }
501     { "Deny File MIME Types" }
502     { "Filetype Rules" = "%rules-dir%/filetype.rules" }
503     { "Archives: Allow Filenames" }
504     { "Archives: Deny Filenames" }
505     { "Archives: Filename Rules" = "%etc-dir%/archives.filename.rules.conf" }
506     { "Archives: Allow Filetypes" }
507     { "Archives: Allow File MIME Types" }
508     { "Archives: Deny Filetypes" }
509     { "Archives: Deny File MIME Types" }
510     { "Archives: Filetype Rules" = "%etc-dir%/archives.filetype.rules.conf" }
511     { "Default Rename Pattern" = "__FILENAME__.disarmed" }
512     { "Quarantine Infections" = "yes" }
513     { "Quarantine Silent Viruses" = "no" }
514     { "Quarantine Modified Body" = "no" }
515     { "Quarantine Whole Message" = "yes" }
516     { "Quarantine Whole Messages As Queue Files" = "no" }
517     { "Keep Spam And MCP Archive Clean" = "yes" }
518     { "Language Strings" = "%brules-dir%/languages.rules" }
519     { "Rejection Report" = "%brules-dir%/rejectionreport.rules" }
520     { "Deleted Bad Content Message Report" = "%brules-dir%/deletedcontentmessage.rules" }
521     { "Deleted Bad Filename Message Report" = "%brules-dir%/deletedfilenamemessage.rules" }
522     { "Deleted Virus Message Report" = "%brules-dir%/deletedvirusmessage.rules" }
523     { "Deleted Size Message Report" = "%brules-dir%/deletedsizemessage.rules" }
524     { "Stored Bad Content Message Report" = "%brules-dir%/storedcontentmessage.rules" }
525     { "Stored Bad Filename Message Report" = "%brules-dir%/storedfilenamemessage.rules" }
526     { "Stored Virus Message Report" = "%brules-dir%/storedvirusmessage.rules" }
527     { "Stored Size Message Report" = "%brules-dir%/storedsizemessage.rules" }
528     { "Disinfected Report" = "%brules-dir%/disinfectedreport.rules" }
529     { "Inline HTML Signature" = "%brules-dir%/html.sigs.rules" }
530     { "Inline Text Signature" = "%brules-dir%/text.sigs.rules" }
531     { "Signature Image Filename" = "%brules-dir%/sig.imgs.names.rules" }
532     { "Signature Image <img> Filename" = "%brules-dir%/sig.imgs.rules" }
533     { "Inline HTML Warning" = "%brules-dir%/inlinewarninghtml.rules" }
534     { "Inline Text Warning" = "%brules-dir%/inlinewarningtxt.rules" }
535     { "Sender Content Report" = "%brules-dir%/sendercontentreport.rules" }
536     { "Sender Error Report" = "%brules-dir%/sendererrorreport.rules" }
537     { "Sender Bad Filename Report" = "%brules-dir%/senderfilenamereport.rules" }
538     { "Sender Virus Report" = "%brules-dir%/sendervirusreport.rules" }
539     { "Sender Size Report" = "%brules-dir%/sendersizereport.rules" }
540     { "Hide Incoming Work Dir" = "yes" }
541     { "Include Scanner Name In Reports" = "yes" }
542     { "Mail Header" = "X-%org-name%-BaruwaFW:" }
543     { "Spam Header" = "X-%org-name%-BaruwaFW-SpamCheck:" }
544     { "Spam Score Header" = "X-%org-name%-BaruwaFW-SpamScore:" }
545     { "Information Header" = "X-%org-name%-BaruwaFW-Information:" }
546     { "Add Envelope From Header" = "yes" }
547     { "Add Envelope To Header" = "no" }
548     { "Envelope From Header" = "X-BARUWA-BaruwaFW-From:" }
549     { "Envelope To Header" = "X-%org-name%-BaruwaFW-To:" }
550     { "ID Header" = "X-%org-name%-BaruwaFW-ID:" }
551     { "IP Protocol Version Header" }
552     { "Spam Score Character" = "s" }
553     { "SpamScore Number Instead Of Stars" = "no" }
554     { "Minimum Stars If On Spam List" = "0" }
555     { "Clean Header Value" = "Found to be clean" }
556     { "Infected Header Value" = "Found to be infected" }
557     { "Disinfected Header Value" = "Disinfected" }
558     { "Information Header Value" = "Please contact %org-long-name% for more information" }
559     { "Detailed Spam Report" = "yes" }
560     { "Include Scores In SpamAssassin Report" = "yes" }
561     { "Always Include SpamAssassin Report" = "no" }
562     { "Multiple Headers" = "add" }
563     { "Place New Headers At Top Of Message" = "yes" }
564     { "Hostname" = "the %org-name% ($HOSTNAME) Baruwa" }
565     { "Sign Messages Already Processed" = "no" }
566     { "Sign Clean Messages" = "%brules-dir%/sign.clean.msgs.rules" }
567     { "Attach Image To Signature" = "yes" }
568     { "Attach Image To HTML Message Only" = "yes" }
569     { "Allow Multiple HTML Signatures" = "no" }
570     { "Dont Sign HTML If Headers Exist" }
571     { "Mark Infected Messages" = "yes" }
572     { "Mark Unscanned Messages" = "no" }
573     { "Unscanned Header Value" = "Not scanned: please contact %org-long-name% for details" }
574     { "Remove These Headers" = "X-Mozilla-Status: X-Mozilla-Status2:" }
575     { "Deliver Cleaned Messages" = "yes" }
576     { "Notify Senders" = "no" }
577     { "Notify Senders Of Viruses" = "no" }
578     { "Notify Senders Of Blocked Filenames Or Filetypes" = "no" }
579     { "Notify Senders Of Blocked Size Attachments" = "no" }
580     { "Notify Senders Of Other Blocked Content" = "no" }
581     { "Never Notify Senders Of Precedence" = "list bulk" }
582     { "Scanned Modify Subject" = "no" }
583     { "Scanned Subject Text" = "{Scanned}" }
584     { "Virus Modify Subject" = "no" }
585     { "Virus Subject Text" = "{Virus?}" }
586     { "Filename Modify Subject" = "no" }
587     { "Filename Subject Text" = "{Filename?}" }
588     { "Content Modify Subject" = "no" }
589     { "Content Subject Text" = "{Dangerous Content?}" }
590     { "Size Modify Subject" = "no" }
591     { "Size Subject Text" = "{Size}" }
592     { "Disarmed Modify Subject" = "no" }
593     { "Disarmed Subject Text" = "{Disarmed}" }
594     { "Phishing Modify Subject" = "yes" }
595     { "Phishing Subject Text" = "{Suspected Phishing?}" }
596     { "Spam Modify Subject" = "no" }
597     { "Spam Subject Text" = "{Spam?}" }
598     { "High Scoring Spam Modify Subject" = "no" }
599     { "High Scoring Spam Subject Text" = "{Spam?}" }
600     { "Warning Is Attachment" = "yes" }
601     { "Attachment Warning Filename" = "%org-name%-Attachment-Warning.txt" }
602     { "Attachment Encoding Charset" = "ISO-8859-1" }
603     { "Archive Mail" }
604     { "Missing Mail Archive Is" = "file" }
605     { "Send Notices" = "no" }
606     { "Notices Include Full Headers" = "yes" }
607     { "Hide Incoming Work Dir in Notices" = "yes" }
608     { "Notice Signature" = "-- \\n%org-name%\\nEmail Security\\n%website%" }
609     { "Notices From" = "Baruwa" }
610     { "Notices To" = "postmaster" }
611     { "Local Postmaster" = "postmaster" }
612     { "Spam List Definitions" = "%etc-dir%/spam.lists.conf" }
613     { "Virus Scanner Definitions" = "%etc-dir%/virus.scanners.conf" }
614     { "Spam Checks" = "%brules-dir%/spam.checks.rules" }
615     { "Spam List" }
616     { "Spam Domain List" }
617     { "Spam Lists To Be Spam" = "1" }
618     { "Spam Lists To Reach High Score" = "3" }
619     { "Spam List Timeout" = "10" }
620     { "Max Spam List Timeouts" = "7" }
621     { "Spam List Timeouts History" = "10" }
622     { "Is Definitely Not Spam" = "%brules-dir%/approved.senders.rules" }
623     { "Is Definitely Spam" = "%brules-dir%/banned.senders.rules" }
624     { "Definite Spam Is High Scoring" = "yes" }
625     { "Ignore Spam Whitelist If Recipients Exceed" = "20" }
626     { "Max Spam Check Size" = "4000k" }
627     { "Use Watermarking" = "no" }
628     { "Add Watermark" = "yes" }
629     { "Check Watermarks With No Sender" = "yes" }
630     { "Treat Invalid Watermarks With No Sender as Spam" = "nothing" }
631     { "Check Watermarks To Skip Spam Checks" = "yes" }
632     { "Watermark Secret" = "%org-name%-BaruwaFW-Secret" }
633     { "Watermark Lifetime" = "604800" }
634     { "Watermark Header" = "X-%org-name%-BaruwaFW-Watermark:" }
635     { "Use SpamAssassin" = "yes" }
636     { "Max SpamAssassin Size" = "800k" }
637     { "Required SpamAssassin Score" = "%brules-dir%/spam.score.rules" }
638     { "High SpamAssassin Score" = "%brules-dir%/highspam.score.rules" }
639     { "SpamAssassin Auto Whitelist" = "yes" }
640     { "SpamAssassin Timeout" = "75" }
641     { "Max SpamAssassin Timeouts" = "10" }
642     { "SpamAssassin Timeouts History" = "30" }
643     { "Check SpamAssassin If On Spam List" = "yes" }
644     { "Include Binary Attachments In SpamAssassin" = "no" }
645     { "Spam Score" = "yes" }
646     { "Cache SpamAssassin Results" = "yes" }
647     { "SpamAssassin Cache Database File" = "%spool-dir%/incoming/SpamAssassin.cache.db" }
648     { "Rebuild Bayes Every" = "0" }
649     { "Wait During Bayes Rebuild" = "no" }
650     { "Use Custom Spam Scanner" = "no" }
651     { "Max Custom Spam Scanner Size" = "20k" }
652     { "Custom Spam Scanner Timeout" = "20" }
653     { "Max Custom Spam Scanner Timeouts" = "10" }
654     { "Custom Spam Scanner Timeout History" = "20" }
655     { "Spam Actions" = "%brules-dir%/spam.actions.rules" }
656     { "High Scoring Spam Actions" = "%brules-dir%/highspam.actions.rules" }
657     { "Non Spam Actions" = "%rules-dir%/nonspam.actions.rules" }
658     { "SpamAssassin Rule Actions" }
659     { "Sender Spam Report" = "%brules-dir%/senderspamreport.rules" }
660     { "Sender Spam List Report" = "%brules-dir%/senderspamrblreport.rules" }
661     { "Sender SpamAssassin Report" = "%brules-dir%/senderspamsareport.rules" }
662     { "Inline Spam Warning" = "%brules-dir%/inlinespamwarning.rules" }
663     { "Recipient Spam Report" = "%brules-dir%/recipientspamreport.rules" }
664     { "Enable Spam Bounce" = "%rules-dir%/bounce.rules" }
665     { "Bounce Spam As Attachment" = "no" }
666     { "Syslog Facility" = "mail" }
667     { "Log Speed" = "no" }
668     { "Log Spam" = "no" }
669     { "Log Non Spam" = "no" }
670     { "Log Delivery And Non-Delivery" = "no" }
671     { "Log Permitted Filenames" = "no" }
672     { "Log Permitted Filetypes" = "no" }
673     { "Log Permitted File MIME Types" = "no" }
674     { "Log Silent Viruses" = "no" }
675     { "Log Dangerous HTML Tags" = "no" }
676     { "Log SpamAssassin Rule Actions" = "no" }
677     { "SpamAssassin Temporary Dir" = "/var/spool/MailScanner/incoming/SpamAssassin-Temp" }
678     { "SpamAssassin User State Dir" }
679     { "SpamAssassin Install Prefix" }
680     { "SpamAssassin Site Rules Dir" = "/etc/mail/spamassassin" }
681     { "SpamAssassin Local Rules Dir" }
682     { "SpamAssassin Local State Dir" }
683     { "SpamAssassin Default Rules Dir" }
684     { "DB DSN" = "DBI:Pg:database=baruwa" }
685     { "DB Username" = "baruwa" }
686     { "DB Password" = "password" }
687     { "SQL Serial Number" = "SELECT MAX(value) AS confserialnumber FROM configurations WHERE internal='confserialnumber'" }
688     { "SQL Quick Peek" = "SELECT dbvalue(value) AS value FROM quickpeek WHERE external = ? AND (hostname = ? OR hostname='default') LIMIT 1" }
689     { "SQL Config" = "SELECT internal, dbvalue(value) AS value, hostname FROM quickpeek WHERE hostname=? OR hostname='default'" }
690     { "SQL Ruleset" = "SELECT row_number, ruleset AS rule FROM msrulesets WHERE name=?" }
691     { "SQL SpamAssassin Config" }
692     { "SQL Debug" = "no" }
693     { "Sphinx Host" = "127.0.0.1" }
694     { "Sphinx Port" = "9306" }
695     { "MCP Checks" = "no" }
696     { "First Check" = "spam" }
697     { "MCP Required SpamAssassin Score" = "1" }
698     { "MCP High SpamAssassin Score" = "10" }
699     { "MCP Error Score" = "1" }
700     { "MCP Header" = "X-%org-name%-BaruwaFW-MCPCheck:" }
701     { "Non MCP Actions" = "deliver" }
702     { "MCP Actions" = "deliver" }
703     { "High Scoring MCP Actions" = "deliver" }
704     { "Bounce MCP As Attachment" = "no" }
705     { "MCP Modify Subject" = "start" }
706     { "MCP Subject Text" = "{MCP?}" }
707     { "High Scoring MCP Modify Subject" = "start" }
708     { "High Scoring MCP Subject Text" = "{MCP?}" }
709     { "Is Definitely MCP" = "no" }
710     { "Is Definitely Not MCP" = "no" }
711     { "Definite MCP Is High Scoring" = "no" }
712     { "Always Include MCP Report" = "no" }
713     { "Detailed MCP Report" = "yes" }
714     { "Include Scores In MCP Report" = "no" }
715     { "Log MCP" = "no" }
716     { "MCP Max SpamAssassin Timeouts" = "20" }
717     { "MCP Max SpamAssassin Size" = "100k" }
718     { "MCP SpamAssassin Timeout" = "10" }
719     { "MCP SpamAssassin Prefs File" = "%mcp-dir%/mcp.spam.assassin.prefs.conf" }
720     { "MCP SpamAssassin User State Dir" }
721     { "MCP SpamAssassin Local Rules Dir" = "%mcp-dir%" }
722     { "MCP SpamAssassin Default Rules Dir" = "%mcp-dir%" }
723     { "MCP SpamAssassin Install Prefix" = "%mcp-dir%" }
724     { "Recipient MCP Report" = "%report-dir%/recipient.mcp.report.txt" }
725     { "Sender MCP Report" = "%report-dir%/sender.mcp.report.txt" }
726     { "Use Default Rules With Multiple Recipients" = "no" }
727     { "Read IP Address From Received Header" = "no" }
728     { "Spam Score Number Format" = "%d.1f" }
729     { "MailScanner Version Number" = "4.85.5" }
730     { "SpamAssassin Cache Timings" = "1800,300,10800,172800,600" }
731     { "Debug" = "no" }
732     { "Debug SpamAssassin" = "no" }
733     { "Run In Foreground" = "no" }
734     { "Always Looked Up Last" = "&BaruwaLog" }
735     { "Always Looked Up Last After Batch" = "no" }
736     { "Deliver In Background" = "yes" }
737     { "Delivery Method" = "batch" }
738     { "Split Exim Spool" = "no" }
739     { "Lockfile Dir" = "%spool-dir%/incoming/Locks" }
740     { "Custom Functions Dir" = "/usr/share/baruwa/CustomFunctions" }
741     { "Lock Type" }
742     { "Syslog Socket Type" }
743     { "Automatic Syntax Check" = "yes" }
744     { "Minimum Code Status" = "supported" }
745     { "include" = "/etc/MailScanner/conf.d/*.conf"}