perl newbie question
Julian Field
jkf at ecs.soton.ac.uk
Mon Feb 11 10:07:33 GMT 2002
At 12:23 10/02/2002, you wrote:
>I got sendmail.logs.pl running but I could not get any graphs with MRTG
>(yet). I
>believe that sendmail.logs.pl needs to be run regularly in order to append
>to a
>file for MRTG to graph, right?
The sendmail.logs.pl script is run by MRTG every time it needs its stats.
You will find the script mentioned in the MRTG configuration on the web
site. It just gets called when MRTG tells it to run.
>Youn Gonzales wrote:
>
> > Resolved. My firewall was blocking the syslog entries. Also, if you are
> > relaying mail and force-routing it to another server (i.e. mailertable
> > entries) it is a good idea not to have the destination server set to
> > throttle connections or filter based on subject line, etc., as your mail
> > queues tend to fill up fairly quickly.
> >
> > FYI, I am running on Redhat 7.1 on a Compaq Proliant, quad P-Pro-200 with
> > 1.4G RAM. You can view my mrtg stats at http://mailscan.clas.net as well as
> > some other stats as I was playing with mrtg. I just changed the MX record
> > for a few of our domains, so the box isn't nearly under full load yet, but
> > so far it looks promising. Also, we are currently scanning only incoming
> > mail. I have to get another server up and running before we start scanning
> > incoming and outgoing mail.
> >
> > Youn Gonzales
> > System Administrator
> > Comptia A+, Network+, INET+,
> > Cisco CCNA/CCDA Certified Technician
> > Microsoft Certified Professional
> >
> > ----- Original Message -----
> > From: "Youn Gonzales" <ispmgr at clas.net>
> > To: <MAILSCANNER at JISCMAIL.AC.UK>
> > Sent: Saturday, February 09, 2002 12:49 PM
> > Subject: perl newbie question
> >
> > > I am running mailscanner on redhat 7.1 and everything appears to be
> > > functioning fine, but I have been unable to get the sendmail.logs.pl
> > script
> > > to work properly so that I can use mrtg to monitor the traffic. The total
> > > number of message is working properly, but the script always reports (0)
> > > spam and virus messages detected. Mailscanner is detecting messages that
> > > contain a virus and/or appear to be spam, as it is tagging the spam and
> > > cleaning the messages that contain a virus. As I am a perl newbie, I do
> > not
> > > understand how the script is parsing the logs and counting the virus and
> > > spam containing messages, but it would appear that everything happens
> > here:
> > >
> > > if (/mailscanner/) {
> > > $TotalViruses += $1 if /found (\d+) viruses in/i;
> > > $TotalSpam++ if /message [^\s]+ is spam/i;
> > > }
> > >
> > > Could someone please explain exactly how these variables are
> incremented -
> > > i.e. under what conditions these three if statements evaluate as true and
> > > how they work?
> > >
> > > Thanks!
> > >
> > > :-)
> > >
> > > Youn Gonzales
> > > System Administrator
> > > Comptia A+, Network+, INET+,
> > > Cisco CCNA/CCDA Certified Technician
> > > Microsoft Certified Professional
--
Julian Field Teaching Systems Manager
jkf at ecs.soton.ac.uk Dept. of Electronics & Computer Science
Tel. 023 8059 2817 University of Southampton
Southampton SO17 1BJ
More information about the MailScanner
mailing list