<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:12pt"><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; ">For some reason, amavisd isn't writing to the log file that's defined in /etc/amavisd.conf</div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; "><br></div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; ">If I do a directory listing, the log still shows as 0 bytes:</div><div><div><font face="'times new roman', 'new york', times, serif">ls -l amavis.log</font></div><div><font face="'times new roman', 'new york', times, serif">-rwxrwxrwx 1 vscan vscan 0 Nov 30 09:39 amavis.log</font></div><div><font face="'times new roman', 'new york', times, serif"><br></font></div><div><font face="'times new roman', 'new york', times, serif">when I initially set up the
postfix/mysql/amavisd system, I created an empty amavis.log and changed the owner to the user amavis is running under:</font></div><div><font face="'times new roman', 'new york', times, serif"><div>chown vscan:vscan /var/log/amavis.log</div><div>chmod u=rw,g=rw,o=rw /var/log/amavis.log</div><div><br></div><div>Any idea what could be wrong? Below is my amavisd.conf file:</div><div><br></div><div><div>use strict;</div><div><br></div><div># a minimalistic configuration file for amavisd-new with all necessary settings</div><div>#</div><div># see amavisd.conf-default for a list of all variables with their defaults;</div><div># see amavisd.conf-sample for a traditional-style commented file;</div><div># for more details see documentation in INSTALL, README_FILES/*</div><div># and at http://www.ijs.si/software/amavisd/amavisd-new-docs.html</div><div><br></div><div><br></div><div># COMMONLY ADJUSTED
SETTINGS:</div><div><br></div><div># @bypass_virus_checks_maps = (1); # controls running of anti-virus code</div><div># @bypass_spam_checks_maps = (1); # controls running of anti-spam code</div><div># $bypass_decode_parts = 1; # controls running of decoders&dearchivers</div><div><br></div><div>$max_servers = 5; # num of pre-forked children (2..30 is common), -m</div><div>$daemon_user = "vscan"; # (no default; customary: vscan or amavis), -u</div><div>$daemon_group = "vscan"; # (no default; customary: vscan or amavis), -g</div><div><br></div><div>$mydomain = 'miltermatic.hiresites.com'; # a convenient default for other settings</div><div><br></div><div>$MYHOME = '/var/vscan'; # a convenient default for other settings, -H</div><div>$TEMPBASE = "$MYHOME/tmp"; # working directory, needs to exist,
-T</div><div>$ENV{TMPDIR} = $TEMPBASE; # environment variable TMPDIR, used by SA, etc.</div><div>$QUARANTINEDIR = "/var/virusmails";</div><div># $quarantine_subdir_levels = 1; # add level of subdirs to disperse quarantine</div><div># $release_format = 'resend'; # 'attach', 'plain', 'resend'</div><div># $report_format = 'arf'; # 'attach', 'plain', 'resend', 'arf'</div><div><br></div><div># $daemon_chroot_dir = $MYHOME; # chroot directory or undef, -R</div><div><br></div><div>$db_home = "$MYHOME/db"; # dir for bdb nanny/cache/snmp databases, -D</div><div># $helpers_home = "$MYHOME/var"; # working directory for SpamAssassin, -S</div><div># $lock_file = "$MYHOME/var/amavisd.lock"; # -L</div><div># $pid_file = "$MYHOME/var/amavisd.pid"; # -P</div><div>#NOTE: create directories $MYHOME/tmp, $MYHOME/var, $MYHOME/db
manually</div><div><br></div><div>$log_level = 0; # verbosity 0..5, -d</div><div>$log_recip_templ = undef; # disable by-recipient level-0 log entries</div><div>$DO_SYSLOG = 0; # log via syslogd (preferred)</div><div>$LOGFILE = "/var/log/amavis.log";</div><div>$log_templ = '[? %#V |[? %#F |[?%#D|Not-Delivered|Passed]|BANNED name/type (%F)]|INFECTED (%V)], <%o> -> [<%R>|,][? %i ||, quarantine %i], Message-ID: %m, Hits: %c';</div><div>#$syslog_facility = 'mail'; # Syslog facility as a string</div><div> # e.g.: mail, daemon, user, local0, ... local7</div><div>#$syslog_priority = 'debug'; # Syslog base (minimal) priority as a string,</div><div> # choose from: emerg, alert, crit, err, warning, notice, info,
debug</div><div><br></div><div>$enable_db = 1; # enable use of BerkeleyDB/libdb (SNMP and nanny)</div><div>$enable_global_cache = 1; # enable use of libdb-based cache if $enable_db=1</div><div>$nanny_details_level = 2; # nanny verbosity: 1: traditional, 2: detailed</div><div>$enable_dkim_verification = 1; # enable DKIM signatures verification</div><div>$enable_dkim_signing = 1; # load DKIM signing code, keys defined by dkim_key</div><div><br></div><div>@local_domains_maps = ( [".$mydomain"] ); # list of all local domains</div><div><br></div><div>@mynetworks = qw( 127.0.0.0/8 [::1] [FE80::]/10 [FEC0::]/10</div><div> 10.0.0.0/8 172.16.0.0/12 192.168.0.0/16 );</div><div><br></div><div>$unix_socketname = "$MYHOME/amavisd.sock"; # amavisd-release or amavis-milter</div><div>
# option(s) -p overrides $inet_socket_port and $unix_socketname</div><div><br></div><div>$inet_socket_port = 10024; # listen on this local TCP port(s)</div><div># $inet_socket_port = [10024,10026]; # listen on multiple TCP ports</div><div><br></div><div>$policy_bank{'MYNETS'} = { # mail originating from @mynetworks</div><div> originating => 1, # is true in MYNETS by default, but let's make it explicit</div><div> os_fingerprint_method => undef, # don't query p0f for internal clients</div><div>};</div><div><br></div><div># it is up to MTA to re-route mail from authenticated roaming users or</div><div># from internal hosts to a dedicated TCP port (such as 10026) for filtering</div><div>$interface_policy{'10026'} = 'ORIGINATING';</div><div><br></div><div>$policy_bank{'ORIGINATING'} = { # mail supposedly originating from our users</div><div> originating => 1,
# declare that mail was submitted by our smtp client</div><div> allow_disclaimers => 1, # enables disclaimer insertion if available</div><div> # notify administrator of locally originating malware</div><div> virus_admin_maps => ["virusalert\@$mydomain"],</div><div> spam_admin_maps => ["virusalert\@$mydomain"],</div><div> warnbadhsender => 1,</div><div> # forward to a smtpd service providing DKIM signing service</div><div> forward_method => 'smtp:[127.0.0.1]:10027',</div><div> # force MTA conversion to 7-bit (e.g. before DKIM signing)</div><div> smtpd_discard_ehlo_keywords => ['8BITMIME'],</div><div> bypass_banned_checks_maps => [1], # allow sending any file names and types</div><div> terminate_dsn_on_notify_success => 0, # don't remove NOTIFY=SUCCESS option</div><div>};</div><div><br></div><div>$interface_policy{'SOCK'} =
'AM.PDP-SOCK'; # only applies with $unix_socketname</div><div><br></div><div># Use with amavis-release over a socket or with Petr Rehor's amavis-milter.c</div><div># (with amavis-milter.c from this package or old amavis.c client use 'AM.CL'):</div><div>$policy_bank{'AM.PDP-SOCK'} = {</div><div> protocol => 'AM.PDP',</div><div> auth_required_release => 0, # do not require secret_id for amavisd-release</div><div>};</div><div><br></div><div>$sa_tag_level_deflt = 2.0; # add spam info headers if at, or above that level</div><div>$sa_tag2_level_deflt = 6.2; # add 'spam detected' headers at that level</div><div>$sa_kill_level_deflt = 7; # triggers spam evasive actions (e.g. blocks mail)</div><div>$sa_dsn_cutoff_level = 10; # spam level beyond which a DSN is not sent</div><div>$sa_crediblefrom_dsn_cutoff_level = 18; # likewise, but for a likely valid From</div><div># $sa_quarantine_cutoff_level = 25; # spam
level beyond which quarantine is off</div><div>$penpals_bonus_score = 8; # (no effect without a @storage_sql_dsn database)</div><div>$penpals_threshold_high = $sa_kill_level_deflt; # don't waste time on hi spam</div><div>$bounce_killer_score = 100; # spam score points to add for joe-jobbed bounces</div><div><br></div><div>$sa_mail_body_size_limit = 16*1024; # don't waste time on SA if mail is larger</div><div>$sa_local_tests_only = 0; # only tests which do not require internet access?</div><div><br></div><div># @lookup_sql_dsn =</div><div># ( ['DBI:mysql:database=mail;host=127.0.0.1;port=3306', 'user1', 'passwd1'],</div><div># ['DBI:mysql:database=mail;host=host2', 'username2', 'password2'],</div><div># ["DBI:SQLite:dbname=$MYHOME/sql/mail_prefs.sqlite", '', ''] );</div><div># @storage_sql_dsn = @lookup_sql_dsn; # none, same, or separate database</div><div><br></div><div>#
$timestamp_fmt_mysql = 1; # if using MySQL *and* msgs.time_iso is TIMESTAMP;</div><div># defaults to 0, which is good for non-MySQL or if msgs.time_iso is CHAR(16)</div><div><br></div><div>$virus_admin = "postmaster\@$mydomain"; # notifications recip.</div><div><br></div><div>$mailfrom_notify_admin = "postmaster\@$mydomain"; # notifications sender</div><div>$mailfrom_notify_recip = "postmaster\@$mydomain"; # notifications sender</div><div>$mailfrom_notify_spamadmin = "postmaster\@$mydomain"; # notifications sender</div><div>$hdrfrom_notify_sender = "amavisd-new <postmaster\@$mydomain";</div><div>$mailfrom_to_quarantine = undef; # null return path; uses original sender if undef</div><div><br></div><div>@addr_extension_virus_maps = ('virus');</div><div>@addr_extension_banned_maps =
('banned');</div><div>@addr_extension_spam_maps = ('spam');</div><div>@addr_extension_bad_header_maps = ('badh');</div><div># $recipient_delimiter = '+'; # undef disables address extensions altogether</div><div># when enabling addr extensions do also Postfix/main.cf: recipient_delimiter=+</div><div><br></div><div>$path = '/usr/local/sbin:/usr/local/bin:/usr/sbin:/sbin:/usr/bin:/bin';</div><div># $dspam = 'dspam';</div><div><br></div><div>$MAXLEVELS = 14;</div><div>$MAXFILES = 1500;</div><div>$MIN_EXPANSION_QUOTA = 100*1024; # bytes (default undef, not enforced)</div><div>$MAX_EXPANSION_QUOTA = 300*1024*1024; # bytes (default undef, not enforced)</div><div><br></div><div>$sa_spam_subject_tag = '***SPAM*** ';</div><div>$defang_virus = 1; # MIME-wrap passed infected mail</div><div>$defang_banned = 1; # MIME-wrap passed mail containing banned name</div><div># for
defanging bad headers only turn on certain minor contents categories:</div><div>$defang_by_ccat{+CC_BADH.",3"} = 1; # NUL or CR character in header</div><div>$defang_by_ccat{+CC_BADH.",5"} = 1; # header line longer than 998 characters</div><div>$defang_by_ccat{+CC_BADH.",6"} = 1; # header field syntax error</div><div><br></div><div><br></div><div># OTHER MORE COMMON SETTINGS (defaults may suffice):</div><div><br></div><div># $myhostname = 'host.example.com'; # must be a fully-qualified domain name!</div><div>$myhostname = 'miltermatic.hiresites.com';</div><div><br></div><div># $notify_method = 'smtp:[127.0.0.1]:10025';</div><div># $forward_method = 'smtp:[127.0.0.1]:10025'; # set to undef with milter!</div><div><br></div><div>$final_virus_destiny = D_DISCARD;</div><div>$final_banned_destiny = D_DISCARD;</div><div>$final_spam_destiny =
D_DISCARD;</div><div>$final_bad_header_destiny = D_DISCARD;</div><div># $bad_header_quarantine_method = undef;</div><div><br></div><div>$warnvirussender = 0;</div><div>$warnvirusrecip = 0;</div><div><br></div><div># $os_fingerprint_method = 'p0f:*:2345'; # to query p0f-analyzer.pl</div><div><br></div><div>## hierarchy by which a final setting is chosen:</div><div>## policy bank (based on port or IP address) -> *_by_ccat</div><div>## *_by_ccat (based on mail contents) -> *_maps</div><div>## *_maps (based on recipient address) -> final configuration value</div><div><br></div><div><br></div><div># SOME OTHER VARIABLES WORTH CONSIDERING (see amavisd.conf-default for all)</div><div><br></div><div># $warnbadhsender,</div><div># $warnvirusrecip, $warnbannedrecip, $warnbadhrecip, (or @warn*recip_maps)</div><div>#</div><div># @bypass_virus_checks_maps, @bypass_spam_checks_maps,</div><div># @bypass_banned_checks_maps,
@bypass_header_checks_maps,</div><div>#</div><div># @virus_lovers_maps, @spam_lovers_maps,</div><div># @banned_files_lovers_maps, @bad_header_lovers_maps,</div><div>#</div><div># @blacklist_sender_maps, @score_sender_maps,</div><div>#</div><div># $clean_quarantine_method, $virus_quarantine_to, $banned_quarantine_to,</div><div># $bad_header_quarantine_to, $spam_quarantine_to,</div><div>#</div><div># $defang_bad_header, $defang_undecipherable, $defang_spam</div><div><br></div><div>@whitelist_sender_maps = ( [".$mydomain"] ); # $mydomain and its subdomains</div><div><br></div><div># REMAINING IMPORTANT VARIABLES ARE LISTED HERE BECAUSE OF LONGER ASSIGNMENTS</div><div><br></div><div>@keep_decoded_original_maps = (new_RE(</div><div> qr'^MAIL$', # retain full original message for virus checking</div><div> qr'^MAIL-UNDECIPHERABLE$', # recheck full mail if it contains undecipherables</div><div> qr'^(ASCII(?!
cpio)|text|uuencoded|xxencoded|binhex)'i,</div><div># qr'^Zip archive data', # don't trust Archive::Zip</div><div>));</div><div><br></div><div><br></div><div># for $banned_namepath_re (a new-style of banned table) see amavisd.conf-sample</div><div><br></div><div>$banned_filename_re = new_RE(</div><div><br></div><div>### BLOCKED ANYWHERE</div><div># qr'^UNDECIPHERABLE$', # is or contains any undecipherable components</div><div> qr'^\.(exe-ms|dll)$', # banned file(1) types, rudimentary</div><div># qr'^\.(exe|lha|tnef|cab|dll)$', # banned file(1) types</div><div><br></div><div>### BLOCK THE FOLLOWING, EXCEPT WITHIN UNIX ARCHIVES:</div><div># [ qr'^\.(gz|bz2)$' => 0 ], # allow any in gzip or bzip2</div><div> [ qr'^\.(rpm|cpio|tar)$' => 0 ], # allow any in
Unix-type archives</div><div><br></div><div> qr'.\.(pif|scr)$'i, # banned extensions - rudimentary</div><div># qr'^\.zip$', # block zip type</div><div><br></div><div>### BLOCK THE FOLLOWING, EXCEPT WITHIN ARCHIVES:</div><div># [ qr'^\.(zip|rar|arc|arj|zoo)$'=> 0 ], # allow any within these archives</div><div><br></div><div> qr'^application/x-msdownload$'i, # block these MIME types</div><div> qr'^application/x-msdos-program$'i,</div><div> qr'^application/hta$'i,</div><div><br></div><div># qr'^message/partial$'i, # rfc2046 MIME type</div><div># qr'^message/external-body$'i, # rfc2046 MIME type</div><div><br></div><div># qr'^(application/x-msmetafile|image/x-wmf)$'i, # Windows Metafile MIME
type</div><div># qr'^\.wmf$', # Windows Metafile file(1) type</div><div><br></div><div> # block certain double extensions in filenames</div><div> qr'\.[^./]*[A-Za-z][^./]*\.\s*(exe|vbs|pif|scr|bat|cmd|com|cpl|dll)[.\s]*$'i,</div><div><br></div><div># qr'\{[0-9a-f]{8}(-[0-9a-f]{4}){3}-[0-9a-f]{12}\}?'i, # Class ID CLSID, strict</div><div># qr'\{[0-9a-z]{4,}(-[0-9a-z]{4,}){0,7}\}?'i, # Class ID extension CLSID, loose</div><div><br></div><div> qr'.\.(exe|vbs|pif|scr|cpl)$'i, # banned extension - basic</div><div># qr'.\.(exe|vbs|pif|scr|cpl|bat|cmd|com)$'i, # banned extension - basic+cmd</div><div># qr'.\.(ade|adp|app|bas|bat|chm|cmd|com|cpl|crt|emf|exe|fxp|grp|hlp|hta|</div><div># inf|ins|isp|js|jse|lnk|mda|mdb|mde|mdw|mdt|mdz|msc|msi|msp|mst|</div><div>#
ops|pcd|pif|prg|reg|scr|sct|shb|shs|vb|vbe|vbs|</div><div># wmf|wsc|wsf|wsh)$'ix, # banned ext - long</div><div># qr'.\.(ani|cur|ico)$'i, # banned cursors and icons filename</div><div># qr'^\.ani$', # banned animated cursor file(1) type</div><div><br></div><div># qr'.\.(mim|b64|bhx|hqx|xxe|uu|uue)$'i, # banned extension - WinZip vulnerab.</div><div>);</div><div># See http://support.microsoft.com/default.aspx?scid=kb;EN-US;q262631</div><div># and http://www.cknow.com/vtutor/vtextensions.htm</div><div><br></div><div><br></div><div># ENVELOPE SENDER SOFT-WHITELISTING / SOFT-BLACKLISTING</div><div><br></div><div>@score_sender_maps = ({ # a by-recipient hash lookup table,</div><div>
# results from all matching recipient tables are summed</div><div><br></div><div># ## per-recipient personal tables (NOTE: positive: black, negative: white)</div><div># 'user1@example.com' => [{'bla-mobile.press@example.com' => 10.0}],</div><div># 'user3@example.com' => [{'.ebay.com' => -3.0}],</div><div># 'user4@example.com' => [{'cleargreen@cleargreen.com' => -7.0,</div><div># '.cleargreen.com' => -5.0}],</div><div><br></div><div> ## site-wide opinions about senders (the '.' matches any recipient)</div><div> '.' => [ # the _first_ matching sender determines the score boost</div><div><br></div><div> new_RE( # regexp-type lookup table, just happens to be all soft-blacklist</div><div>
[qr'^(bulkmail|offers|cheapbenefits|earnmoney|foryou)@'i => 5.0],</div><div> [qr'^(greatcasino|investments|lose_weight_today|market\.alert)@'i=> 5.0],</div><div> [qr'^(money2you|MyGreenCard|new\.tld\.registry|opt-out|opt-in)@'i=> 5.0],</div><div> [qr'^(optin|saveonlsmoking2002k|specialoffer|specialoffers)@'i => 5.0],</div><div> [qr'^(stockalert|stopsnoring|wantsome|workathome|yesitsfree)@'i => 5.0],</div><div> [qr'^(your_friend|greatoffers)@'i => 5.0],</div><div> [qr'^(inkjetplanet|marketopt|MakeMoney)\d*@'i => 5.0],</div><div> ),</div><div><br></div><div>#
read_hash("/var/amavis/sender_scores_sitewide"),</div><div><br></div><div> { # a hash-type lookup table (associative array)</div><div> 'nobody@cert.org' => -3.0,</div><div> 'cert-advisory@us-cert.gov' => -3.0,</div><div> 'owner-alert@iss.net' => -3.0,</div><div> 'slashdot@slashdot.org' => -3.0,</div><div> 'securityfocus.com' => -3.0,</div><div> 'ntbugtraq@listserv.ntbugtraq.com' => -3.0,</div><div> 'security-alerts@linuxsecurity.com'
=> -3.0,</div><div> 'mailman-announce-admin@python.org' => -3.0,</div><div> 'amavis-user-admin@lists.sourceforge.net'=> -3.0,</div><div> 'amavis-user-bounces@lists.sourceforge.net' => -3.0,</div><div> 'spamassassin.apache.org' => -3.0,</div><div> 'notification-return@lists.sophos.com' => -3.0,</div><div> 'owner-postfix-users@postfix.org' => -3.0,</div><div> 'owner-postfix-announce@postfix.org' => -3.0,</div><div> 'owner-sendmail-announce@lists.sendmail.org' => -3.0,</div><div> 'sendmail-announce-request@lists.sendmail.org' => -3.0,</div><div> 'donotreply@sendmail.org'
=> -3.0,</div><div> 'ca+envelope@sendmail.org' => -3.0,</div><div> 'noreply@freshmeat.net' => -3.0,</div><div> 'owner-technews@postel.acm.org' => -3.0,</div><div> 'ietf-123-owner@loki.ietf.org' => -3.0,</div><div> 'cvs-commits-list-admin@gnome.org' => -3.0,</div><div> 'rt-users-admin@lists.fsck.com' => -3.0,</div><div> 'clp-request@comp.nus.edu.sg' => -3.0,</div><div> 'surveys-errors@lists.nua.ie' => -3.0,</div><div>
'emailnews@genomeweb.com' => -5.0,</div><div> 'yahoo-dev-null@yahoo-inc.com' => -3.0,</div><div> 'returns.groups.yahoo.com' => -3.0,</div><div> 'clusternews@linuxnetworx.com' => -3.0,</div><div> lc('lvs-users-admin@LinuxVirtualServer.org') => -3.0,</div><div> lc('owner-textbreakingnews@CNNIMAIL12.CNN.COM') => -5.0,</div><div><br></div><div> # soft-blacklisting (positive score)</div><div> 'sender@example.net' => 3.0,</div><div> '.example.net'
=> 1.0,</div><div><br></div><div> },</div><div> ], # end of site-wide tables</div><div>});</div><div><br></div><div><br></div><div>@decoders = (</div><div> ['mail', \&do_mime_decode],</div><div> ['asc', \&do_ascii],</div><div> ['uue', \&do_ascii],</div><div> ['hqx', \&do_ascii],</div><div> ['ync', \&do_ascii],</div><div> ['F', \&do_uncompress, ['unfreeze','freeze -d','melt','fcat'] ],</div><div> ['Z', \&do_uncompress, ['uncompress','gzip -d','zcat'] ],</div><div> ['gz', \&do_uncompress, 'gzip -d'],</div><div> ['gz', \&do_gunzip],</div><div> ['bz2', \&do_uncompress, 'bzip2 -d'],</div><div> ['lzo', \&do_uncompress, 'lzop -d'],</div><div> ['rpm', \&do_uncompress, ['rpm2cpio.pl','rpm2cpio']
],</div><div> ['cpio', \&do_pax_cpio, ['pax','gcpio','cpio'] ],</div><div> ['tar', \&do_pax_cpio, ['pax','gcpio','cpio'] ],</div><div> ['deb', \&do_ar, 'ar'],</div><div># ['a', \&do_ar, 'ar'], # unpacking .a seems an overkill</div><div> ['zip', \&do_unzip],</div><div> ['7z', \&do_7zip, ['7zr','7za','7z'] ],</div><div> ['rar', \&do_unrar, ['rar','unrar'] ],</div><div> ['arj', \&do_unarj, ['arj','unarj'] ],</div><div> ['arc', \&do_arc, ['nomarch','arc'] ],</div><div> ['zoo', \&do_zoo, ['zoo','unzoo'] ],</div><div> ['lha', \&do_lha, 'lha'],</div><div># ['doc',
\&do_ole, 'ripole'],</div><div> ['cab', \&do_cabextract, 'cabextract'],</div><div> ['tnef', \&do_tnef_ext, 'tnef'],</div><div> ['tnef', \&do_tnef],</div><div># ['sit', \&do_unstuff, 'unstuff'], # broken/unsafe decoder</div><div> ['exe', \&do_executable, ['rar','unrar'], 'lha', ['arj','unarj'] ],</div><div>);</div><div><br></div><div><br></div><div>@av_scanners = (</div><div><br></div><div># ### http://www.clanfield.info/sophie/ (http://www.vanja.com/tools/sophie/)</div><div># ['Sophie',</div><div># \&ask_daemon, ["{}/\n", '/var/run/sophie'],</div><div># qr/(?x)^ 0+ ( : | [\000\r\n]* $)/m, qr/(?x)^ 1 ( : | [\000\r\n]* $)/m,</div><div># qr/(?x)^ [-+]? \d+ : (.*?) [\000\r\n]* $/m ],</div><div><br></div><div># ### http://www.csupomona.edu/~henson/www/projects/SAVI-Perl/</div><div># ['Sophos
SAVI', \&sophos_savi ],</div><div><br></div><div># ### http://www.clamav.net/</div><div>['ClamAV-clamd',</div><div> \&ask_daemon, ["CONTSCAN {}\n", "/var/spool/amavisd/clamd.sock"],</div><div> qr/\bOK$/m, qr/\bFOUND$/m,</div><div> qr/^.*?: (?!Infected Archive)(.*) FOUND$/m ],</div><div># # NOTE: run clamd under the same user as amavisd, or run it under its own</div><div># # uid such as clamav, add user clamav to the amavis group, and then add</div><div># # AllowSupplementaryGroups to clamd.conf;</div><div># # NOTE: match socket name (LocalSocket) in clamav.conf to the socket name in</div><div># # this entry; when running chrooted one may prefer socket "$MYHOME/clamd".</div><div><br></div><div># ### http://www.clamav.net/ and CPAN (memory-hungry! clamd is preferred)</div><div># # note that Mail::ClamAV requires perl to be build with threading!</div><div># ['Mail::ClamAV', \&ask_clamav, "*", [0],
[1], qr/^INFECTED: (.+)/m ],</div><div><br></div><div># ### http://www.openantivirus.org/</div><div># ['OpenAntiVirus ScannerDaemon (OAV)',</div><div># \&ask_daemon, ["SCAN {}\n", '127.0.0.1:8127'],</div><div># qr/^OK/m, qr/^FOUND: /m, qr/^FOUND: (.+)/m ],</div><div><br></div><div># ### http://www.vanja.com/tools/trophie/</div><div># ['Trophie',</div><div># \&ask_daemon, ["{}/\n", '/var/run/trophie'],</div><div># qr/(?x)^ 0+ ( : | [\000\r\n]* $)/m, qr/(?x)^ 1 ( : | [\000\r\n]* $)/m,</div><div># qr/(?x)^ [-+]? \d+ : (.*?) [\000\r\n]* $/m ],</div><div><br></div><div># ### http://www.grisoft.com/</div><div># ['AVG Anti-Virus',</div><div># \&ask_daemon, ["SCAN {}\n", '127.0.0.1:55555'],</div><div># qr/^200/m, qr/^403/m, qr/^403 .*?: ([^\r\n]+)/m ],</div><div><br></div><div># ### http://www.f-prot.com/</div><div># ['F-Prot fpscand', # F-PROT Antivirus for BSD/Linux/Solaris, version
6</div><div># \&ask_daemon,</div><div># ["SCAN FILE {}/*\n", '127.0.0.1:10200'],</div><div># qr/^(0|8|64) /m,</div><div># qr/^([1235679]|1[01345]) |<[^>:]*(?i)(infected|suspicious|unwanted)/m,</div><div># qr/(?i)<[^>:]*(?:infected|suspicious|unwanted)[^>:]*: ([^>]*)>/m ],</div><div><br></div><div># ### http://www.f-prot.com/</div><div># ['F-Prot f-protd', # old version</div><div># \&ask_daemon,</div><div># ["GET {}/*?-dumb%20-archive%20-packed HTTP/1.0\r\n\r\n",</div><div># ['127.0.0.1:10200', '127.0.0.1:10201', '127.0.0.1:10202',</div><div># '127.0.0.1:10203', '127.0.0.1:10204'] ],</div><div># qr/(?i)<summary[^>]*>clean<\/summary>/m,</div><div># qr/(?i)<summary[^>]*>infected<\/summary>/m,</div><div># qr/(?i)<name>(.+)<\/name>/m ],</div><div><br></div><div># ###
http://www.sald.com/, http://www.dials.ru/english/, http://www.drweb.ru/</div><div># ['DrWebD', \&ask_daemon, # DrWebD 4.31 or later</div><div># [pack('N',1). # DRWEBD_SCAN_CMD</div><div># pack('N',0x00280001). # DONT_CHANGEMAIL, IS_MAIL, RETURN_VIRUSES</div><div># pack('N', # path length</div><div># length("$TEMPBASE/amavis-yyyymmddTHHMMSS-xxxxx/parts/pxxx")).</div><div># '{}/*'. # path</div><div># pack('N',0). # content size</div><div># pack('N',0),</div><div># '/var/drweb/run/drwebd.sock',</div><div># # '/var/amavis/var/run/drwebd.sock', # suitable for chroot</div><div># # '/usr/local/drweb/run/drwebd.sock', # FreeBSD drweb ports default</div><div># # '127.0.0.1:3000', # or over an
inet socket</div><div># ],</div><div># qr/\A\x00[\x10\x11][\x00\x10]\x00/sm, # IS_CLEAN,EVAL_KEY; SKIPPED</div><div># qr/\A\x00[\x00\x01][\x00\x10][\x20\x40\x80]/sm,# KNOWN_V,UNKNOWN_V,V._MODIF</div><div># qr/\A.{12}(?:infected with )?([^\x00]+)\x00/sm,</div><div># ],</div><div># # NOTE: If using amavis-milter, change length to:</div><div># # length("$TEMPBASE/amavis-milter-xxxxxxxxxxxxxx/parts/pxxx").</div><div><br></div><div> ### http://www.kaspersky.com/ (kav4mailservers)</div><div> ['KasperskyLab AVP - aveclient',</div><div> ['/usr/local/kav/bin/aveclient','/usr/local/share/kav/bin/aveclient',</div><div> '/opt/kav/5.5/kav4mailservers/bin/aveclient','aveclient'],</div><div> '-p /var/run/aveserver -s {}/*',</div><div> [0,3,6,8], qr/\b(INFECTED|SUSPICION|SUSPICIOUS)\b/m,</div><div>
qr/(?:INFECTED|WARNING|SUSPICION|SUSPICIOUS) (.+)/m,</div><div> ],</div><div> # NOTE: one may prefer [0],[2,3,4,5], depending on how suspicious,</div><div> # currupted or protected archives are to be handled</div><div><br></div><div> ### http://www.kaspersky.com/</div><div> ['KasperskyLab AntiViral Toolkit Pro (AVP)', ['avp'],</div><div> '-* -P -B -Y -O- {}', [0,3,6,8], [2,4], # any use for -A -K ?</div><div> qr/infected: (.+)/m,</div><div> sub {chdir('/opt/AVP') or die "Can't chdir to AVP: $!"},</div><div> sub {chdir($TEMPBASE) or die "Can't chdir back to $TEMPBASE $!"},</div><div> ],</div><div><br></div><div> ### The kavdaemon and AVPDaemonClient have been removed from Kasperky</div><div> ### products and replaced by aveserver and aveclient</div><div> ['KasperskyLab AVPDaemonClient',</div><div> [
'/opt/AVP/kavdaemon', 'kavdaemon',</div><div> '/opt/AVP/AvpDaemonClient', 'AvpDaemonClient',</div><div> '/opt/AVP/AvpTeamDream', 'AvpTeamDream',</div><div> '/opt/AVP/avpdc', 'avpdc' ],</div><div> "-f=$TEMPBASE {}", [0,8], [3,4,5,6], qr/infected: ([^\r\n]+)/m ],</div><div> # change the startup-script in /etc/init.d/kavd to:</div><div> # DPARMS="-* -Y -dl -f=/var/amavis /var/amavis"</div><div> # (or perhaps: DPARMS="-I0 -Y -* /var/amavis" )</div><div> # adjusting /var/amavis above to match your $TEMPBASE.</div><div> # The '-f=/var/amavis' is needed if not running it as root, so it</div><div> # can find, read, and write its pid file, etc., see 'man kavdaemon'.</div><div> # defUnix.prf: there must be an entry "*/var/amavis" (or
whatever</div><div> # directory $TEMPBASE specifies) in the 'Names=' section.</div><div> # cd /opt/AVP/DaemonClients; configure; cd Sample; make</div><div> # cp AvpDaemonClient /opt/AVP/</div><div> # su - vscan -c "${PREFIX}/kavdaemon ${DPARMS}"</div><div><br></div><div> ### http://www.centralcommand.com/</div><div> ['CentralCommand Vexira (new) vascan',</div><div> ['vascan','/usr/lib/Vexira/vascan'],</div><div> "-a s --timeout=60 --temp=$TEMPBASE -y $QUARANTINEDIR ".</div><div> "--log=/var/log/vascan.log {}",</div><div> [0,3], [1,2,5],</div><div> qr/(?x)^\s* (?:virus|iworm|macro|mutant|sequence|trojan)\ found:\ ( [^\]\s']+ )\ \.\.\.\ /m ],</div><div> # Adjust the path of the binary and the virus database as needed.</div><div> # 'vascan' does not allow to have the temp directory to be the same
as</div><div> # the quarantine directory, and the quarantine option can not be disabled.</div><div> # If $QUARANTINEDIR is not used, then another directory must be specified</div><div> # to appease 'vascan'. Move status 3 to the second list if password</div><div> # protected files are to be considered infected.</div><div><br></div><div> ### http://www.avira.com/</div><div> ### Avira AntiVir (formerly H+BEDV) or (old) CentralCommand Vexira Antivirus</div><div> ['Avira AntiVir', ['antivir','vexira'],</div><div> '--allfiles -noboot -nombr -rs -s -z {}', [0], qr/ALERT:|VIRUS:/m,</div><div> qr/(?x)^\s* (?: ALERT: \s* (?: \[ | [^']* ' ) |</div><div> (?i) VIRUS:\ .*?\ virus\ '?) ( [^\]\s']+ )/m ],</div><div> # NOTE: if you only have a demo version, remove -z and add 214, as in:</div><div> # '--allfiles
-noboot -nombr -rs -s {}', [0,214], qr/ALERT:|VIRUS:/,</div><div><br></div><div> ### http://www.commandsoftware.com/</div><div> ['Command AntiVirus for Linux', 'csav',</div><div> '-all -archive -packed {}', [50], [51,52,53],</div><div> qr/Infection: (.+)/m ],</div><div><br></div><div> ### http://www.symantec.com/</div><div> ['Symantec CarrierScan via Symantec CommandLineScanner',</div><div> 'cscmdline', '-a scan -i 1 -v -s 127.0.0.1:7777 {}',</div><div> qr/^Files Infected:\s+0$/m, qr/^Infected\b/m,</div><div> qr/^(?:Info|Virus Name):\s+(.+)/m ],</div><div><br></div><div> ### http://www.symantec.com/</div><div> ['Symantec AntiVirus Scan Engine',</div><div> 'savsecls', '-server 127.0.0.1:7777 -mode scanrepair -details -verbose {}',</div><div> [0], qr/^Infected\b/m,</div><div> qr/^(?:Info|Virus Name):\s+(.+)/m
],</div><div> # NOTE: check options and patterns to see which entry better applies</div><div><br></div><div># ### http://www.f-secure.com/products/anti-virus/ version 4.65</div><div># ['F-Secure Antivirus for Linux servers',</div><div># ['/opt/f-secure/fsav/bin/fsav', 'fsav'],</div><div># '--delete=no --disinf=no --rename=no --archive=yes --auto=yes '.</div><div># '--dumb=yes --list=no --mime=yes {}', [0], [3,6,8],</div><div># qr/(?:infection|Infected|Suspected): (.+)/m ],</div><div><br></div><div> ### http://www.f-secure.com/products/anti-virus/ version 5.52</div><div> ['F-Secure Antivirus for Linux servers',</div><div> ['/opt/f-secure/fsav/bin/fsav', 'fsav'],</div><div> '--virus-action1=report --archive=yes --auto=yes '.</div><div> '--dumb=yes --list=no --mime=yes {}', [0], [3,4,6,8],</div><div>
qr/(?:infection|Infected|Suspected|Riskware): (.+)/m ],</div><div> # NOTE: internal archive handling may be switched off by '--archive=no'</div><div> # to prevent fsav from exiting with status 9 on broken archives</div><div><br></div><div># ### http://www.avast.com/</div><div># ['avast! Antivirus daemon',</div><div># \&ask_daemon,<span class="Apple-tab-span" style="white-space:pre"> </span># greets with 220, terminate with QUIT</div><div># ["SCAN {}\015\012QUIT\015\012", '/var/run/avast4/mailscanner.sock'],</div><div># qr/\t\[\+\]/m, qr/\t\[L\]\t/m, qr/\t\[L\]\t([^[ \t\015\012]+)/m ],</div><div><br></div><div># ### http://www.avast.com/</div><div># ['avast! Antivirus - Client/Server Version', 'avastlite',</div><div># '-a /var/run/avast4/mailscanner.sock -n {}', [0], [1],</div><div># qr/\t\[L\]\t([^[ \t\015\012]+)/m ],</div><div><br></div><div> ['CAI InoculateIT', 'inocucmd',
# retired product</div><div> '-sec -nex {}', [0], [100],</div><div> qr/was infected by virus (.+)/m ],</div><div> # see: http://www.flatmtn.com/computer/Linux-Antivirus_CAI.html</div><div><br></div><div> ### http://www3.ca.com/Solutions/Product.asp?ID=156 (ex InoculateIT)</div><div> ['CAI eTrust Antivirus', 'etrust-wrapper',</div><div> '-arc -nex -spm h {}', [0], [101],</div><div> qr/is infected by virus: (.+)/m ],</div><div> # NOTE: requires suid wrapper around inocmd32; consider flag: -mod reviewer</div><div> # see http://marc.theaimsgroup.com/?l=amavis-user&m=109229779912783</div><div><br></div><div> ### http://mks.com.pl/english.html</div><div> ['MkS_Vir for Linux (beta)', ['mks32','mks'],</div><div> '-s {}/*', [0], [1,2],</div><div> qr/--[ \t]*(.+)/m ],</div><div><br></div><div> ###
http://mks.com.pl/english.html</div><div> ['MkS_Vir daemon', 'mksscan',</div><div> '-s -q {}', [0], [1..7],</div><div> qr/^... (\S+)/m ],</div><div><br></div><div># ### http://www.nod32.com/, version v2.52 (old)</div><div># ['ESET NOD32 for Linux Mail servers',</div><div># ['/opt/eset/nod32/bin/nod32cli', 'nod32cli'],</div><div># '--subdir --files -z --sfx --rtp --adware --unsafe --pattern --heur '.</div><div># '-w -a --action-on-infected=accept --action-on-uncleanable=accept '.</div><div># '--action-on-notscanned=accept {}',</div><div># [0,3], [1,2], qr/virus="([^"]+)"/m ],</div><div><br></div><div># ### http://www.eset.com/, version v2.7 (old)</div><div># ['ESET NOD32 Linux Mail Server - command line interface',</div><div># ['/usr/bin/nod32cli', '/opt/eset/nod32/bin/nod32cli', 'nod32cli'],</div><div># '--subdir {}', [0,3], [1,2],
qr/virus="([^"]+)"/m ],</div><div><br></div><div># ### http://www.eset.com/, version 2.71.12</div><div># ['ESET Software ESETS Command Line Interface',</div><div># ['/usr/bin/esets_cli', 'esets_cli'],</div><div># '--subdir {}', [0], [1,2,3], qr/virus="([^"]+)"/m ],</div><div><br></div><div> ### http://www.eset.com/, version 3.0</div><div> ['ESET Software ESETS Command Line Interface',</div><div> ['/usr/bin/esets_cli', 'esets_cli'],</div><div> '--subdir {}', [0], [1,2,3],</div><div> qr/:\s*action="(?!accepted)[^"]*"\n.*:\s*virus="([^"]*)"/m ],</div><div><br></div><div> ## http://www.nod32.com/, NOD32LFS version 2.5 and above</div><div> ['ESET NOD32 for Linux File servers',</div><div> ['/opt/eset/nod32/sbin/nod32','nod32'],</div><div> '--files -z --mail --sfx --rtp --adware --unsafe --pattern --heur '.</div><div> '-w -a --action=1 -b
{}',</div><div> [0], [1,10], qr/^object=.*, virus="(.*?)",/m ],</div><div><br></div><div># Experimental, based on posting from Rado Dibarbora (Dibo) on 2002-05-31</div><div># ['ESET Software NOD32 Client/Server (NOD32SS)',</div><div># \&ask_daemon2, # greets with 200, persistent, terminate with QUIT</div><div># ["SCAN {}/*\r\n", '127.0.0.1:8448' ],</div><div># qr/^200 File OK/m, qr/^201 /m, qr/^201 (.+)/m ],</div><div><br></div><div> ### http://www.norman.com/products_nvc.shtml</div><div> ['Norman Virus Control v5 / Linux', 'nvcc',</div><div> '-c -l:0 -s -u -temp:$TEMPBASE {}', [0,10,11], [1,2,14],</div><div> qr/(?i).* virus in .* -> \'(.+)\'/m ],</div><div><br></div><div> ### http://www.pandasoftware.com/</div><div> ['Panda CommandLineSecure 9 for Linux',</div><div> ['/opt/pavcl/usr/bin/pavcl','pavcl'],</div><div> '-auto
-aex -heu -cmp -nbr -nor -nos -eng -nob {}',</div><div> qr/Number of files infected[ .]*: 0+(?!\d)/m,</div><div> qr/Number of files infected[ .]*: 0*[1-9]/m,</div><div> qr/Found virus :\s*(\S+)/m ],</div><div> # NOTE: for efficiency, start the Panda in resident mode with 'pavcl -tsr'</div><div> # before starting amavisd - the bases are then loaded only once at startup.</div><div> # To reload bases in a signature update script:</div><div> # /opt/pavcl/usr/bin/pavcl -tsr -ulr; /opt/pavcl/usr/bin/pavcl -tsr</div><div> # Please review other options of pavcl, for example:</div><div> # -nomalw, -nojoke, -nodial, -nohackt, -nospyw, -nocookies</div><div><br></div><div># ### http://www.pandasoftware.com/</div><div># ['Panda Antivirus for Linux', ['pavcl'],</div><div># '-TSR -aut -aex -heu -cmp -nbr -nor -nso -eng {}',</div><div># [0], [0x10, 0x30, 0x50, 0x70,
0x90, 0xB0, 0xD0, 0xF0],</div><div># qr/Found virus :\s*(\S+)/m ],</div><div><br></div><div># GeCAD AV technology is acquired by Microsoft; RAV has been discontinued.</div><div># Check your RAV license terms before fiddling with the following two lines!</div><div># ['GeCAD RAV AntiVirus 8', 'ravav',</div><div># '--all --archive --mail {}', [1], [2,3,4,5], qr/Infected: (.+)/m ],</div><div># # NOTE: the command line switches changed with scan engine 8.5 !</div><div># # (btw, assigning stdin to /dev/null causes RAV to fail)</div><div><br></div><div> ### http://www.nai.com/</div><div> ['NAI McAfee AntiVirus (uvscan)', 'uvscan',</div><div> '--secure -rv --mime --summary --noboot - {}', [0], [13],</div><div> qr/(?x) Found (?:</div><div> \ the\ (.+)\ (?:virus|trojan) |</div><div> \ (?:virus|trojan)\ or\ variant\ ([^ ]+) |</div><div>
:\ (.+)\ NOT\ a\ virus)/m,</div><div> # sub {$ENV{LD_PRELOAD}='/lib/libc.so.6'},</div><div> # sub {delete $ENV{LD_PRELOAD}},</div><div> ],</div><div> # NOTE1: with RH9: force the dynamic linker to look at /lib/libc.so.6 before</div><div> # anything else by setting environment variable LD_PRELOAD=/lib/libc.so.6</div><div> # and then clear it when finished to avoid confusing anything else.</div><div> # NOTE2: to treat encrypted files as viruses replace the [13] with:</div><div> # qr/^\s{5,}(Found|is password-protected|.*(virus|trojan))/</div><div><br></div><div> ### http://www.virusbuster.hu/en/</div><div> ['VirusBuster', ['vbuster', 'vbengcl'],</div><div> "{} -ss -i '*' -log=$MYHOME/vbuster.log", [0], [1],</div><div> qr/: '(.*)' - Virus/m ],</div><div> # VirusBuster Ltd. does not support the daemon version for the
workstation</div><div> # engine (vbuster-eng-1.12-linux-i386-libc6.tgz) any longer. The names of</div><div> # binaries, some parameters AND return codes have changed (from 3 to 1).</div><div> # See also the new Vexira entry 'vascan' which is possibly related.</div><div><br></div><div># ### http://www.virusbuster.hu/en/</div><div># ['VirusBuster (Client + Daemon)', 'vbengd',</div><div># '-f -log scandir {}', [0], [3],</div><div># qr/Virus found = (.*);/m ],</div><div># # HINT: for an infected file it always returns 3,</div><div># # although the man-page tells a different story</div><div><br></div><div> ### http://www.cyber.com/</div><div> ['CyberSoft VFind', 'vfind',</div><div> '--vexit {}/*', [0], [23], qr/##==>>>> VIRUS ID: CVDL (.+)/m,</div><div> # sub {$ENV{VSTK_HOME}='/usr/lib/vstk'},</div><div> ],</div><div><br></div><div> ###
http://www.avast.com/</div><div> ['avast! Antivirus', ['/usr/bin/avastcmd','avastcmd'],</div><div> '-a -i -n -t=A {}', [0], [1], qr/\binfected by:\s+([^ \t\n\[\]]+)/m ],</div><div><br></div><div> ### http://www.ikarus-software.com/</div><div> ['Ikarus AntiVirus for Linux', 'ikarus',</div><div> '{}', [0], [40], qr/Signature (.+) found/m ],</div><div><br></div><div> ### http://www.bitdefender.com/</div><div> ['BitDefender', 'bdscan', # new version</div><div> '--action=ignore --no-list {}', qr/^Infected files\s*:\s*0+(?!\d)/m,</div><div> qr/^(?:Infected files|Identified viruses|Suspect files)\s*:\s*0*[1-9]/m,</div><div> qr/(?:suspected|infected)\s*:\s*(.*)(?:\033|$)/m ],</div><div><br></div><div> ### http://www.bitdefender.com/</div><div> ['BitDefender', 'bdc', # old version</div><div> '--arc --mail {}', qr/^Infected files
*:0+(?!\d)/m,</div><div> qr/^(?:Infected files|Identified viruses|Suspect files) *:0*[1-9]/m,</div><div> qr/(?:suspected|infected): (.*)(?:\033|$)/m ],</div><div> # consider also: --all --nowarn --alev=15 --flev=15. The --all argument may</div><div> # not apply to your version of bdc, check documentation and see 'bdc --help'</div><div><br></div><div> ### ArcaVir for Linux and Unix http://www.arcabit.pl/</div><div> ['ArcaVir for Linux', ['arcacmd','arcacmd.static'],</div><div> '-v 1 -summary 0 -s {}', [0], [1,2],</div><div> qr/(?:VIR|WIR):[ \t]*(.+)/m ],</div><div><br></div><div># ### a generic SMTP-client interface to a SMTP-based virus scanner</div><div># ['av_smtp', \&ask_av_smtp,</div><div># ['{}', 'smtp:[127.0.0.1]:5525', 'dummy@localhost'],</div><div># qr/^2/, qr/^5/, qr/^\s*(.*?)\s*$/m ],</div><div><br></div><div># ['File::Scan', sub
{Amavis::AV::ask_av(sub{</div><div># use File::Scan; my($fn)=@_;</div><div># my($f)=File::Scan->new(max_txt_size=>0, max_bin_size=>0);</div><div># my($vname) = $f->scan($fn);</div><div># $f->error ? (2,"Error: ".$f->error)</div><div># : ($vname ne '') ? (1,"$vname FOUND") : (0,"Clean")}, @_) },</div><div># ["{}/*"], [0], [1], qr/^(.*) FOUND$/m ],</div><div><br></div><div># ### fully-fledged checker for JPEG marker segments of invalid length</div><div># ['check-jpeg',</div><div># sub { use JpegTester (); Amavis::AV::ask_av(\&JpegTester::test_jpeg, @_) },</div><div># ["{}/*"], undef, [1], qr/^(bad jpeg: .*)$/m ],</div><div># # NOTE: place file JpegTester.pm somewhere where Perl can find it,</div><div># # for example in /usr/local/lib/perl5/site_perl</div><div><br></div><div>);</div><div><br></div><div><br></div><div>@av_scanners_backup =
(</div><div><br></div><div> ### http://www.clamav.net/ - backs up clamd or Mail::ClamAV</div><div> ['ClamAV-clamscan', 'clamscan',</div><div> "--stdout --no-summary -r --tempdir=$TEMPBASE {}",</div><div> [0], qr/:.*\sFOUND$/m, qr/^.*?: (?!Infected Archive)(.*) FOUND$/m ],</div><div><br></div><div> ### http://www.f-prot.com/ - backs up F-Prot Daemon, V6</div><div> ['F-PROT Antivirus for UNIX', ['fpscan'],</div><div> '--report --mount --adware {}', # consider: --applications -s 4 -u 3 -z 10</div><div> [0,8,64], [1,2,3, 4+1,4+2,4+3, 8+1,8+2,8+3, 12+1,12+2,12+3],</div><div> qr/^\[Found\s+[^\]]*\]\s+<([^ \t(>]*)/m ],</div><div><br></div><div> ### http://www.f-prot.com/ - backs up F-Prot Daemon (old)</div><div> ['FRISK F-Prot Antivirus', ['f-prot','f-prot.sh'],</div><div> '-dumb -archive -packed {}', [0,8],
[3,6], # or: [0], [3,6,8],</div><div> qr/(?:Infection:|security risk named) (.+)|\s+contains\s+(.+)$/m ],</div><div><br></div><div> ### http://www.trendmicro.com/ - backs up Trophie</div><div> ['Trend Micro FileScanner', ['/etc/iscan/vscan','vscan'],</div><div> '-za -a {}', [0], qr/Found virus/m, qr/Found virus (.+) in/m ],</div><div><br></div><div> ### http://www.sald.com/, http://drweb.imshop.de/ - backs up DrWebD</div><div> ['drweb - DrWeb Antivirus', # security LHA hole in Dr.Web 4.33 and earlier</div><div> ['/usr/local/drweb/drweb', '/opt/drweb/drweb', 'drweb'],</div><div> '-path={} -al -go -ot -cn -upn -ok-',</div><div> [0,32], [1,9,33], qr' infected (?:with|by)(?: virus)? (.*)$'m ],</div><div><br></div><div> ### http://www.kaspersky.com/</div><div> ['Kaspersky Antivirus v5.5',</div><div>
['/opt/kaspersky/kav4fs/bin/kav4fs-kavscanner',</div><div> '/opt/kav/5.5/kav4unix/bin/kavscanner',</div><div> '/opt/kav/5.5/kav4mailservers/bin/kavscanner', 'kavscanner'],</div><div> '-i0 -xn -xp -mn -R -ePASBME {}/*', [0,10,15], [5,20,21,25],</div><div> qr/(?:INFECTED|WARNING|SUSPICION|SUSPICIOUS) (.*)/m,</div><div># sub {chdir('/opt/kav/bin') or die "Can't chdir to kav: $!"},</div><div># sub {chdir($TEMPBASE) or die "Can't chdir back to $TEMPBASE $!"},</div><div> ],</div><div><br></div><div># Commented out because the name 'sweep' clashes with Debian and FreeBSD</div><div># package/port of an audio editor. Make sure the correct 'sweep' is found</div><div># in the path when enabling.</div><div>#</div><div># ### http://www.sophos.com/ - backs up Sophie or SAVI-Perl</div><div># ['Sophos Anti Virus (sweep)', 'sweep',</div><div>#
'-nb -f -all -rec -ss -sc -archive -cab -mime -oe -tnef '.</div><div># '--no-reset-atime {}',</div><div># [0,2], qr/Virus .*? found/m,</div><div># qr/^>>> Virus(?: fragment)? '?(.*?)'? found/m,</div><div># ],</div><div># # other options to consider: -idedir=/usr/local/sav</div><div><br></div><div># Always succeeds and considers mail clean.</div><div># Potentially useful when all other scanners fail and it is desirable</div><div># to let mail continue to flow with no virus checking (when uncommented).</div><div># ['always-clean', sub {0}],</div><div><br></div><div>);</div><div><br></div><div><br></div><div>1; # insure a defined return value</div></div></font></div></div></div></body></html>