<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
p.MsoPlainText, li.MsoPlainText, div.MsoPlainText
        {mso-style-priority:99;
        mso-style-link:"Plain Text Char";
        margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
span.PlainTextChar
        {mso-style-name:"Plain Text Char";
        mso-style-priority:99;
        mso-style-link:"Plain Text";
        font-family:"Calibri",sans-serif;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri",sans-serif;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 129.75pt 1.0in 129.7pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p class="MsoPlainText">Nikolaos,<o:p></o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText">First question I have how many ham/spam have you used to train the bayes. Need at least 200 of each for it to even start working. Also, BAYES_00=-1.9 score usually points to poor training of the bayes database. Basically it means that
 the those spam messages look a lot what spamasassin has been told are ham messages.<o:p></o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText">How are you training the database?<o:p></o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText">--<o:p></o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText">Hermes Secure Email Gateway<o:p></o:p></p>
<p class="MsoPlainText">Hermes Secure Email Gateway combines Open Source technologies such as Postfix, Apache SpamAssassin, ClamAV, Amavisd-new, MySQL and CipherMail under one unified web based Web GUI for easy administration and management of your incoming
 and ougoing email for your organization. Anti-spam, anti-virus and anti-malware protection, encrypted S/MIME, encrypted PDF and SMTP TLS support, built-in email archiving, end-user self-service web gui.<o:p></o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText">Download the free open-source appliance at:<o:p></o:p></p>
<p class="MsoPlainText">http://www.deeztek.com/hermes-secure-email-gateway/<o:p></o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText">> -----Original Message-----</p>
<p class="MsoPlainText">> From: amavis-users [mailto:amavis-users-</p>
<p class="MsoPlainText">> bounces+dino.edwards=mydirectmail.net@amavis.org] On Behalf Of</p>
<p class="MsoPlainText">> Nikolaos Milas</p>
<p class="MsoPlainText">> Sent: Friday, August 26, 2016 12:34 PM</p>
<p class="MsoPlainText">> To: amavis-users@amavis.org</p>
<p class="MsoPlainText">> Subject: Increasing spam filtering with spamassassin</p>
<p class="MsoPlainText">> </p>
<p class="MsoPlainText">> Hello,</p>
<p class="MsoPlainText">> </p>
<p class="MsoPlainText">> I am using:</p>
<p class="MsoPlainText">> </p>
<p class="MsoPlainText">>     amavisd-new-2.8.0-1.el6.rf.x86_64</p>
<p class="MsoPlainText">>     postfix-2.11.0-1.appletech.el6.x86_64</p>
<p class="MsoPlainText">>     clamd-0.98.4-1.el6.rf.x86_64</p>
<p class="MsoPlainText">>     spamassassin-3.3.1-3.el6.x86_64</p>
<p class="MsoPlainText">> </p>
<p class="MsoPlainText">> on CentOS 6.8 (current).</p>
<p class="MsoPlainText">> </p>
<p class="MsoPlainText">> I am trying to increase bayesian filtering of spam using spamassassin, but I</p>
<p class="MsoPlainText">> don't seem to be having any good results.</p>
<p class="MsoPlainText">> </p>
<p class="MsoPlainText">> My question is why I am having so little success with bayesian filtering. Am I</p>
<p class="MsoPlainText">> doing anything wrong?</p>
<p class="MsoPlainText">> </p>
<p class="MsoPlainText">> Actually, in all mails I see: "BAYES_00=-1.9". That indicates something is not</p>
<p class="MsoPlainText">> correctly configured?</p>
<p class="MsoPlainText">> </p>
<p class="MsoPlainText">> Please help me to find out any pitfalls and improve spam filtering!</p>
<p class="MsoPlainText">> </p>
<p class="MsoPlainText">> Here is an example of an email that I would expect to be filtered out (I have</p>
<p class="MsoPlainText">> used sa-learn for a lot of similar ones - we are getting a lot of such</p>
<p class="MsoPlainText">> scandinavian language spam recently):</p>
<p class="MsoPlainText">> </p>
<p class="MsoPlainText">>     Return-Path: <<a href="mailto:mail@mail-mode.com"><span style="color:windowtext;text-decoration:none">mail@mail-mode.com</span></a>></p>
<p class="MsoPlainText">>     Delivered-To: <a href="mailto:someuser@space.noa.gr">
<span style="color:windowtext;text-decoration:none">someuser@space.noa.gr</span></a></p>
<p class="MsoPlainText">>     Received: ...</p>
<p class="MsoPlainText">>     Authentication-Results: vmail.noa.gr; dkim=pass (1024-bit key)</p>
<p class="MsoPlainText">>     header.d=mail-mode.com <a href="mailto:header.i=postmaster@mail-mode.com">
<span style="color:windowtext;text-decoration:none">header.i=postmaster@mail-mode.com</span></a></p>
<p class="MsoPlainText">>     header.b=IUd2VFtO</p>
<p class="MsoPlainText">>     Authentication-Results: mailgw1.noa.gr (amavisd-new); dkim=pass</p>
<p class="MsoPlainText">>     (1024-bit key) header.d=mail-mode.com; domainkeys=fail (1024-bit</p>
<p class="MsoPlainText">>     key) reason="fail (message has been altered)"</p>
<p class="MsoPlainText">>     <a href="mailto:header.from=mail@mail-mode.com"><span style="color:windowtext;text-decoration:none">header.from=mail@mail-mode.com</span></a> header.d=mail-mode.com</p>
<p class="MsoPlainText">>     X-Virus-Scanned: amavisd-new at noa.gr</p>
<p class="MsoPlainText">>     X-Spam-Flag: NO</p>
<p class="MsoPlainText">>     X-Spam-Score: -1.512</p>
<p class="MsoPlainText">>     X-Spam-Level: X-Spam-Status: No, score=-1.512 tagged_above=-999</p>
<p class="MsoPlainText">>     required=6.31 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1,</p>
<p class="MsoPlainText">>     DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=0.001,</p>
<p class="MsoPlainText">>     MIME_HTML_ONLY=0.723, RP_MATCHES_RCVD=-0.236] autolearn=no</p>
<p class="MsoPlainText">>     DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; s=mail;</p>
<p class="MsoPlainText">>     d=mail-mode.com;</p>
<p class="MsoPlainText">>     DomainKey-Signature: a=rsa-sha1; c=nofws; q=dns; s=mail;</p>
<p class="MsoPlainText">>     d=mail-mode.com;</p>
<p class="MsoPlainText">>     To: <a href="mailto:someuser@space.noa.gr"><span style="color:windowtext;text-decoration:none">someuser@space.noa.gr</span></a></p>
<p class="MsoPlainText">>     Subject: Anne er nå online</p>
<p class="MsoPlainText">>     Message-ID: <<a href="mailto:5910451bc641971555841031395bc842@mail-mode.com"><span style="color:windowtext;text-decoration:none">5910451bc641971555841031395bc842@mail-mode.com</span></a>></p>
<p class="MsoPlainText">>     Date: Thu, 25 Aug 2016 12:22:25 +0000</p>
<p class="MsoPlainText">>     From: "insta-love" <<a href="mailto:mail@mail-mode.com"><span style="color:windowtext;text-decoration:none">mail@mail-mode.com</span></a>></p>
<p class="MsoPlainText">>     Reply-To: <a href="mailto:mail@mail-mode.com"><span style="color:windowtext;text-decoration:none">mail@mail-mode.com</span></a></p>
<p class="MsoPlainText">>     MIME-Version: 1.0</p>
<p class="MsoPlainText">>     X-Mailer-LID: 9,1,2</p>
<p class="MsoPlainText">>     List-Unsubscribe:</p>
<p class="MsoPlainText">>     <<a href="http://mail-mode.com/unsubscribe.php?M=26821&C=e4d9b2f480f3e4a0ad7a4ab9faca2458&L=2&N=17"><span style="color:windowtext;text-decoration:none">http://mail-</span></a></p>
<p class="MsoPlainText"><a href="http://mail-mode.com/unsubscribe.php?M=26821&C=e4d9b2f480f3e4a0ad7a4ab9faca2458&L=2&N=17"><span style="color:windowtext;text-decoration:none">> mode.com/unsubscribe.php?M=26821&C=e4d9b2f480f3e4a0ad7a4ab9faca2</span></a></p>
<p class="MsoPlainText"><a href="http://mail-mode.com/unsubscribe.php?M=26821&C=e4d9b2f480f3e4a0ad7a4ab9faca2458&L=2&N=17"><span style="color:windowtext;text-decoration:none">> 458&L=2&N=17</span></a>></p>
<p class="MsoPlainText">>     X-Mailer-RecptId: 26821</p>
<p class="MsoPlainText">>     X-Mailer-SID: 17</p>
<p class="MsoPlainText">>     X-Mailer-Sent-By: 1</p>
<p class="MsoPlainText">>     Content-Transfer-Encoding: 8bit</p>
<p class="MsoPlainText">>     Thread-Topic: Anne er nå online</p>
<p class="MsoPlainText">>     Content-Type: multipart/alternative;</p>
<p class="MsoPlainText">>     boundary="----_=_NextPart_001_00f39c84.57c0610a"</p>
<p class="MsoPlainText">> </p>
<p class="MsoPlainText">> I am regularly running sa-learn for spam mails.</p>
<p class="MsoPlainText">> </p>
<p class="MsoPlainText">> Here is the associated /etc/mail/spamassassin/local.cf:</p>
<p class="MsoPlainText">> </p>
<p class="MsoPlainText">>     required_hits 5</p>
<p class="MsoPlainText">>     report_safe 0</p>
<p class="MsoPlainText">>     rewrite_header Subject [SPAM]</p>
<p class="MsoPlainText">> </p>
<p class="MsoPlainText">>     add_header all Report _REPORT_</p>
<p class="MsoPlainText">> </p>
<p class="MsoPlainText">>     bayes_expiry_max_db_size 300000</p>
<p class="MsoPlainText">> </p>
<p class="MsoPlainText">>     score LOTS_OF_MONEY 0.9</p>
<p class="MsoPlainText">>     score FREEMAIL_FORGED_FROMDOMAIN 0.5</p>
<p class="MsoPlainText">>     score WEIRD_PORT 1.5</p>
<p class="MsoPlainText">>     score TO_IN_SUBJ 1.0</p>
<p class="MsoPlainText">> </p>
<p class="MsoPlainText">>     score RCVD_IN_MSPIKE_BL 1.0</p>
<p class="MsoPlainText">>     score RCVD_IN_MSPIKE_L5 2.5</p>
<p class="MsoPlainText">>     score RCVD_IN_MSPIKE_L4 2.0</p>
<p class="MsoPlainText">>     score RCVD_IN_MSPIKE_L3 1.5</p>
<p class="MsoPlainText">>     score RCVD_IN_MSPIKE_L2 1.0</p>
<p class="MsoPlainText">>     score RCVD_IN_MSPIKE_H5 -1.0</p>
<p class="MsoPlainText">>     score RCVD_IN_MSPIKE_H4 -0.8</p>
<p class="MsoPlainText">>     score RCVD_IN_MSPIKE_H3 -0.6</p>
<p class="MsoPlainText">>     score RCVD_IN_MSPIKE_H2 -0.4</p>
<p class="MsoPlainText">>     score RCVD_IN_MSPIKE_WL -0.5</p>
<p class="MsoPlainText">>     score SPF_NONE 0.001</p>
<p class="MsoPlainText">>     score SPF_HELO_NONE 0.001</p>
<p class="MsoPlainText">>     score SPF_PASS -0.1</p>
<p class="MsoPlainText">>     score SPF_HELO_PASS -0.1</p>
<p class="MsoPlainText">>     score SPF_FAIL 3.0</p>
<p class="MsoPlainText">>     score SPF_HELO_FAIL 3.0</p>
<p class="MsoPlainText">>     score SPF_NEUTRAL 0.001</p>
<p class="MsoPlainText">>     score SPF_HELO_NEUTRAL 0.001</p>
<p class="MsoPlainText">>     score SPF_SOFTFAIL 1.0</p>
<p class="MsoPlainText">>     score SPF_HELO_SOFTFAIL 1.0</p>
<p class="MsoPlainText">> </p>
<p class="MsoPlainText">> This is the bayesian filter dir:</p>
<p class="MsoPlainText">> </p>
<p class="MsoPlainText">>     # ls -la /var/amavis/var/.spamassassin/</p>
<p class="MsoPlainText">>     total 73680</p>
<p class="MsoPlainText">>     drwx------ 2 amavis amavis     4096 Aug 26 19:20 .</p>
<p class="MsoPlainText">>     drwxr-x--- 3 amavis amavis     4096 Aug 26 05:26 ..</p>
<p class="MsoPlainText">>     -rw------- 1 amavis amavis    45096 Aug 26 19:22 bayes_journal</p>
<p class="MsoPlainText">>     -rw------- 1 amavis amavis 83918848 Aug 26 19:20 bayes_seen</p>
<p class="MsoPlainText">>     -rw------- 1 amavis amavis 10944512 Aug 26 19:20 bayes_toks</p>
<p class="MsoPlainText">> </p>
<p class="MsoPlainText">> Here is my /etc/amavisd.conf:</p>
<p class="MsoPlainText">> </p>
<p class="MsoPlainText">>     use strict;</p>
<p class="MsoPlainText">> </p>
<p class="MsoPlainText">>     $max_servers = 2;            # num of pre-forked children (2..30 is</p>
<p class="MsoPlainText">>     common), -m</p>
<p class="MsoPlainText">>     $daemon_user  = "amavis";     # (no default;  customary: vscan or</p>
<p class="MsoPlainText">>     amavis), -u</p>
<p class="MsoPlainText">>     $daemon_group = "amavis";     # (no default;  customary: vscan or</p>
<p class="MsoPlainText">>     amavis), -g</p>
<p class="MsoPlainText">> </p>
<p class="MsoPlainText">>     $mydomain = 'noa.gr';   # a convenient default for other settings</p>
<p class="MsoPlainText">> </p>
<p class="MsoPlainText">>     $MYHOME = '/var/amavis';   # a convenient default for other settings, -H</p>
<p class="MsoPlainText">>     $TEMPBASE = "$MYHOME/tmp";   # working directory, needs to exist, -T</p>
<p class="MsoPlainText">>     $ENV{TMPDIR} = $TEMPBASE;    # environment variable TMPDIR, used by</p>
<p class="MsoPlainText">>     SA, etc.</p>
<p class="MsoPlainText">>     $QUARANTINEDIR = "/var/blockedmail";</p>
<p class="MsoPlainText">> </p>
<p class="MsoPlainText">>     $db_home   = "$MYHOME/db";      # dir for bdb nanny/cache/snmp</p>
<p class="MsoPlainText">>     databases, -D</p>
<p class="MsoPlainText">>     $helpers_home = "$MYHOME/var";  # working directory for SpamAssassin,</p>
<p class="MsoPlainText">> -S</p>
<p class="MsoPlainText">>     $lock_file = "$MYHOME/var/amavisd.lock";  # -L</p>
<p class="MsoPlainText">>     $pid_file  = "$MYHOME/var/amavisd.pid";   # -P</p>
<p class="MsoPlainText">> </p>
<p class="MsoPlainText">>     $log_level = 3;              # verbosity 0..5, -d</p>
<p class="MsoPlainText">>     $log_recip_templ = undef;    # disable by-recipient level-0 log entries</p>
<p class="MsoPlainText">>     $do_syslog = 1;              # log via syslogd (preferred)</p>
<p class="MsoPlainText">>     $syslog_facility = 'local6';   # Syslog facility as a string</p>
<p class="MsoPlainText">>                 # e.g.: mail, daemon, user, local0, ... local7</p>
<p class="MsoPlainText">> </p>
<p class="MsoPlainText">>     $enable_db = 1;              # enable use of BerkeleyDB/libdb (SNMP</p>
<p class="MsoPlainText">>     and nanny)</p>
<p class="MsoPlainText">>     # $enable_zmq = 1;           # enable use of ZeroMQ (SNMP and nanny)</p>
<p class="MsoPlainText">>     $nanny_details_level = 2;    # nanny verbosity: 1: traditional, 2:</p>
<p class="MsoPlainText">>     detailed</p>
<p class="MsoPlainText">>     $enable_dkim_verification = 1;  # enable DKIM signatures verification</p>
<p class="MsoPlainText">>     $enable_dkim_signing = 1;    # load DKIM signing code, keys defined</p>
<p class="MsoPlainText">>     by dkim_key</p>
<p class="MsoPlainText">> </p>
<p class="MsoPlainText">>     @local_domains_maps = ( [".$mydomain"] );  # list of all local domains</p>
<p class="MsoPlainText">> </p>
<p class="MsoPlainText">>     @mynetworks = qw( 127.0.0.0/8 [::1] [FE80::]/10 [FEC0::]/10</p>
<p class="MsoPlainText">>                        10.0.0.0/8 172.16.0.0/12 192.168.0.0/16 );</p>
<p class="MsoPlainText">> </p>
<p class="MsoPlainText">>     $unix_socketname = "$MYHOME/amavisd.sock";  # amavisd-release or</p>
<p class="MsoPlainText">>     amavis-milter</p>
<p class="MsoPlainText">>                     # option(s) -p overrides $inet_socket_port and</p>
<p class="MsoPlainText">>     $unix_socketname</p>
<p class="MsoPlainText">> </p>
<p class="MsoPlainText">>     $inet_socket_port = [10024,10028];  # listen on multiple TCP ports</p>
<p class="MsoPlainText">> </p>
<p class="MsoPlainText">>     $interface_policy{'10028'} = 'BYPASS';</p>
<p class="MsoPlainText">> </p>
<p class="MsoPlainText">>     $policy_bank{'BYPASS'} = {  # those configured to send mail to port</p>
<p class="MsoPlainText">>     10028</p>
<p class="MsoPlainText">>         bypass_virus_checks_maps  => [1],  # don't virus-check this mail</p>
<p class="MsoPlainText">>         bypass_spam_checks_maps   => [1],  # don't spam-check this mail</p>
<p class="MsoPlainText">>         bypass_banned_checks_maps => [1],  # don't banned-check this mail</p>
<p class="MsoPlainText">>         bypass_header_checks_maps => [1],  # don't header-check this mail</p>
<p class="MsoPlainText">>     };</p>
<p class="MsoPlainText">> </p>
<p class="MsoPlainText">>     $policy_bank{'MYNETS'} = {   # mail originating from @mynetworks</p>
<p class="MsoPlainText">>        originating => 1,  # is true in MYNETS by default, but let's make</p>
<p class="MsoPlainText">>     it explicit</p>
<p class="MsoPlainText">>        os_fingerprint_method => undef,  # don't query p0f for internal</p>
<p class="MsoPlainText">>     clients</p>
<p class="MsoPlainText">>     };</p>
<p class="MsoPlainText">> </p>
<p class="MsoPlainText">>     $interface_policy{'10026'} = 'ORIGINATING';</p>
<p class="MsoPlainText">> </p>
<p class="MsoPlainText">>     $policy_bank{'ORIGINATING'} = {  # mail supposedly originating from</p>
<p class="MsoPlainText">>     our users</p>
<p class="MsoPlainText">>        originating => 1,  # declare that mail was submitted by our smtp</p>
<p class="MsoPlainText">>     client</p>
<p class="MsoPlainText">>        allow_disclaimers => 1,  # enables disclaimer insertion if available</p>
<p class="MsoPlainText">>        warnbadhsender   => 1,</p>
<p class="MsoPlainText">>        forward_method => 'smtp:[127.0.0.1]:10027',</p>
<p class="MsoPlainText">>        smtpd_discard_ehlo_keywords => ['8BITMIME'],</p>
<p class="MsoPlainText">>        bypass_banned_checks_maps => [1],  # allow sending any file names</p>
<p class="MsoPlainText">>     and types</p>
<p class="MsoPlainText">>        terminate_dsn_on_notify_success => 0,  # don't remove</p>
<p class="MsoPlainText">>     NOTIFY=SUCCESS option</p>
<p class="MsoPlainText">>     };</p>
<p class="MsoPlainText">> </p>
<p class="MsoPlainText">>     $interface_policy{'SOCK'} = 'AM.PDP-SOCK'; # only applies with</p>
<p class="MsoPlainText">>     $unix_socketname</p>
<p class="MsoPlainText">> </p>
<p class="MsoPlainText">>     $policy_bank{'AM.PDP-SOCK'} = {</p>
<p class="MsoPlainText">>        protocol => 'AM.PDP',</p>
<p class="MsoPlainText">>        auth_required_release => 0,  # do not require secret_id for</p>
<p class="MsoPlainText">>     amavisd-release</p>
<p class="MsoPlainText">>     };</p>
<p class="MsoPlainText">> </p>
<p class="MsoPlainText">>     $sa_tag_level_deflt  = -999;  # add spam info headers if at, or</p>
<p class="MsoPlainText">>     above that level</p>
<p class="MsoPlainText">>     $sa_tag2_level_deflt = 6.31;  # add 'spam detected' headers at that</p>
<p class="MsoPlainText">>     level</p>
<p class="MsoPlainText">>     $sa_kill_level_deflt = 8.31;  # triggers spam evasive actions (e.g.</p>
<p class="MsoPlainText">>     blocks mail)</p>
<p class="MsoPlainText">>     $sa_dsn_cutoff_level = 10;   # spam level beyond which a DSN is not sent</p>
<p class="MsoPlainText">>     $sa_crediblefrom_dsn_cutoff_level = 10; # likewise, but for a likely</p>
<p class="MsoPlainText">>     valid From</p>
<p class="MsoPlainText">>     # $sa_quarantine_cutoff_level = 20; # spam level beyond which</p>
<p class="MsoPlainText">>     quarantine is off</p>
<p class="MsoPlainText">> </p>
<p class="MsoPlainText">>     $penpals_bonus_score = 8;    # (no effect without a @storage_sql_dsn</p>
<p class="MsoPlainText">>     database)</p>
<p class="MsoPlainText">>     # $penpals_threshold_high = $sa_kill_level_deflt;  # don't waste</p>
<p class="MsoPlainText">>     time on hi spam</p>
<p class="MsoPlainText">>     # $bounce_killer_score = 100;  # spam score points to add for</p>
<p class="MsoPlainText">>     joe-jobbed bounces</p>
<p class="MsoPlainText">> </p>
<p class="MsoPlainText">>     # $sa_mail_body_size_limit = 400*1024; # don't waste time on SA if</p>
<p class="MsoPlainText">>     mail is larger</p>
<p class="MsoPlainText">>     $sa_local_tests_only = 0;    # only tests which do not require</p>
<p class="MsoPlainText">>     internet access?</p>
<p class="MsoPlainText">> </p>
<p class="MsoPlainText">>     $mailfrom_notify_admin     = "virusalert\@$mydomain";  #</p>
<p class="MsoPlainText">>     notifications sender</p>
<p class="MsoPlainText">>     $mailfrom_notify_recip     = "virusalert\@$mydomain";  #</p>
<p class="MsoPlainText">>     notifications sender</p>
<p class="MsoPlainText">>     $mailfrom_notify_spamadmin = "spam.police\@$mydomain"; #</p>
<p class="MsoPlainText">>     notifications sender</p>
<p class="MsoPlainText">>     $mailfrom_to_quarantine = ''; # null return path; uses original</p>
<p class="MsoPlainText">>     sender if undef</p>
<p class="MsoPlainText">> </p>
<p class="MsoPlainText">>     @addr_extension_virus_maps      = ('virus');</p>
<p class="MsoPlainText">>     @addr_extension_banned_maps     = ('banned');</p>
<p class="MsoPlainText">>     @addr_extension_spam_maps       = ('spam');</p>
<p class="MsoPlainText">>     @addr_extension_bad_header_maps = ('badh');</p>
<p class="MsoPlainText">> </p>
<p class="MsoPlainText">>     @bypass_header_checks_maps = (1);</p>
<p class="MsoPlainText">> </p>
<p class="MsoPlainText">>     $path = '/usr/local/sbin:/usr/local/bin:/usr/sbin:/sbin:/usr/bin:/bin';</p>
<p class="MsoPlainText">> </p>
<p class="MsoPlainText">>     $MAXLEVELS = 14;</p>
<p class="MsoPlainText">>     $MAXFILES = 1500;</p>
<p class="MsoPlainText">>     $MIN_EXPANSION_QUOTA =      100*1024;  # bytes  (default undef, not</p>
<p class="MsoPlainText">>     enforced)</p>
<p class="MsoPlainText">>     $MAX_EXPANSION_QUOTA = 300*1024*1024;  # bytes  (default undef, not</p>
<p class="MsoPlainText">>     enforced)</p>
<p class="MsoPlainText">> </p>
<p class="MsoPlainText">>     $sa_spam_subject_tag = '***Spam*** ';</p>
<p class="MsoPlainText">>     $defang_virus  = 1;  # MIME-wrap passed infected mail</p>
<p class="MsoPlainText">>     $defang_banned = 1;  # MIME-wrap passed mail containing banned name</p>
<p class="MsoPlainText">>     # for defanging bad headers only turn on certain minor contents</p>
<p class="MsoPlainText">>     categories:</p>
<p class="MsoPlainText">>     $defang_by_ccat{CC_BADH.",3"} = 1;  # NUL or CR character in header</p>
<p class="MsoPlainText">>     $defang_by_ccat{CC_BADH.",5"} = 1;  # header line longer than 998</p>
<p class="MsoPlainText">>     characters</p>
<p class="MsoPlainText">>     $defang_by_ccat{CC_BADH.",6"} = 1;  # header field syntax error</p>
<p class="MsoPlainText">> </p>
<p class="MsoPlainText">>     $myhostname = 'mailgw1.noa.gr';  # must be a fully-qualified domain</p>
<p class="MsoPlainText">>     name!</p>
<p class="MsoPlainText">> </p>
<p class="MsoPlainText">>     $final_virus_destiny      = D_DISCARD;</p>
<p class="MsoPlainText">>     $final_banned_destiny     = D_DISCARD;</p>
<p class="MsoPlainText">>     $final_spam_destiny       = D_DISCARD;  #!!!  D_DISCARD / D_REJECT /</p>
<p class="MsoPlainText">>     D_PASS</p>
<p class="MsoPlainText">>     # $final_bad_header_destiny = D_BOUNCE;</p>
<p class="MsoPlainText">>     $final_bad_header_destiny = D_PASS;</p>
<p class="MsoPlainText">>     # $bad_header_quarantine_method = undef;</p>
<p class="MsoPlainText">> </p>
<p class="MsoPlainText">>     $virus_quarantine_method = "local:virus/%n-%m" ;</p>
<p class="MsoPlainText">>     $spam_quarantine_method = "local:spam/%n-%m" ;</p>
<p class="MsoPlainText">>     $banned_files_quarantine_method = "local:banned/%n-%m" ;</p>
<p class="MsoPlainText">> </p>
<p class="MsoPlainText">>     # REMAINING IMPORTANT VARIABLES ARE LISTED HERE BECAUSE OF</p>
<p class="MsoPlainText">> LONGER</p>
<p class="MsoPlainText">>     ASSIGNMENTS</p>
<p class="MsoPlainText">> </p>
<p class="MsoPlainText">>     @keep_decoded_original_maps = (new_RE(</p>
<p class="MsoPlainText">>        qr'^MAIL$',   # retain full original message for virus checking</p>
<p class="MsoPlainText">>        qr'^MAIL-UNDECIPHERABLE$', # recheck full mail if it contains</p>
<p class="MsoPlainText">>     undecipherables</p>
<p class="MsoPlainText">>        qr'^(ASCII(?! cpio)|text|uuencoded|xxencoded|binhex)'i,</p>
<p class="MsoPlainText">>     # qr'^Zip archive data',     # don't trust Archive::Zip</p>
<p class="MsoPlainText">>     ));</p>
<p class="MsoPlainText">> </p>
<p class="MsoPlainText">>     $banned_filename_re = new_RE(</p>
<p class="MsoPlainText">> </p>
<p class="MsoPlainText">>     ### BLOCKED ANYWHERE</p>
<p class="MsoPlainText">>     # qr'^UNDECIPHERABLE$',  # is or contains any undecipherable</p>
<p class="MsoPlainText">> components</p>
<p class="MsoPlainText">>        qr'^\.(exe-ms|dll)$',                   # banned file(1) types,</p>
<p class="MsoPlainText">>     rudimentary</p>
<p class="MsoPlainText">>     # qr'^\.(exe|lha|cab|dll)$',              # banned file(1) types</p>
<p class="MsoPlainText">> </p>
<p class="MsoPlainText">>     ### BLOCK THE FOLLOWING, EXCEPT WITHIN UNIX ARCHIVES:</p>
<p class="MsoPlainText">>     # [ qr'^\.(gz|bz2)$'             => 0 ],  # allow any in gzip or bzip2</p>
<p class="MsoPlainText">>        [ qr'^\.(rpm|cpio|tar)$'       => 0 ],  # allow any in Unix-type</p>
<p class="MsoPlainText">>     archives</p>
<p class="MsoPlainText">> </p>
<p class="MsoPlainText">>        qr'.\.(pif|scr)$'i,                     # banned extensions -</p>
<p class="MsoPlainText">>     rudimentary</p>
<p class="MsoPlainText">>     # qr'^\.zip$',                            # block zip type</p>
<p class="MsoPlainText">> </p>
<p class="MsoPlainText">>     ### BLOCK THE FOLLOWING, EXCEPT WITHIN ARCHIVES:</p>
<p class="MsoPlainText">>     # [ qr'^\.(zip|rar|arc|arj|zoo)$'=> 0 ],  # allow any within these</p>
<p class="MsoPlainText">>     archives</p>
<p class="MsoPlainText">> </p>
<p class="MsoPlainText">>        qr'^application/x-msdownload$'i,        # block these MIME types</p>
<p class="MsoPlainText">>        qr'^application/x-msdos-program$'i,</p>
<p class="MsoPlainText">>        qr'^application/hta$'i,</p>
<p class="MsoPlainText">> </p>
<p class="MsoPlainText">>     # qr'^message/partial$'i,         # rfc2046 MIME type</p>
<p class="MsoPlainText">>     # qr'^message/external-body$'i,   # rfc2046 MIME type</p>
<p class="MsoPlainText">> </p>
<p class="MsoPlainText">>     # qr'^(application/x-msmetafile|image/x-wmf)$'i,  # Windows Metafile</p>
<p class="MsoPlainText">>     MIME type</p>
<p class="MsoPlainText">>     # qr'^\.wmf$',                            # Windows Metafile file(1)</p>
<p class="MsoPlainText">>     type</p>
<p class="MsoPlainText">> </p>
<p class="MsoPlainText">>        # block certain double extensions in filenames</p>
<p class="MsoPlainText">>     qr'^(?!cid:).*\.[^./]*[A-Za-</p>
<p class="MsoPlainText">> z][^./]*\.\s*(exe|vbs|pif|scr|bat|cmd|com|cpl|dll)[.\s]*$'i,</p>
<p class="MsoPlainText">> </p>
<p class="MsoPlainText">>     # qr'\{[0-9a-f]{8}(-[0-9a-f]{4}){3}-[0-9a-f]{12}\}?'i, # Class ID</p>
<p class="MsoPlainText">>     CLSID, strict</p>
<p class="MsoPlainText">>     # qr'\{[0-9a-z]{4,}(-[0-9a-z]{4,}){0,7}\}?'i, # Class ID extension</p>
<p class="MsoPlainText">>     CLSID, loose</p>
<p class="MsoPlainText">> </p>
<p class="MsoPlainText">>        qr'.\.(exe|vbs|pif|scr|cpl)$'i,             # banned extension -</p>
<p class="MsoPlainText">>     basic</p>
<p class="MsoPlainText">>     # qr'.\.(exe|vbs|pif|scr|cpl|bat|cmd|com)$'i, # banned extension -</p>
<p class="MsoPlainText">>     basic+cmd</p>
<p class="MsoPlainText">>     #</p>
<p class="MsoPlainText">> </p>
<p class="MsoPlainText">> qr'.\.(ade|adp|app|bas|bat|chm|cmd|com|cpl|crt|emf|exe|fxp|grp|hlp|</p>
<p class="MsoPlainText">> hta|</p>
<p class="MsoPlainText">>     # inf|ini|ins|isp|js|jse|lib|lnk|mda|mdb|mde|mdt|mdw|mdz|msc|msi|</p>
<p class="MsoPlainText">>     #</p>
<p class="MsoPlainText">> msp|mst|ocx|ops|pcd|pif|prg|reg|scr|sct|shb|shs|sys|vb|vbe|vbs|vxd|</p>
<p class="MsoPlainText">>     #        wmf|wsc|wsf|wsh)$'ix,                # banned extensions - long</p>
<p class="MsoPlainText">>     # qr'.\.(asd|asf|asx|url|vcs|wmd|wmz)$'i,     # consider also</p>
<p class="MsoPlainText">>     # qr'.\.(ani|cur|ico)$'i,                 # banned cursors and icons</p>
<p class="MsoPlainText">>     filename</p>
<p class="MsoPlainText">>     # qr'^\.ani$',                            # banned animated cursor</p>
<p class="MsoPlainText">>     file(1) type</p>
<p class="MsoPlainText">>     # qr'.\.(mim|b64|bhx|hqx|xxe|uu|uue)$'i,  # banned extension -</p>
<p class="MsoPlainText">>     WinZip vulnerab.</p>
<p class="MsoPlainText">>     );</p>
<p class="MsoPlainText">>     # See <a href="http://support.microsoft.com/default.aspx?scid=kb;EN-US;q262631">
<span style="color:windowtext;text-decoration:none">http://support.microsoft.com/default.aspx?scid=kb;EN-US;q262631</span></a></p>
<p class="MsoPlainText">>     # and <a href="http://www.cknow.com/vtutor/vtextensions.htm">
<span style="color:windowtext;text-decoration:none">http://www.cknow.com/vtutor/vtextensions.htm</span></a></p>
<p class="MsoPlainText">> </p>
<p class="MsoPlainText">>     #</p>
<p class="MsoPlainText">>     # ENVELOPE SENDER HARD WHITELISTING</p>
<p class="MsoPlainText">> </p>
<p class="MsoPlainText">>     read_hash(\%whitelist_sender, '/etc/amavis/whitelist_domains');</p>
<p class="MsoPlainText">> </p>
<p class="MsoPlainText">>     # ENVELOPE SENDER HARD BLACKLISTING</p>
<p class="MsoPlainText">> </p>
<p class="MsoPlainText">>     read_hash(\%blacklist_sender, '/etc/amavis/blacklist');</p>
<p class="MsoPlainText">> </p>
<p class="MsoPlainText">>     #</p>
<p class="MsoPlainText">>     # SaneSecurity Medium-Risk Rules adjustment (rather than rejection)</p>
<p class="MsoPlainText">> </p>
<p class="MsoPlainText">>     @virus_name_to_spam_score_maps =</p>
<p class="MsoPlainText">>         (new_RE(                                           # the order</p>
<p class="MsoPlainText">>     matters!</p>
<p class="MsoPlainText">>           [ qr'^Doppelstern\.Hoax\.'  => 5.0 ],            #</p>
<p class="MsoPlainText">>     doppelstern.ndb rules</p>
<p class="MsoPlainText">>           [ qr'^Doppelstern\.Lott\.'  => 5.0 ],</p>
<p class="MsoPlainText">>           [ qr'^Doppelstern\.Loan\.'  => 5.0 ],</p>
<p class="MsoPlainText">>           [ qr'^Doppelstern\.Scam4\.'  => 5.0 ],</p>
<p class="MsoPlainText">>           [ qr'^Doppelstern\.Phishing\.'  => 5.0 ],</p>
<p class="MsoPlainText">>           [ qr'^Doppelstern\.Junk\.'  => 5.0 ],</p>
<p class="MsoPlainText">>           [ qr'^ScamNailer\.Phish\.'  => 5.0 ],            #</p>
<p class="MsoPlainText">>     scamnailer.ndb rules</p>
<p class="MsoPlainText">>           [ qr'^Sanesecurity\.Jurlbl\.Auto\.'  => 5.0 ],   # jurlbla.ndb</p>
<p class="MsoPlainText">>     rules</p>
<p class="MsoPlainText">>           [ qr'^Sanesecurity\.Jurlbl\.8993\.'  => 5.0 ],   # jurlbl.ndb</p>
<p class="MsoPlainText">>     rule 8993</p>
<p class="MsoPlainText">>           [ qr'^Sanesecurity\.Lott\.'  => 5.0 ],           # lott.ndb rules</p>
<p class="MsoPlainText">>           [ qr'^Sanesecurity\.Spam\.ldb\.'  => 5.0 ],      # spam.ldb rules</p>
<p class="MsoPlainText">>           [ qr'^Sanesecurity\.Spear\.'  => 5.0 ],          # spear.ndb rules</p>
<p class="MsoPlainText">>           [ qr'^Sanesecurity\.SpearL\.'  => 5.0 ],         # spearl.ndb</p>
<p class="MsoPlainText">>     rules</p>
<p class="MsoPlainText">>           [ qr'^winnow\.phish\.'  => 5.0 ],                #</p>
<p class="MsoPlainText">>     winnow_phish_complete_url.ndb rules</p>
<p class="MsoPlainText">>           [ qr'^winnow\.spam\.'  => 5.0 ],</p>
<p class="MsoPlainText">>           [ qr'^winnow\.malware\.'  => 5.0 ],</p>
<p class="MsoPlainText">>           [ qr'^winnow\.malware\.maccodec\.'  => 5.0 ],    #</p>
<p class="MsoPlainText">>     winnow.complex.patterns.ldb rules</p>
<p class="MsoPlainText">>           [ qr'^winnow\.complex\.patterns\.'  => 5.0 ],</p>
<p class="MsoPlainText">>           [ qr'^winnow\.trojan\.ts\.'  => 5.0 ]            #</p>
<p class="MsoPlainText">>     winnow_extended_malware_links.ndb</p>
<p class="MsoPlainText">>        ));</p>
<p class="MsoPlainText">> </p>
<p class="MsoPlainText">>     # ENVELOPE SENDER SOFT-WHITELISTING / SOFT-BLACKLISTING</p>
<p class="MsoPlainText">> </p>
<p class="MsoPlainText">>     @score_sender_maps = ({ # a by-recipient hash lookup table,</p>
<p class="MsoPlainText">>                              # results from all matching recipient</p>
<p class="MsoPlainText">>     tables are summed</p>
<p class="MsoPlainText">> </p>
<p class="MsoPlainText">>     # ## per-recipient personal tables  (NOTE: positive: black,</p>
<p class="MsoPlainText">>     negative: white)</p>
<p class="MsoPlainText">>     # 'user1@example.com'  => [{'bla-mobile.press@example.com' => 10.0}],</p>
<p class="MsoPlainText">>     # 'user3@example.com'  => [{'.ebay.com'                 => -3.0}],</p>
<p class="MsoPlainText">>     # 'user4@example.com'  => [{'cleargreen@cleargreen.com' => -7.0,</p>
<p class="MsoPlainText">>     #                           '.cleargreen.com'           => -5.0}],</p>
<p class="MsoPlainText">> </p>
<p class="MsoPlainText">>        ## site-wide opinions about senders (the '.' matches any recipient)</p>
<p class="MsoPlainText">>        '.' => [  # the _first_ matching sender determines the score boost</p>
<p class="MsoPlainText">> </p>
<p class="MsoPlainText">>         new_RE(  # regexp-type lookup table, just happens to be all</p>
<p class="MsoPlainText">>     soft-blacklist</p>
<p class="MsoPlainText">>     [qr'^(bulkmail|offers|cheapbenefits|earnmoney|foryou)@'i => 5.0],</p>
<p class="MsoPlainText">>     [qr'^(greatcasino|investments|lose_weight_today|market\.alert)@'i=></p>
<p class="MsoPlainText">>     5.0],</p>
<p class="MsoPlainText">>     [qr'^(money2you|MyGreenCard|new\.tld\.registry|opt-out|opt-in)@'i=></p>
<p class="MsoPlainText">>     5.0],</p>
<p class="MsoPlainText">>     [qr'^(optin|saveonlsmoking2002k|specialoffer|specialoffers)@'i => 5.0],</p>
<p class="MsoPlainText">>     [qr'^(stockalert|stopsnoring|wantsome|workathome|yesitsfree)@'i =></p>
<p class="MsoPlainText">> 5.0],</p>
<p class="MsoPlainText">>     [qr'^(your_friend|greatoffers)@'i => 5.0],</p>
<p class="MsoPlainText">>     [qr'^(inkjetplanet|marketopt|MakeMoney)\d*@'i => 5.0],</p>
<p class="MsoPlainText">>         ),</p>
<p class="MsoPlainText">> </p>
<p class="MsoPlainText">>     #  read_hash("/var/amavis/sender_scores_sitewide"),</p>
<p class="MsoPlainText">> </p>
<p class="MsoPlainText">>         { # a hash-type lookup table (associative array)</p>
<p class="MsoPlainText">>           'nobody@cert.org'                        => -3.0,</p>
<p class="MsoPlainText">>           'cert-advisory@us-cert.gov'              => -3.0,</p>
<p class="MsoPlainText">>           'owner-alert@iss.net'                    => -3.0,</p>
<p class="MsoPlainText">>           'slashdot@slashdot.org'                  => -3.0,</p>
<p class="MsoPlainText">>           'securityfocus.com'                      => -3.0,</p>
<p class="MsoPlainText">>           'ntbugtraq@listserv.ntbugtraq.com'       => -3.0,</p>
<p class="MsoPlainText">>           'security-alerts@linuxsecurity.com'      => -3.0,</p>
<p class="MsoPlainText">>           'mailman-announce-admin@python.org'      => -3.0,</p>
<p class="MsoPlainText">>           'amavis-user-admin@lists.sourceforge.net'=> -3.0,</p>
<p class="MsoPlainText">>           'amavis-user-bounces@lists.sourceforge.net' => -3.0,</p>
<p class="MsoPlainText">>           'spamassassin.apache.org'                => -3.0,</p>
<p class="MsoPlainText">>           'notification-return@lists.sophos.com'   => -3.0,</p>
<p class="MsoPlainText">>           'owner-postfix-users@postfix.org'        => -3.0,</p>
<p class="MsoPlainText">>           'owner-postfix-announce@postfix.org'     => -3.0,</p>
<p class="MsoPlainText">>           'owner-sendmail-announce@lists.sendmail.org'   => -3.0,</p>
<p class="MsoPlainText">>           'sendmail-announce-request@lists.sendmail.org' => -3.0,</p>
<p class="MsoPlainText">>           'donotreply@sendmail.org'                => -3.0,</p>
<p class="MsoPlainText">>           'ca+envelope@sendmail.org'               => -3.0,</p>
<p class="MsoPlainText">>           'noreply@freshmeat.net'                  => -3.0,</p>
<p class="MsoPlainText">>           'owner-technews@postel.acm.org'          => -3.0,</p>
<p class="MsoPlainText">>           'ietf-123-owner@loki.ietf.org'           => -3.0,</p>
<p class="MsoPlainText">>           'cvs-commits-list-admin@gnome.org'       => -3.0,</p>
<p class="MsoPlainText">>           'rt-users-admin@lists.fsck.com'          => -3.0,</p>
<p class="MsoPlainText">>           'clp-request@comp.nus.edu.sg'            => -3.0,</p>
<p class="MsoPlainText">>           'surveys-errors@lists.nua.ie'            => -3.0,</p>
<p class="MsoPlainText">>           'emailnews@genomeweb.com'                => -5.0,</p>
<p class="MsoPlainText">>           'yahoo-dev-null@yahoo-inc.com'           => -3.0,</p>
<p class="MsoPlainText">>           'returns.groups.yahoo.com'               => -3.0,</p>
<p class="MsoPlainText">>           'clusternews@linuxnetworx.com'           => -3.0,</p>
<p class="MsoPlainText">>           lc('lvs-users-admin@LinuxVirtualServer.org')    => -3.0,</p>
<p class="MsoPlainText">>           lc('owner-textbreakingnews@CNNIMAIL12.CNN.COM') => -5.0,</p>
<p class="MsoPlainText">> </p>
<p class="MsoPlainText">>           # soft-blacklisting (positive score)</p>
<p class="MsoPlainText">>           'sender@example.net'                     =>  3.0,</p>
<p class="MsoPlainText">>           '.example.net'                           =>  1.0,</p>
<p class="MsoPlainText">> </p>
<p class="MsoPlainText">>         },</p>
<p class="MsoPlainText">>        ],  # end of site-wide tables</p>
<p class="MsoPlainText">>     });</p>
<p class="MsoPlainText">> </p>
<p class="MsoPlainText">> </p>
<p class="MsoPlainText">>     @decoders = (</p>
<p class="MsoPlainText">>        ['mail', \&do_mime_decode],</p>
<p class="MsoPlainText">>     # [[qw(asc uue hqx ync)], \&do_ascii],  # not safe</p>
<p class="MsoPlainText">>        ['F',    \&do_uncompress, ['unfreeze', 'freeze -d', 'melt',</p>
<p class="MsoPlainText">>     'fcat'] ],</p>
<p class="MsoPlainText">>        ['Z',    \&do_uncompress, ['uncompress', 'gzip -d', 'zcat'] ],</p>
<p class="MsoPlainText">>        ['gz',   \&do_uncompress, 'gzip -d'],</p>
<p class="MsoPlainText">>        ['gz',   \&do_gunzip],</p>
<p class="MsoPlainText">>        ['bz2',  \&do_uncompress, 'bzip2 -d'],</p>
<p class="MsoPlainText">>        ['xz',   \&do_uncompress,</p>
<p class="MsoPlainText">>                 ['xzdec', 'xz -dc', 'unxz -c', 'xzcat'] ],</p>
<p class="MsoPlainText">>        ['lzma', \&do_uncompress,</p>
<p class="MsoPlainText">>                 ['lzmadec', 'xz -dc --format=lzma',</p>
<p class="MsoPlainText">>                  'lzma -dc', 'unlzma -c', 'lzcat', 'lzmadec'] ],</p>
<p class="MsoPlainText">>        ['lrz',  \&do_uncompress,</p>
<p class="MsoPlainText">>                 ['lrzip -q -k -d -o -', 'lrzcat -q -k'] ],</p>
<p class="MsoPlainText">>        ['lzo',  \&do_uncompress, 'lzop -d'],</p>
<p class="MsoPlainText">>        ['rpm',  \&do_uncompress, ['rpm2cpio.pl', 'rpm2cpio'] ],</p>
<p class="MsoPlainText">>        [['cpio','tar'], \&do_pax_cpio, ['pax', 'gcpio', 'cpio'] ],</p>
<p class="MsoPlainText">>                 # ['/usr/local/heirloom/usr/5bin/pax', 'pax', 'gcpio',</p>
<p class="MsoPlainText">>     'cpio']</p>
<p class="MsoPlainText">>        ['deb',  \&do_ar, 'ar'],</p>
<p class="MsoPlainText">>     # ['a',    \&do_ar, 'ar'],  # unpacking .a seems an overkill</p>
<p class="MsoPlainText">>        ['rar',  \&do_unrar, ['unrar', 'rar'] ],</p>
<p class="MsoPlainText">>        ['arj',  \&do_unarj, ['unarj', 'arj'] ],</p>
<p class="MsoPlainText">>        ['arc',  \&do_arc,   ['nomarch', 'arc'] ],</p>
<p class="MsoPlainText">>        ['zoo',  \&do_zoo,   ['zoo', 'unzoo'] ],</p>
<p class="MsoPlainText">>        ['doc',  \&do_ole,   'ripole'],</p>
<p class="MsoPlainText">>        ['cab',  \&do_cabextract, 'cabextract'],</p>
<p class="MsoPlainText">>        ['tnef', \&do_tnef_ext, 'tnef'],</p>
<p class="MsoPlainText">>        ['tnef', \&do_tnef],</p>
<p class="MsoPlainText">>     # ['lha',  \&do_lha,   'lha'],  # not safe, use 7z instead</p>
<p class="MsoPlainText">>     # ['sit',  \&do_unstuff, 'unstuff'],  # not safe</p>
<p class="MsoPlainText">>        [['zip','kmz'], \&do_7zip,  ['7za', '7z'] ],</p>
<p class="MsoPlainText">>        [['zip','kmz'], \&do_unzip],</p>
<p class="MsoPlainText">>        ['7z',   \&do_7zip,  ['7zr', '7za', '7z'] ],</p>
<p class="MsoPlainText">>        [[qw(7z zip gz bz2 Z tar)],</p>
<p class="MsoPlainText">>                 \&do_7zip,  ['7za', '7z'] ],</p>
<p class="MsoPlainText">>        [[qw(xz lzma jar cpio arj rar swf lha iso cab deb rpm)],</p>
<p class="MsoPlainText">>                 \&do_7zip,  '7z' ],</p>
<p class="MsoPlainText">>        ['exe',  \&do_executable, ['unrar','rar'], 'lha', ['unarj','arj'] ],</p>
<p class="MsoPlainText">>     );</p>
<p class="MsoPlainText">> </p>
<p class="MsoPlainText">> </p>
<p class="MsoPlainText">>     @av_scanners = (</p>
<p class="MsoPlainText">> </p>
<p class="MsoPlainText">>     # ### <a href="http://www.sophos.com/"><span style="color:windowtext;text-decoration:none">http://www.sophos.com/</span></a></p>
<p class="MsoPlainText">>     # ['Sophos-SSSP',</p>
<p class="MsoPlainText">>     #   \&ask_daemon, ["{}", 'sssp:/var/run/savdi/sssp.sock'],</p>
<p class="MsoPlainText">>     #           # or: ["{}", 'sssp:[127.0.0.1]:4010'],</p>
<p class="MsoPlainText">>     #   qr/^DONE OK\b/m, qr/^VIRUS\b/m, qr/^VIRUS\s*(\S*)/m ],</p>
<p class="MsoPlainText">> </p>
<p class="MsoPlainText">>     # ### <a href="http://www.clanfield.info/sophie/"><span style="color:windowtext;text-decoration:none">http://www.clanfield.info/sophie/</span></a></p>
<p class="MsoPlainText">>     (<a href="http://www.vanja.com/tools/sophie/"><span style="color:windowtext;text-decoration:none">http://www.vanja.com/tools/sophie/</span></a>)</p>
<p class="MsoPlainText">>     # ['Sophie',</p>
<p class="MsoPlainText">>     #   \&ask_daemon, ["{}/\n", 'sophie:/var/run/sophie'],</p>
<p class="MsoPlainText">>     #   qr/(?x)^ 0+ ( : | [\000\r\n]* $)/,  qr/(?x)^ 1 ( : | [\000\r\n]*</p>
<p class="MsoPlainText">>     $)/,</p>
<p class="MsoPlainText">>     #   qr/(?x)^ [-+]? \d+ : (.*?) [\000\r\n]* $/m ],</p>
<p class="MsoPlainText">> </p>
<p class="MsoPlainText">>     # ### <a href="http://www.csupomona.edu/~henson/www/projects/SAVI-Perl/">
<span style="color:windowtext;text-decoration:none">http://www.csupomona.edu/~henson/www/projects/SAVI-Perl/</span></a></p>
<p class="MsoPlainText">>     # ['Sophos SAVI', \&ask_daemon, ['{}','savi-perl:'] ],</p>
<p class="MsoPlainText">> </p>
<p class="MsoPlainText">>     # ['Avira SAVAPI',</p>
<p class="MsoPlainText">>     #   \&ask_daemon, ["*", 'savapi:/var/tmp/.savapi3', 'product-id'],</p>
<p class="MsoPlainText">>     #   qr/^(200|210)/m,  qr/^(310|420|319)/m,</p>
<p class="MsoPlainText">>     #   qr/^(?:310|420)[,\s]*(?:.* <<< )?(.+?)(?: ; |$)/m ],</p>
<p class="MsoPlainText">>     # settings for the SAVAPI3.conf: ArchiveScan=1, HeurLevel=2,</p>
<p class="MsoPlainText">>     MailboxScan=1</p>
<p class="MsoPlainText">> </p>
<p class="MsoPlainText">>     # ### <a href="http://www.clamav.net/"><span style="color:windowtext;text-decoration:none">http://www.clamav.net/</span></a></p>
<p class="MsoPlainText">>     ['ClamAV-clamd',</p>
<p class="MsoPlainText">>        \&ask_daemon, ["CONTSCAN {}\n", "/var/run/clamav/clamd.sock"],</p>
<p class="MsoPlainText">>        qr/\bOK$/m, qr/\bFOUND$/m,</p>
<p class="MsoPlainText">>        qr/^.*?: (?!Infected Archive)(.*) FOUND$/m ],</p>
<p class="MsoPlainText">>     # NOTE: run clamd under the same user as amavisd - or run it under</p>
<p class="MsoPlainText">>     its own</p>
<p class="MsoPlainText">>     #   uid such as clamav, add user clamav to the amavis group, and</p>
<p class="MsoPlainText">>     then add</p>
<p class="MsoPlainText">>     #   AllowSupplementaryGroups to clamd.conf;</p>
<p class="MsoPlainText">>     # NOTE: match socket name (LocalSocket) in clamav.conf to the socket</p>
<p class="MsoPlainText">>     name in</p>
<p class="MsoPlainText">>     #   this entry; when running chrooted one may prefer a socket under</p>
<p class="MsoPlainText">>     $MYHOME.</p>
<p class="MsoPlainText">> </p>
<p class="MsoPlainText">>     # ### <a href="http://www.clamav.net/"><span style="color:windowtext;text-decoration:none">http://www.clamav.net/</span></a> and CPAN  (memory-hungry! clamd is</p>
<p class="MsoPlainText">>     preferred)</p>
<p class="MsoPlainText">>     # # note that Mail::ClamAV requires perl to be build with threading!</p>
<p class="MsoPlainText">>     # ['Mail::ClamAV', \&ask_daemon, ['{}','clamav-perl:'],</p>
<p class="MsoPlainText">>     #   [0], [1], qr/^INFECTED: (.+)/m],</p>
<p class="MsoPlainText">> </p>
<p class="MsoPlainText">>     # ### <a href="http://www.openantivirus.org/"><span style="color:windowtext;text-decoration:none">http://www.openantivirus.org/</span></a></p>
<p class="MsoPlainText">>     # ['OpenAntiVirus ScannerDaemon (OAV)',</p>
<p class="MsoPlainText">>     #   \&ask_daemon, ["SCAN {}\n", '127.0.0.1:8127'],</p>
<p class="MsoPlainText">>     #   qr/^OK/m, qr/^FOUND: /m, qr/^FOUND: (.+)/m ],</p>
<p class="MsoPlainText">> </p>
<p class="MsoPlainText">>     # ### <a href="http://www.vanja.com/tools/trophie/">
<span style="color:windowtext;text-decoration:none">http://www.vanja.com/tools/trophie/</span></a></p>
<p class="MsoPlainText">>     # ['Trophie',</p>
<p class="MsoPlainText">>     #   \&ask_daemon, ["{}/\n", 'trophie:/var/run/trophie'],</p>
<p class="MsoPlainText">>     #   qr/(?x)^ 0+ ( : | [\000\r\n]* $)/m,  qr/(?x)^ 1 ( : |</p>
<p class="MsoPlainText">>     [\000\r\n]* $)/m,</p>
<p class="MsoPlainText">>     #   qr/(?x)^ [-+]? \d+ : (.*?) [\000\r\n]* $/m ],</p>
<p class="MsoPlainText">> </p>
<p class="MsoPlainText">>     # ### <a href="http://www.grisoft.com/"><span style="color:windowtext;text-decoration:none">http://www.grisoft.com/</span></a></p>
<p class="MsoPlainText">>     # ['AVG Anti-Virus',</p>
<p class="MsoPlainText">>     #   \&ask_daemon, ["SCAN {}\n", '127.0.0.1:55555'],</p>
<p class="MsoPlainText">>     #   qr/^200/m, qr/^403/m, qr/^403[- ].*: ([^\r\n]+)/m ],</p>
<p class="MsoPlainText">> </p>
<p class="MsoPlainText">>     # ### <a href="http://www.f-prot.com/"><span style="color:windowtext;text-decoration:none">http://www.f-prot.com/</span></a></p>
<p class="MsoPlainText">>     # ['F-Prot fpscand',  # F-PROT Antivirus for BSD/Linux/Solaris,</p>
<p class="MsoPlainText">>     version 6</p>
<p class="MsoPlainText">>     #   \&ask_daemon,</p>
<p class="MsoPlainText">>     #   ["SCAN FILE {}/*\n", '127.0.0.1:10200'],</p>
<p class="MsoPlainText">>     #   qr/^(0|8|64) /m,</p>
<p class="MsoPlainText">>     #   qr/^([1235679]|1[01345])</p>
<p class="MsoPlainText">>     |<[^>:]*(?i)(infected|suspicious|unwanted)/m,</p>
<p class="MsoPlainText">>     # qr/(?i)<[^>:]*(?:infected|suspicious|unwanted)[^>:]*: ([^>]*)>/m ],</p>
<p class="MsoPlainText">> </p>
<p class="MsoPlainText">>     # ### <a href="http://www.f-prot.com/"><span style="color:windowtext;text-decoration:none">http://www.f-prot.com/</span></a></p>
<p class="MsoPlainText">>     # ['F-Prot f-protd',  # old version</p>
<p class="MsoPlainText">>     #   \&ask_daemon,</p>
<p class="MsoPlainText">>     #   ["GET {}/*?-dumb%20-archive%20-packed HTTP/1.0\r\n\r\n",</p>
<p class="MsoPlainText">>     #     ['127.0.0.1:10200', '127.0.0.1:10201', '127.0.0.1:10202',</p>
<p class="MsoPlainText">>     #      '127.0.0.1:10203', '127.0.0.1:10204'] ],</p>
<p class="MsoPlainText">>     #   qr/(?i)<summary[^>]*>clean<\/summary>/m,</p>
<p class="MsoPlainText">>     #   qr/(?i)<summary[^>]*>infected<\/summary>/m,</p>
<p class="MsoPlainText">>     #   qr/(?i)<name>(.+)<\/name>/m ],</p>
<p class="MsoPlainText">> </p>
<p class="MsoPlainText">>     # ### <a href="http://www.sald.com/"><span style="color:windowtext;text-decoration:none">http://www.sald.com/</span></a>,
<a href="http://www.dials.ru/english/"><span style="color:windowtext;text-decoration:none">http://www.dials.ru/english/</span></a>,</p>
<p class="MsoPlainText">>     <a href="http://www.drweb.ru/"><span style="color:windowtext;text-decoration:none">http://www.drweb.ru/</span></a></p>
<p class="MsoPlainText">>     # ['DrWebD', \&ask_daemon,   # DrWebD 4.31 or later</p>
<p class="MsoPlainText">>     #   [pack('N',1).  # DRWEBD_SCAN_CMD</p>
<p class="MsoPlainText">>     #    pack('N',0x00280001).   # DONT_CHANGEMAIL, IS_MAIL,</p>
<p class="MsoPlainText">> RETURN_VIRUSES</p>
<p class="MsoPlainText">>     #    pack('N',     # path length</p>
<p class="MsoPlainText">>     # length("$TEMPBASE/amavis-yyyymmddTHHMMSS-xxxxx/parts/pxxx")).</p>
<p class="MsoPlainText">>     #    '{}/*'.       # path</p>
<p class="MsoPlainText">>     #    pack('N',0).  # content size</p>
<p class="MsoPlainText">>     #    pack('N',0),</p>
<p class="MsoPlainText">>     #    '/var/drweb/run/drwebd.sock',</p>
<p class="MsoPlainText">>     #  # '/var/amavis/var/run/drwebd.sock',   # suitable for chroot</p>
<p class="MsoPlainText">>     #  # '/usr/local/drweb/run/drwebd.sock',  # FreeBSD drweb ports default</p>
<p class="MsoPlainText">>     #  # '127.0.0.1:3000',                    # or over an inet socket</p>
<p class="MsoPlainText">>     #   ],</p>
<p class="MsoPlainText">>     #   qr/\A\x00[\x10\x11][\x00\x10]\x00/sm,        #</p>
<p class="MsoPlainText">>     IS_CLEAN,EVAL_KEY; SKIPPED</p>
<p class="MsoPlainText">>     #   qr/\A\x00[\x00\x01][\x00\x10][\x20\x40\x80]/sm,#</p>
<p class="MsoPlainText">>     KNOWN_V,UNKNOWN_V,V._MODIF</p>
<p class="MsoPlainText">>     #   qr/\A.{12}(?:infected with )?([^\x00]+)\x00/sm,</p>
<p class="MsoPlainText">>     # ],</p>
<p class="MsoPlainText">>     # # NOTE: If using amavis-milter, change length to:</p>
<p class="MsoPlainText">>     # # length("$TEMPBASE/amavis-milter-xxxxxxxxxxxxxx/parts/pxxx").</p>
<p class="MsoPlainText">>     #</p>
<p class="MsoPlainText">>     #  ### <a href="http://www.kaspersky.com/"><span style="color:windowtext;text-decoration:none">http://www.kaspersky.com/</span></a>  (kav4mailservers)</p>
<p class="MsoPlainText">>     #  ['KasperskyLab AVP - aveclient',</p>
<p class="MsoPlainText">>     # ['/usr/local/kav/bin/aveclient','/usr/local/share/kav/bin/aveclient',</p>
<p class="MsoPlainText">>     #     '/opt/kav/5.5/kav4mailservers/bin/aveclient','aveclient'],</p>
<p class="MsoPlainText">>     #    '-p /var/run/aveserver -s {}/*',</p>
<p class="MsoPlainText">>     #    [0,3,6,8], qr/\b(INFECTED|SUSPICION|SUSPICIOUS)\b/m,</p>
<p class="MsoPlainText">>     #    qr/(?:INFECTED|WARNING|SUSPICION|SUSPICIOUS) (.+)/m,</p>
<p class="MsoPlainText">>     #  ],</p>
<p class="MsoPlainText">>        # NOTE: one may prefer [0],[2,3,4,5], depending on how suspicious,</p>
<p class="MsoPlainText">>        # currupted or protected archives are to be handled</p>
<p class="MsoPlainText">> </p>
<p class="MsoPlainText">>        ### <a href="http://www.kaspersky.com/"><span style="color:windowtext;text-decoration:none">http://www.kaspersky.com/</span></a></p>
<p class="MsoPlainText">>        ['KasperskyLab AntiViral Toolkit Pro (AVP)', ['avp'],</p>
<p class="MsoPlainText">>          '-* -P -B -Y -O- {}', [0,3,6,8], [2,4],    # any use for -A -K   ?</p>
<p class="MsoPlainText">>          qr/infected: (.+)/m,</p>
<p class="MsoPlainText">>          sub {chdir('/opt/AVP') or die "Can't chdir to AVP: $!"},</p>
<p class="MsoPlainText">>          sub {chdir($TEMPBASE) or die "Can't chdir back to $TEMPBASE $!"},</p>
<p class="MsoPlainText">>        ],</p>
<p class="MsoPlainText">> </p>
<p class="MsoPlainText">>        ### The kavdaemon and AVPDaemonClient have been removed from</p>
<p class="MsoPlainText">> Kasperky</p>
<p class="MsoPlainText">>        ### products and replaced by aveserver and aveclient</p>
<p class="MsoPlainText">>        ['KasperskyLab AVPDaemonClient',</p>
<p class="MsoPlainText">>          [ '/opt/AVP/kavdaemon',       'kavdaemon',</p>
<p class="MsoPlainText">>            '/opt/AVP/AvpDaemonClient', 'AvpDaemonClient',</p>
<p class="MsoPlainText">>            '/opt/AVP/AvpTeamDream',    'AvpTeamDream',</p>
<p class="MsoPlainText">>            '/opt/AVP/avpdc', 'avpdc' ],</p>
<p class="MsoPlainText">>          "-f=$TEMPBASE {}", [0,8], [3,4,5,6], qr/infected: ([^\r\n]+)/m ],</p>
<p class="MsoPlainText">>          # change the startup-script in /etc/init.d/kavd to:</p>
<p class="MsoPlainText">>          #   DPARMS="-* -Y -dl -f=/var/amavis /var/amavis"</p>
<p class="MsoPlainText">>          #   (or perhaps:   DPARMS="-I0 -Y -* /var/amavis" )</p>
<p class="MsoPlainText">>          # adjusting /var/amavis above to match your $TEMPBASE.</p>
<p class="MsoPlainText">>          # The '-f=/var/amavis' is needed if not running it as root, so it</p>
<p class="MsoPlainText">>          # can find, read, and write its pid file, etc., see 'man</p>
<p class="MsoPlainText">>     kavdaemon'.</p>
<p class="MsoPlainText">>          # defUnix.prf: there must be an entry "*/var/amavis" (or whatever</p>
<p class="MsoPlainText">>          #   directory $TEMPBASE specifies) in the 'Names=' section.</p>
<p class="MsoPlainText">>          # cd /opt/AVP/DaemonClients; configure; cd Sample; make</p>
<p class="MsoPlainText">>          # cp AvpDaemonClient /opt/AVP/</p>
<p class="MsoPlainText">>          # su - vscan -c "${PREFIX}/kavdaemon ${DPARMS}"</p>
<p class="MsoPlainText">> </p>
<p class="MsoPlainText">>        ### <a href="http://www.centralcommand.com/"><span style="color:windowtext;text-decoration:none">http://www.centralcommand.com/</span></a></p>
<p class="MsoPlainText">>        ['CentralCommand Vexira (new) vascan',</p>
<p class="MsoPlainText">>          ['vascan','/usr/lib/Vexira/vascan'],</p>
<p class="MsoPlainText">>          "-a s --timeout=60 --temp=$TEMPBASE -y $QUARANTINEDIR ".</p>
<p class="MsoPlainText">>          "--log=/var/log/vascan.log {}",</p>
<p class="MsoPlainText">>          [0,3], [1,2,5],</p>
<p class="MsoPlainText">>          qr/(?x)^\s* (?:virus|iworm|macro|mutant|sequence|trojan)\</p>
<p class="MsoPlainText">>     found:\ ( [^\]\s']+ )\ \.\.\.\ /m ],</p>
<p class="MsoPlainText">>          # Adjust the path of the binary and the virus database as needed.</p>
<p class="MsoPlainText">>          # 'vascan' does not allow to have the temp directory to be the</p>
<p class="MsoPlainText">>     same as</p>
<p class="MsoPlainText">>          # the quarantine directory, and the quarantine option can not</p>
<p class="MsoPlainText">>     be disabled.</p>
<p class="MsoPlainText">>          # If $QUARANTINEDIR is not used, then another directory must be</p>
<p class="MsoPlainText">>     specified</p>
<p class="MsoPlainText">>          # to appease 'vascan'. Move status 3 to the second list if password</p>
<p class="MsoPlainText">>          # protected files are to be considered infected.</p>
<p class="MsoPlainText">> </p>
<p class="MsoPlainText">>        ### <a href="http://www.avira.com/"><span style="color:windowtext;text-decoration:none">http://www.avira.com/</span></a></p>
<p class="MsoPlainText">>        ### old Avira AntiVir 2.x (ex H+BEDV) or old CentralCommand</p>
<p class="MsoPlainText">>     Vexira Antivirus</p>
<p class="MsoPlainText">>        ['Avira AntiVir', ['antivir','vexira'],</p>
<p class="MsoPlainText">>          '--allfiles -noboot -nombr -rs -s -z {}', [0], qr/ALERT:|VIRUS:/m,</p>
<p class="MsoPlainText">>          qr/(?x)^\s* (?: ALERT: \s* (?: \[ | [^']* ' ) |</p>
<p class="MsoPlainText">>               (?i) VIRUS:\ .*?\ virus\ '?) ( [^\]\s']+ )/m ],</p>
<p class="MsoPlainText">>          # NOTE: if you only have a demo version, remove -z and add 214,</p>
<p class="MsoPlainText">>     as in:</p>
<p class="MsoPlainText">>          #  '--allfiles -noboot -nombr -rs -s {}', [0,214],</p>
<p class="MsoPlainText">>     qr/ALERT:|VIRUS:/,</p>
<p class="MsoPlainText">> </p>
<p class="MsoPlainText">>        ### <a href="http://www.avira.com/"><span style="color:windowtext;text-decoration:none">http://www.avira.com/</span></a></p>
<p class="MsoPlainText">>        ### Avira for UNIX 3.x</p>
<p class="MsoPlainText">>        ['Avira AntiVir', ['avscan'],</p>
<p class="MsoPlainText">>         '-s --batch --alert-action=none {}', [0,4], qr/(?:ALERT|FUND):/m,</p>
<p class="MsoPlainText">>         qr/(?:ALERT|FUND): (?:.* <<< )?(.+?)(?: ; |$)/m ],</p>
<p class="MsoPlainText">> </p>
<p class="MsoPlainText">>        ### <a href="http://www.commandsoftware.com/"><span style="color:windowtext;text-decoration:none">http://www.commandsoftware.com/</span></a></p>
<p class="MsoPlainText">>        ['Command AntiVirus for Linux', 'csav',</p>
<p class="MsoPlainText">>          '-all -archive -packed {}', [50], [51,52,53],</p>
<p class="MsoPlainText">>          qr/Infection: (.+)/m ],</p>
<p class="MsoPlainText">> </p>
<p class="MsoPlainText">>        ### <a href="http://www.symantec.com/"><span style="color:windowtext;text-decoration:none">http://www.symantec.com/</span></a></p>
<p class="MsoPlainText">>        ['Symantec CarrierScan via Symantec CommandLineScanner',</p>
<p class="MsoPlainText">>          'cscmdline', '-a scan -i 1 -v -s 127.0.0.1:7777 {}',</p>
<p class="MsoPlainText">>          qr/^Files Infected:\s+0$/m, qr/^Infected\b/m,</p>
<p class="MsoPlainText">>          qr/^(?:Info|Virus Name):\s+(.+)/m ],</p>
<p class="MsoPlainText">> </p>
<p class="MsoPlainText">>        ### <a href="http://www.symantec.com/"><span style="color:windowtext;text-decoration:none">http://www.symantec.com/</span></a></p>
<p class="MsoPlainText">>        ['Symantec AntiVirus Scan Engine',</p>
<p class="MsoPlainText">>          'savsecls', '-server 127.0.0.1:7777 -mode scanrepair -details</p>
<p class="MsoPlainText">>     -verbose {}',</p>
<p class="MsoPlainText">>          [0], qr/^Infected\b/m,</p>
<p class="MsoPlainText">>          qr/^(?:Info|Virus Name):\s+(.+)/m ],</p>
<p class="MsoPlainText">>          # NOTE: check options and patterns to see which entry better</p>
<p class="MsoPlainText">>     applies</p>
<p class="MsoPlainText">> </p>
<p class="MsoPlainText">>     # ### <a href="http://www.f-secure.com/products/anti-virus/">
<span style="color:windowtext;text-decoration:none">http://www.f-secure.com/products/anti-virus/</span></a>  version 5.52</p>
<p class="MsoPlainText">>     #  ['F-Secure Antivirus for Linux servers',</p>
<p class="MsoPlainText">>     #   ['/opt/f-secure/fsav/bin/fsav', 'fsav'],</p>
<p class="MsoPlainText">>     #   '--virus-action1=report --archive=yes --auto=yes '.</p>
<p class="MsoPlainText">>     #   '--dumb=yes --list=no --mime=yes {}', [0], [3,4,6,8],</p>
<p class="MsoPlainText">>     #   qr/(?:infection|Infected|Suspected|Riskware): (.+)/m ],</p>
<p class="MsoPlainText">>     #   # NOTE: internal archive handling may be switched off by</p>
<p class="MsoPlainText">>     '--archive=no'</p>
<p class="MsoPlainText">>     #   #   to prevent fsav from exiting with status 9 on broken archives</p>
<p class="MsoPlainText">> </p>
<p class="MsoPlainText">>        ### <a href="http://www.f-secure.com/"><span style="color:windowtext;text-decoration:none">http://www.f-secure.com/</span></a> version 9.14</p>
<p class="MsoPlainText">>         ['F-Secure Linux Security',</p>
<p class="MsoPlainText">>          ['/opt/f-secure/fsav/bin/fsav', 'fsav'],</p>
<p class="MsoPlainText">>          '--virus-action1=report --archive=yes --auto=yes '.</p>
<p class="MsoPlainText">>          '--list=no --nomimeerr {}', [0], [3,4,6,8],</p>
<p class="MsoPlainText">>          qr/(?:infection|Infected|Suspected|Riskware): (.+)/m ],</p>
<p class="MsoPlainText">>          # NOTE: internal archive handling may be switched off by</p>
<p class="MsoPlainText">>     '--archive=no'</p>
<p class="MsoPlainText">>          #   to prevent fsav from exiting with status 9 on broken archives</p>
<p class="MsoPlainText">> </p>
<p class="MsoPlainText">>     # ### <a href="http://www.avast.com/"><span style="color:windowtext;text-decoration:none">http://www.avast.com/</span></a></p>
<p class="MsoPlainText">>     # ['avast! Antivirus daemon',</p>
<p class="MsoPlainText">>     #   \&ask_daemon,       # greets with 220, terminate with QUIT</p>
<p class="MsoPlainText">>     #   ["SCAN {}\015\012QUIT\015\012", '/var/run/avast4/mailscanner.sock'],</p>
<p class="MsoPlainText">>     #   qr/\t\[\+\]/m, qr/\t\[L\]\t/m, qr/\t\[L\]\t([^[ \t\015\012]+)/m ],</p>
<p class="MsoPlainText">> </p>
<p class="MsoPlainText">>     # ### <a href="http://www.avast.com/"><span style="color:windowtext;text-decoration:none">http://www.avast.com/</span></a></p>
<p class="MsoPlainText">>     # ['avast! Antivirus - Client/Server Version', 'avastlite',</p>
<p class="MsoPlainText">>     #   '-a /var/run/avast4/mailscanner.sock -n {}', [0], [1],</p>
<p class="MsoPlainText">>     #   qr/\t\[L\]\t([^[ \t\015\012]+)/m ],</p>
<p class="MsoPlainText">> </p>
<p class="MsoPlainText">>        ['CAI InoculateIT', 'inocucmd',  # retired product</p>
<p class="MsoPlainText">>          '-sec -nex {}', [0], [100],</p>
<p class="MsoPlainText">>          qr/was infected by virus (.+)/m ],</p>
<p class="MsoPlainText">>        # see: <a href="http://www.flatmtn.com/computer/Linux-Antivirus_CAI.html">
<span style="color:windowtext;text-decoration:none">http://www.flatmtn.com/computer/Linux-Antivirus_CAI.html</span></a></p>
<p class="MsoPlainText">> </p>
<p class="MsoPlainText">>        ### <a href="http://www3.ca.com/Solutions/Product.asp?ID=156">
<span style="color:windowtext;text-decoration:none">http://www3.ca.com/Solutions/Product.asp?ID=156</span></a>  (ex InoculateIT)</p>
<p class="MsoPlainText">>        ['CAI eTrust Antivirus', 'etrust-wrapper',</p>
<p class="MsoPlainText">>          '-arc -nex -spm h {}', [0], [101],</p>
<p class="MsoPlainText">>          qr/is infected by virus: (.+)/m ],</p>
<p class="MsoPlainText">>          # NOTE: requires suid wrapper around inocmd32; consider flag:</p>
<p class="MsoPlainText">>     -mod reviewer</p>
<p class="MsoPlainText">>          # see <a href="http://marc.theaimsgroup.com/?l=amavis-user&m=109229779912783">
<span style="color:windowtext;text-decoration:none">http://marc.theaimsgroup.com/?l=amavis-</span></a></p>
<p class="MsoPlainText"><a href="http://marc.theaimsgroup.com/?l=amavis-user&m=109229779912783"><span style="color:windowtext;text-decoration:none">> user&m=109229779912783</span></a></p>
<p class="MsoPlainText">> </p>
<p class="MsoPlainText">>        ### <a href="http://mks.com.pl/english.html"><span style="color:windowtext;text-decoration:none">http://mks.com.pl/english.html</span></a></p>
<p class="MsoPlainText">>        ['MkS_Vir for Linux (beta)', ['mks32','mks'],</p>
<p class="MsoPlainText">>          '-s {}/*', [0], [1,2],</p>
<p class="MsoPlainText">>          qr/--[ \t]*(.+)/m ],</p>
<p class="MsoPlainText">> </p>
<p class="MsoPlainText">>        ### <a href="http://mks.com.pl/english.html"><span style="color:windowtext;text-decoration:none">http://mks.com.pl/english.html</span></a></p>
<p class="MsoPlainText">>        ['MkS_Vir daemon', 'mksscan',</p>
<p class="MsoPlainText">>          '-s -q {}', [0], [1..7],</p>
<p class="MsoPlainText">>          qr/^... (\S+)/m ],</p>
<p class="MsoPlainText">> </p>
<p class="MsoPlainText">>     # ### <a href="http://www.nod32.com/"><span style="color:windowtext;text-decoration:none">http://www.nod32.com/</span></a>,  version v2.52 (old)</p>
<p class="MsoPlainText">>     # ['ESET NOD32 for Linux Mail servers',</p>
<p class="MsoPlainText">>     #   ['/opt/eset/nod32/bin/nod32cli', 'nod32cli'],</p>
<p class="MsoPlainText">>     #    '--subdir --files -z --sfx --rtp --adware --unsafe --pattern</p>
<p class="MsoPlainText">>     --heur '.</p>
<p class="MsoPlainText">>     #    '-w -a --action-on-infected=accept</p>
<p class="MsoPlainText">>     --action-on-uncleanable=accept '.</p>
<p class="MsoPlainText">>     #    '--action-on-notscanned=accept {}',</p>
<p class="MsoPlainText">>     #   [0,3], [1,2], qr/virus="([^"]+)"/m ],</p>
<p class="MsoPlainText">> </p>
<p class="MsoPlainText">>     # ### <a href="http://www.eset.com/"><span style="color:windowtext;text-decoration:none">http://www.eset.com/</span></a>, version v2.7 (old)</p>
<p class="MsoPlainText">>     # ['ESET NOD32 Linux Mail Server - command line interface',</p>
<p class="MsoPlainText">>     #   ['/usr/bin/nod32cli', '/opt/eset/nod32/bin/nod32cli', 'nod32cli'],</p>
<p class="MsoPlainText">>     #   '--subdir {}', [0,3], [1,2], qr/virus="([^"]+)"/m ],</p>
<p class="MsoPlainText">> </p>
<p class="MsoPlainText">>     # ### <a href="http://www.eset.com/"><span style="color:windowtext;text-decoration:none">http://www.eset.com/</span></a>, version 2.71.12</p>
<p class="MsoPlainText">>     # ['ESET Software ESETS Command Line Interface',</p>
<p class="MsoPlainText">>     #   ['/usr/bin/esets_cli', 'esets_cli'],</p>
<p class="MsoPlainText">>     #   '--subdir {}', [0], [1,2,3], qr/virus="([^"]+)"/m ],</p>
<p class="MsoPlainText">> </p>
<p class="MsoPlainText">>        ### <a href="http://www.eset.com/"><span style="color:windowtext;text-decoration:none">http://www.eset.com/</span></a>, version 3.0</p>
<p class="MsoPlainText">>        ['ESET Software ESETS Command Line Interface',</p>
<p class="MsoPlainText">>          ['/usr/bin/esets_cli', 'esets_cli'],</p>
<p class="MsoPlainText">>          '--subdir {}', [0], [1,2,3],</p>
<p class="MsoPlainText">>          qr/:\s*action="(?!accepted)[^"]*"\n.*:\s*virus="([^"]*)"/m ],</p>
<p class="MsoPlainText">> </p>
<p class="MsoPlainText">>        ## <a href="http://www.nod32.com/"><span style="color:windowtext;text-decoration:none">http://www.nod32.com/</span></a>,  NOD32LFS version 2.5 and above</p>
<p class="MsoPlainText">>        ['ESET NOD32 for Linux File servers',</p>
<p class="MsoPlainText">>          ['/opt/eset/nod32/sbin/nod32','nod32'],</p>
<p class="MsoPlainText">>          '--files -z --mail --sfx --rtp --adware --unsafe --pattern</p>
<p class="MsoPlainText">>     --heur '.</p>
<p class="MsoPlainText">>          '-w -a --action=1 -b {}',</p>
<p class="MsoPlainText">>          [0], [1,10], qr/^object=.*, virus="(.*?)",/m ],</p>
<p class="MsoPlainText">> </p>
<p class="MsoPlainText">>     # Experimental, based on posting from Rado Dibarbora (Dibo) on</p>
<p class="MsoPlainText">>     2002-05-31</p>
<p class="MsoPlainText">>     # ['ESET Software NOD32 Client/Server (NOD32SS)',</p>
<p class="MsoPlainText">>     #   \&ask_daemon2,    # greets with 200, persistent, terminate with QUIT</p>
<p class="MsoPlainText">>     #   ["SCAN {}/*\r\n", '127.0.0.1:8448' ],</p>
<p class="MsoPlainText">>     #   qr/^200 File OK/m, qr/^201 /m, qr/^201 (.+)/m ],</p>
<p class="MsoPlainText">> </p>
<p class="MsoPlainText">>        ### <a href="http://www.norman.com/products_nvc.shtml">
<span style="color:windowtext;text-decoration:none">http://www.norman.com/products_nvc.shtml</span></a></p>
<p class="MsoPlainText">>        ['Norman Virus Control v5 / Linux', 'nvcc',</p>
<p class="MsoPlainText">>          '-c -l:0 -s -u -temp:$TEMPBASE {}', [0,10,11], [1,2,14],</p>
<p class="MsoPlainText">>          qr/(?i).* virus in .* -> \'(.+)\'/m ],</p>
<p class="MsoPlainText">> </p>
<p class="MsoPlainText">>        ### <a href="http://www.pandasoftware.com/"><span style="color:windowtext;text-decoration:none">http://www.pandasoftware.com/</span></a></p>
<p class="MsoPlainText">>        ['Panda CommandLineSecure 9 for Linux',</p>
<p class="MsoPlainText">>          ['/opt/pavcl/usr/bin/pavcl','pavcl'],</p>
<p class="MsoPlainText">>          '-auto -aex -heu -cmp -nbr -nor -nos -eng -nob {}',</p>
<p class="MsoPlainText">>          qr/Number of files infected[ .]*: 0+(?!\d)/m,</p>
<p class="MsoPlainText">>          qr/Number of files infected[ .]*: 0*[1-9]/m,</p>
<p class="MsoPlainText">>          qr/Found virus :\s*(\S+)/m ],</p>
<p class="MsoPlainText">>        # NOTE: for efficiency, start the Panda in resident mode with</p>
<p class="MsoPlainText">>     'pavcl -tsr'</p>
<p class="MsoPlainText">>        # before starting amavisd - the bases are then loaded only once</p>
<p class="MsoPlainText">>     at startup.</p>
<p class="MsoPlainText">>        # To reload bases in a signature update script:</p>
<p class="MsoPlainText">>        #   /opt/pavcl/usr/bin/pavcl -tsr -ulr; /opt/pavcl/usr/bin/pavcl -tsr</p>
<p class="MsoPlainText">>        # Please review other options of pavcl, for example:</p>
<p class="MsoPlainText">>        #  -nomalw, -nojoke, -nodial, -nohackt, -nospyw, -nocookies</p>
<p class="MsoPlainText">> </p>
<p class="MsoPlainText">>     # ### <a href="http://www.pandasoftware.com/"><span style="color:windowtext;text-decoration:none">http://www.pandasoftware.com/</span></a></p>
<p class="MsoPlainText">>     # ['Panda Antivirus for Linux', ['pavcl'],</p>
<p class="MsoPlainText">>     #   '-TSR -aut -aex -heu -cmp -nbr -nor -nso -eng {}',</p>
<p class="MsoPlainText">>     #   [0], [0x10, 0x30, 0x50, 0x70, 0x90, 0xB0, 0xD0, 0xF0],</p>
<p class="MsoPlainText">>     #   qr/Found virus :\s*(\S+)/m ],</p>
<p class="MsoPlainText">> </p>
<p class="MsoPlainText">>     # GeCAD AV technology is acquired by Microsoft; RAV has been</p>
<p class="MsoPlainText">>     discontinued.</p>
<p class="MsoPlainText">>     # Check your RAV license terms before fiddling with the following</p>
<p class="MsoPlainText">>     two lines!</p>
<p class="MsoPlainText">>     # ['GeCAD RAV AntiVirus 8', 'ravav',</p>
<p class="MsoPlainText">>     #   '--all --archive --mail {}', [1], [2,3,4,5], qr/Infected: (.+)/m ],</p>
<p class="MsoPlainText">>     # # NOTE: the command line switches changed with scan engine 8.5 !</p>
<p class="MsoPlainText">>     # # (btw, assigning stdin to /dev/null causes RAV to fail)</p>
<p class="MsoPlainText">> </p>
<p class="MsoPlainText">>        ### <a href="http://www.nai.com/"><span style="color:windowtext;text-decoration:none">http://www.nai.com/</span></a></p>
<p class="MsoPlainText">>        ['NAI McAfee AntiVirus (uvscan)', 'uvscan',</p>
<p class="MsoPlainText">>          '--secure -rv --mime --summary --noboot - {}', [0], [13],</p>
<p class="MsoPlainText">>          qr/(?x) Found (?:</p>
<p class="MsoPlainText">>              \ the\ (.+)\ (?:virus|trojan)  |</p>
<p class="MsoPlainText">>              \ (?:virus|trojan)\ or\ variant\ ([^ ]+)  |</p>
<p class="MsoPlainText">>              :\ (.+)\ NOT\ a\ virus)/m,</p>
<p class="MsoPlainText">>        # sub {$ENV{LD_PRELOAD}='/lib/libc.so.6'},</p>
<p class="MsoPlainText">>        # sub {delete $ENV{LD_PRELOAD}},</p>
<p class="MsoPlainText">>        ],</p>
<p class="MsoPlainText">>        # NOTE1: with RH9: force the dynamic linker to look at</p>
<p class="MsoPlainText">>     /lib/libc.so.6 before</p>
<p class="MsoPlainText">>        # anything else by setting environment variable</p>
<p class="MsoPlainText">>     LD_PRELOAD=/lib/libc.so.6</p>
<p class="MsoPlainText">>        # and then clear it when finished to avoid confusing anything else.</p>
<p class="MsoPlainText">>        # NOTE2: to treat encrypted files as viruses replace the [13] with:</p>
<p class="MsoPlainText">>        #  qr/^\s{5,}(Found|is password-protected|.*(virus|trojan))/</p>
<p class="MsoPlainText">> </p>
<p class="MsoPlainText">>        ### <a href="http://www.virusbuster.hu/en/"><span style="color:windowtext;text-decoration:none">http://www.virusbuster.hu/en/</span></a></p>
<p class="MsoPlainText">>        ['VirusBuster', ['vbuster', 'vbengcl'],</p>
<p class="MsoPlainText">>          "{} -ss -i '*' -log=$MYHOME/vbuster.log", [0], [1],</p>
<p class="MsoPlainText">>          qr/: '(.*)' - Virus/m ],</p>
<p class="MsoPlainText">>        # VirusBuster Ltd. does not support the daemon version for the</p>
<p class="MsoPlainText">>     workstation</p>
<p class="MsoPlainText">>        # engine (vbuster-eng-1.12-linux-i386-libc6.tgz) any longer. The</p>
<p class="MsoPlainText">>     names of</p>
<p class="MsoPlainText">>        # binaries, some parameters AND return codes have changed (from 3</p>
<p class="MsoPlainText">>     to 1).</p>
<p class="MsoPlainText">>        # See also the new Vexira entry 'vascan' which is possibly related.</p>
<p class="MsoPlainText">> </p>
<p class="MsoPlainText">>     # ### <a href="http://www.virusbuster.hu/en/"><span style="color:windowtext;text-decoration:none">http://www.virusbuster.hu/en/</span></a></p>
<p class="MsoPlainText">>     # ['VirusBuster (Client + Daemon)', 'vbengd',</p>
<p class="MsoPlainText">>     #   '-f -log scandir {}', [0], [3],</p>
<p class="MsoPlainText">>     #   qr/Virus found = (.*);/m ],</p>
<p class="MsoPlainText">>     # # HINT: for an infected file it always returns 3,</p>
<p class="MsoPlainText">>     # # although the man-page tells a different story</p>
<p class="MsoPlainText">> </p>
<p class="MsoPlainText">>        ### <a href="http://www.cyber.com/"><span style="color:windowtext;text-decoration:none">http://www.cyber.com/</span></a></p>
<p class="MsoPlainText">>        ['CyberSoft VFind', 'vfind',</p>
<p class="MsoPlainText">>          '--vexit {}/*', [0], [23], qr/##==>>>> VIRUS ID: CVDL (.+)/m,</p>
<p class="MsoPlainText">>        # sub {$ENV{VSTK_HOME}='/usr/lib/vstk'},</p>
<p class="MsoPlainText">>        ],</p>
<p class="MsoPlainText">> </p>
<p class="MsoPlainText">>        ### <a href="http://www.avast.com/"><span style="color:windowtext;text-decoration:none">http://www.avast.com/</span></a></p>
<p class="MsoPlainText">>        ['avast! Antivirus', ['/usr/bin/avastcmd','avastcmd'],</p>
<p class="MsoPlainText">>          '-a -i -n -t=A {}', [0], [1], qr/\binfected by:\s+([^</p>
<p class="MsoPlainText">>     \t\n\[\]]+)/m ],</p>
<p class="MsoPlainText">> </p>
<p class="MsoPlainText">>        ### <a href="http://www.ikarus-software.com/"><span style="color:windowtext;text-decoration:none">http://www.ikarus-software.com/</span></a></p>
<p class="MsoPlainText">>        ['Ikarus AntiVirus for Linux', 'ikarus',</p>
<p class="MsoPlainText">>          '{}', [0], [40], qr/Signature (.+) found/m ],</p>
<p class="MsoPlainText">> </p>
<p class="MsoPlainText">>        ### <a href="http://www.bitdefender.com/"><span style="color:windowtext;text-decoration:none">http://www.bitdefender.com/</span></a></p>
<p class="MsoPlainText">>        ['BitDefender', 'bdscan',  # new version</p>
<p class="MsoPlainText">>          '--action=ignore --no-list {}', qr/^Infected</p>
<p class="MsoPlainText">>     files\s*:\s*0+(?!\d)/m,</p>
<p class="MsoPlainText">>          qr/^(?:Infected files|Identified viruses|Suspect</p>
<p class="MsoPlainText">>     files)\s*:\s*0*[1-9]/m,</p>
<p class="MsoPlainText">>          qr/(?:suspected|infected)\s*:\s*(.*)(?:\033|$)/m ],</p>
<p class="MsoPlainText">> </p>
<p class="MsoPlainText">>        ### <a href="http://www.bitdefender.com/"><span style="color:windowtext;text-decoration:none">http://www.bitdefender.com/</span></a></p>
<p class="MsoPlainText">>        ['BitDefender', 'bdc',  # old version</p>
<p class="MsoPlainText">>          '--arc --mail {}', qr/^Infected files *:0+(?!\d)/m,</p>
<p class="MsoPlainText">>          qr/^(?:Infected files|Identified viruses|Suspect files)</p>
<p class="MsoPlainText">>     *:0*[1-9]/m,</p>
<p class="MsoPlainText">>          qr/(?:suspected|infected): (.*)(?:\033|$)/m ],</p>
<p class="MsoPlainText">>        # consider also: --all --nowarn --alev=15 --flev=15.  The --all</p>
<p class="MsoPlainText">>     argument may</p>
<p class="MsoPlainText">>        # not apply to your version of bdc, check documentation and see</p>
<p class="MsoPlainText">>     'bdc --help'</p>
<p class="MsoPlainText">> </p>
<p class="MsoPlainText">>        ### ArcaVir for Linux and Unix <a href="http://www.arcabit.pl/">
<span style="color:windowtext;text-decoration:none">http://www.arcabit.pl/</span></a></p>
<p class="MsoPlainText">>        ['ArcaVir for Linux', ['arcacmd','arcacmd.static'],</p>
<p class="MsoPlainText">>          '-v 1 -summary 0 -s {}', [0], [1,2],</p>
<p class="MsoPlainText">>          qr/(?:VIR|WIR):[ \t]*(.+)/m ],</p>
<p class="MsoPlainText">> </p>
<p class="MsoPlainText">>     # ### a generic SMTP-client interface to a SMTP-based virus scanner</p>
<p class="MsoPlainText">>     # ['av_smtp', \&ask_av_smtp,</p>
<p class="MsoPlainText">>     #   ['{}', 'smtp:[127.0.0.1]:5525', 'dummy@localhost'],</p>
<p class="MsoPlainText">>     #   qr/^2/, qr/^5/, qr/^\s*(.*?)\s*$/m ],</p>
<p class="MsoPlainText">> </p>
<p class="MsoPlainText">>     # ['File::Scan', sub {Amavis::AV::ask_av(sub{</p>
<p class="MsoPlainText">>     #   use File::Scan; my($fn)=@_;</p>
<p class="MsoPlainText">>     #   my($f)=File::Scan->new(max_txt_size=>0, max_bin_size=>0);</p>
<p class="MsoPlainText">>     #   my($vname) = $f->scan($fn);</p>
<p class="MsoPlainText">>     #   $f->error ? (2,"Error: ".$f->error)</p>
<p class="MsoPlainText">>     #   : ($vname ne '') ? (1,"$vname FOUND") : (0,"Clean")}, @_) },</p>
<p class="MsoPlainText">>     #   ["{}/*"], [0], [1], qr/^(.*) FOUND$/m ],</p>
<p class="MsoPlainText">> </p>
<p class="MsoPlainText">>     # ### fully-fledged checker for JPEG marker segments of invalid length</p>
<p class="MsoPlainText">>     # ['check-jpeg',</p>
<p class="MsoPlainText">>     #   sub { use JpegTester ();</p>
<p class="MsoPlainText">>     Amavis::AV::ask_av(\&JpegTester::test_jpeg, @_) },</p>
<p class="MsoPlainText">>     #   ["{}/*"], undef, [1], qr/^(bad jpeg: .*)$/m ],</p>
<p class="MsoPlainText">>     # # NOTE: place file JpegTester.pm somewhere where Perl can find it,</p>
<p class="MsoPlainText">>     # #       for example in /usr/local/lib/perl5/site_perl</p>
<p class="MsoPlainText">> </p>
<p class="MsoPlainText">>     );</p>
<p class="MsoPlainText">> </p>
<p class="MsoPlainText">> </p>
<p class="MsoPlainText">>     @av_scanners_backup = (</p>
<p class="MsoPlainText">> </p>
<p class="MsoPlainText">>        ### <a href="http://www.clamav.net/"><span style="color:windowtext;text-decoration:none">http://www.clamav.net/</span></a>   - backs up clamd or Mail::ClamAV</p>
<p class="MsoPlainText">>        ['ClamAV-clamscan', 'clamscan',</p>
<p class="MsoPlainText">>          "--stdout --no-summary -r --tempdir=$TEMPBASE {}",</p>
<p class="MsoPlainText">>          [0], qr/:.*\sFOUND$/m, qr/^.*?: (?!Infected Archive)(.*)</p>
<p class="MsoPlainText">>     FOUND$/m ],</p>
<p class="MsoPlainText">> </p>
<p class="MsoPlainText">>     # ### <a href="http://www.clamav.net/"><span style="color:windowtext;text-decoration:none">http://www.clamav.net/</span></a> - using remote clamd scanner as a backup</p>
<p class="MsoPlainText">>     # ['ClamAV-clamdscan', 'clamdscan',</p>
<p class="MsoPlainText">>     #   "--stdout --no-summary --config-file=/etc/clamd-client.conf {}",</p>
<p class="MsoPlainText">>     #   [0], qr/:.*\sFOUND$/m, qr/^.*?: (?!Infected Archive)(.*) FOUND$/m ],</p>
<p class="MsoPlainText">> </p>
<p class="MsoPlainText">>     # ['ClamAV-clamd-stream',</p>
<p class="MsoPlainText">>     #   \&ask_daemon, ["*", 'clamd:/var/run/clamav/clamd.sock'],</p>
<p class="MsoPlainText">>     #   qr/\bOK$/m, qr/\bFOUND$/m,</p>
<p class="MsoPlainText">>     #   qr/^.*?: (?!Infected Archive)(.*) FOUND$/m ],</p>
<p class="MsoPlainText">> </p>
<p class="MsoPlainText">>        ### <a href="http://www.f-prot.com/"><span style="color:windowtext;text-decoration:none">http://www.f-prot.com/</span></a>   - backs up F-Prot Daemon, V6</p>
<p class="MsoPlainText">>        ['F-PROT Antivirus for UNIX', ['fpscan'],</p>
<p class="MsoPlainText">>          '--report --mount --adware {}',  # consider: --applications -s</p>
<p class="MsoPlainText">>     4 -u 3 -z 10</p>
<p class="MsoPlainText">>          [0,8,64],  [1,2,3, 4+1,4+2,4+3, 8+1,8+2,8+3, 12+1,12+2,12+3],</p>
<p class="MsoPlainText">>          qr/^\[Found\s+[^\]]*\]\s+<([^ \t(>]*)/m ],</p>
<p class="MsoPlainText">> </p>
<p class="MsoPlainText">>        ### <a href="http://www.f-prot.com/"><span style="color:windowtext;text-decoration:none">http://www.f-prot.com/</span></a>   - backs up F-Prot Daemon (old)</p>
<p class="MsoPlainText">>        ['FRISK F-Prot Antivirus', ['f-prot','f-prot.sh'],</p>
<p class="MsoPlainText">>          '-dumb -archive -packed {}', [0,8], [3,6],   # or: [0], [3,6,8],</p>
<p class="MsoPlainText">>          qr/(?:Infection:|security risk named) (.+)|\s+contains\s+(.+)$/m ],</p>
<p class="MsoPlainText">> </p>
<p class="MsoPlainText">>        ### <a href="http://www.trendmicro.com/"><span style="color:windowtext;text-decoration:none">http://www.trendmicro.com/</span></a>   - backs up Trophie</p>
<p class="MsoPlainText">>        ['Trend Micro FileScanner', ['/etc/iscan/vscan','vscan'],</p>
<p class="MsoPlainText">>          '-za -a {}', [0], qr/Found virus/m, qr/Found virus (.+) in/m ],</p>
<p class="MsoPlainText">> </p>
<p class="MsoPlainText">>        ### <a href="http://www.sald.com/"><span style="color:windowtext;text-decoration:none">http://www.sald.com/</span></a>,
<a href="http://drweb.imshop.de/"><span style="color:windowtext;text-decoration:none">http://drweb.imshop.de/</span></a>   - backs up</p>
<p class="MsoPlainText">> DrWebD</p>
<p class="MsoPlainText">>        ['drweb - DrWeb Antivirus',  # security LHA hole in Dr.Web 4.33</p>
<p class="MsoPlainText">>     and earlier</p>
<p class="MsoPlainText">>          ['/usr/local/drweb/drweb', '/opt/drweb/drweb', 'drweb'],</p>
<p class="MsoPlainText">>          '-path={} -al -go -ot -cn -upn -ok-',</p>
<p class="MsoPlainText">>          [0,32], [1,9,33], qr' infected (?:with|by)(?: virus)? (.*)$'m ],</p>
<p class="MsoPlainText">> </p>
<p class="MsoPlainText">>         ### <a href="http://www.kaspersky.com/"><span style="color:windowtext;text-decoration:none">http://www.kaspersky.com/</span></a></p>
<p class="MsoPlainText">>         ['Kaspersky Antivirus v5.5',</p>
<p class="MsoPlainText">>           ['/opt/kaspersky/kav4fs/bin/kav4fs-kavscanner',</p>
<p class="MsoPlainText">>            '/opt/kav/5.5/kav4unix/bin/kavscanner',</p>
<p class="MsoPlainText">>            '/opt/kav/5.5/kav4mailservers/bin/kavscanner', 'kavscanner'],</p>
<p class="MsoPlainText">>           '-i0 -xn -xp -mn -R -ePASBME {}/*', [0,10,15], [5,20,21,25],</p>
<p class="MsoPlainText">>           qr/(?:INFECTED|WARNING|SUSPICION|SUSPICIOUS) (.*)/m,</p>
<p class="MsoPlainText">>     #    sub {chdir('/opt/kav/bin') or die "Can't chdir to kav: $!"},</p>
<p class="MsoPlainText">>     #    sub {chdir($TEMPBASE) or die "Can't chdir back to $TEMPBASE $!"},</p>
<p class="MsoPlainText">>         ],</p>
<p class="MsoPlainText">> </p>
<p class="MsoPlainText">>     # Commented out because the name 'sweep' clashes with Debian and</p>
<p class="MsoPlainText">> FreeBSD</p>
<p class="MsoPlainText">>     # package/port of an audio editor. Make sure the correct 'sweep' is</p>
<p class="MsoPlainText">>     found</p>
<p class="MsoPlainText">>     # in the path when enabling.</p>
<p class="MsoPlainText">>     #</p>
<p class="MsoPlainText">>     # ### <a href="http://www.sophos.com/"><span style="color:windowtext;text-decoration:none">http://www.sophos.com/</span></a>   - backs up Sophie or SAVI-Perl</p>
<p class="MsoPlainText">>     # ['Sophos Anti Virus (sweep)', 'sweep',</p>
<p class="MsoPlainText">>     #   '-nb -f -all -rec -ss -sc -archive -cab -mime -oe -tnef '.</p>
<p class="MsoPlainText">>     #   '--no-reset-atime {}',</p>
<p class="MsoPlainText">>     #   [0,2], qr/Virus .*? found/m,</p>
<p class="MsoPlainText">>     #   qr/^>>> Virus(?: fragment)? '?(.*?)'? found/m,</p>
<p class="MsoPlainText">>     # ],</p>
<p class="MsoPlainText">>     # # other options to consider: -idedir=/usr/local/sav</p>
<p class="MsoPlainText">> </p>
<p class="MsoPlainText">>     # Always succeeds and considers mail clean.</p>
<p class="MsoPlainText">>     # Potentially useful when all other scanners fail and it is desirable</p>
<p class="MsoPlainText">>     # to let mail continue to flow with no virus checking (when</p>
<p class="MsoPlainText">>     uncommented).</p>
<p class="MsoPlainText">>     # ['always-clean', sub {0}],</p>
<p class="MsoPlainText">> </p>
<p class="MsoPlainText">>     );</p>
<p class="MsoPlainText">> </p>
<p class="MsoPlainText">>     1;  # insure a defined return value</p>
<p class="MsoPlainText">> </p>
<p class="MsoPlainText">> Thanks in advance for your kind assistance.</p>
<p class="MsoPlainText">> </p>
<p class="MsoPlainText">> Nick</p>
<p class="MsoPlainText">> </p>
<p class="MsoPlainText">> </p>
<p class="MsoPlainText"><o:p> </o:p></p>
</div>
</body>
</html>