logo       

Sendmail + MailScanner updates: msg#00004

Subject: Sendmail + MailScanner updates
As the latest logwatch did not catch all of my log rules I added some
rules. At least one is rather specific to my setup.


--- services/mailscanner.SHIPPED        2004-06-26 10:15:37.000000000 +0200
+++ services/mailscanner        2004-10-09 12:12:03.000000000 +0200
@@ -9,6 +9,9 @@
 #
 # Sophos Support and other improvments by Mark W. Nienberg
 #
+# Some more clean up rules based on extensive use of some MailScanner
+# settings and F-Prot and ClamAV as dual scanners.
+#
 ########################################################

 while (defined($ThisLine = <STDIN>)) {
@@ -39,6 +42,9 @@
          ( $ThisLine =~ m/SophosSAVI using [0-9]+ IDE files/ ) or
          ( $ThisLine =~ m/Sophos SAVI library has been updated/ ) or
          ( $ThisLine =~ m/Sophos update of .* detected, resetting SAVI/ ) or
+         ( $ThisLine =~ m/RBL checks: .+ found in RFC-IGNORANT-POSTMASTER/ ) or
+         ( $ThisLine =~ m/Message .+ from .+ to .+ is spam/ ) or
+         ( $ThisLine =~ m/F-Prot found .+ infections/ ) or
          ( $ThisLine =~ m/Content Checks: Detected and will convert HTML/ ) ) {
       # We don't care about these
    } elsif ( $ThisLine =~ m/New Batch: Scanning ([0-9]+) messages, ([0-9]+) 
bytes/i) {
@@ -64,6 +70,12 @@
    } elsif ($ThisLine =~ m/^\/var\/spool\/MailScanner\/incoming\/.+: 
([\w\_\-\.\/]+) FOUND/i) {
       $VirusType_ClamAv{$1}++;
       $MailScan_Virus_ClamAv++;
+   } elsif ($ThisLine =~ m/^\/var\/spool\/MailScanner\/incoming\/.+ Infection: 
([\w\_\-\.\/]+)/i) {
+      $VirusType_Fprot{$1}++;
+      $MailScan_Virus_Fprot++;
+   } elsif ($ThisLine =~ m/Virus Scanning: F-Prot found virus 
([\w\_\-\.\/]+)/i) {
+      $VirusType_FProt{$1}++;
+      $MailScan_Virus_FProt++;
    } elsif ($ThisLine =~ m/>>> Virus \'(.+)\' found/) {
       $VirusType_Sophos{$1}++;
       $MailScan_Virus_Sophos++;
@@ -133,12 +145,19 @@
 }

 if (keys %VirusType_ClamAv) {
-   print "\nVirus Report: (Total Seen = $MailScan_Virus_ClamAv)\n";
+   print "\nClamAV Virus Report: (Total Seen = $MailScan_Virus_ClamAv)\n";
    foreach $ThisOne (sort keys %VirusType_ClamAv) {
       print '    ' . $ThisOne . ': ' . $VirusType_ClamAv{$ThisOne} . " 
Times(s)\n";
    }
 }

+if (keys %VirusType_FProt) {
+   print "\nF-Prot Virus Report: (Total Seen = $MailScan_Virus_FProt)\n";
+   foreach $ThisOne (sort keys %VirusType_FProt) {
+      print '    ' . $ThisOne . ': ' . $VirusType_FProt{$ThisOne} . " 
Times(s)\n";
+   }
+}
+
 if (keys %VirusType_Sophos) {
    print "\nSophos Virus Report: (Total Seen = $MailScan_Virus_Sophos)\n";
    foreach $ThisOne (sort keys %VirusType_Sophos) {
--- services/sendmail.SHIPPED   2004-06-26 10:15:37.000000000 +0200
+++ services/sendmail   2004-10-08 23:22:41.000000000 +0200
@@ -437,6 +437,8 @@
       $ReturnReceipt++;
    } elsif ($ThisLine=~ /Remote protocol error/) {
       $RemoteProtocolError++;
+   } elsif ($ThisLine=~ /ruleset=check_XS4ALL/) {
+      $XS4ALL++;
    } elsif (
       (($Host,$Attack) = ($ThisLine =~ /POSSIBLE ATTACK from ([^ ]+): (.*)/)) 
or
       (($Host,$Attack) = ($ThisLine =~ /([^ ]+ \[[^ ]+\]): possible SMTP 
attack: (.*)$/))
@@ -522,6 +524,10 @@
    print "\n\n$ReturnReceipt Return Receipt's";
 }

+if($XS4ALL > 0) {
+   print "\n\n$XS4ALL messages discarded from XS4ALL";
+}
+
 if ($CantCreateOutput > 0) {
    print "\n\nCan't create output $CantCreateOutput Time(s)";
 }

-- 
        I hate duplicates. Just reply to the relevant mailinglist.
        hvdkooij@xxxxxxxxxxxxxxx                http://hvdkooij.xs4all.nl/
                Don't meddle in the affairs of magicians,
                for they are subtle and quick to anger.


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
linux.arklinux....    user-groups.lin...    kde.usability/2...    ietf.ipp/2002-0...    mail.spam.spamc...    os.netbsd.devel...    audio.cd-record...    text.unicode.de...    php.documentati...    games.fps.halfl...    window-managers...    suse.oracle.gen...    bug-tracking.gn...    video.dvdrip.us...    xfree86.cvs/200...    java.netbeans.m...    network.argus/2...    culture.sf.kill...    debian.ports.al...    freebsd.questio...    qplus.devel/200...    handhelds.palm....   
Home | blog view | USPTO Patent Archive | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe