Sendmail WebStats (sort of a mod)
Sander Jonkers
felker at GMX.NET
Sun Jan 27 11:28:58 GMT 2002
> you running Syslogd with -r?
Yes, I am now, and the mailscanner logging is there, and stats.pl reports
the number of detected viruses. Nice.
However, stats.pl also always reports that there is 1 message in the inqueue
and 1 in the outqueue, which is not correct: /var/spool/mque* is empty
So queston: does stats.pl look at these directories, or does it 'calculate'
the messages in the queue based on the mail logging?
Sander
/var/spool/mqueue:
total 0
/var/spool/mqueue.in:
total 0
"Incoming Queue
Contains Email that hasnt been scanned for viruses and as spam. 1 "
> Also syslogd 1.3-3 will NOT work with mailscanner. you must use version
> 1.4-4 if your using slackware or redhat. to get the version do syslogd -v
> hope this helps
>
> ----- Original Message -----
> From: "Sander Jonkers" <felker at GMX.NET>
> To: <MAILSCANNER at JISCMAIL.AC.UK>
> Sent: Friday, January 25, 2002 6:25 PM
> Subject: Re: Sendmail WebStats (sort of a mod)
>
>
> > OK, done that, page is generated. Apparantly the script searches for
> > 'mailscan' in the files in the directory /var/log/mail/. Despite my
> eicar
> detected
> > mails, mailscanner does not log to my /var/log/mail/*. I first have to
> take of
> > that.
> >
> >
> > [root at sanderold mail]# ls /var/log/mail/*
> > /var/log/mail/errors /var/log/mail/info
> /var/log/mail/warnings
> > /var/log/mail/errors.1.gz /var/log/mail/info.1.gz
> > /var/log/mail/warnings.1.gz
> > [root at sanderold mail]# grep -i mailscan /var/log/mail/*
> > [root at sanderold mail]#
> >
> >
> >
> > > Actually since this does some massive cpu usage for about 20 seconds,
> i
> > > found a better alternative :)
> > > like u mentioned below, just have cron do /cgi-bin/stats.pl >
> > > /http/stats.html or the equivelent every 5 or 10 minutes. That way
> there
> > is no huge
> > > load on server every time you refresh.
> > > Hell you could prolly do every 1 minute and be fine, something like
> > > */1 * * * * /path-toscript/stats.pl > /path-to-webpages/pagename.html
> > >
> > > ----- Original Message -----
> > > From: Sander Jonkers
> > > To: MAILSCANNER at JISCMAIL.AC.UK
> > > Sent: Friday, January 25, 2002 5:21 PM
> > > Subject: Re: Sendmail WebStats (sort of a mod)
> > >
> > >
> > > > oops, u may have to edit it to point to your maillogs, sorry, knew
> i
> > > > forgot something :)
> > >
> > > It must be something else: I also get a white page, but the maillog
> dir
> > > and
> > > other settings are OK. Proof: 'perl stats.pl > test.html' from the
> > > commandline generates a perfect overview in test.html.
> > >
> > > Isn't it a CGI-BIN/rights setting that must be set or done?
> > >
> > > Sander
> > >
> > >
> > > >
> > > > ----- Original Message -----
> > > > From: Steve Evans
> > > > To: MAILSCANNER at JISCMAIL.AC.UK
> > > > Sent: Friday, January 25, 2002 4:31 PM
> > > > Subject: Re: Sendmail WebStats (sort of a mod)
> > > >
> > > >
> > > > So all I have to do is put it in my cgi-bin? That's it? If so
> all
> > > I
> > > > get is a blank page.
> > > >
> > > > Steve
> > > > -----Original Message-----
> > > > From: Kelly Hamlin [mailto:fizz at BOMB.NET]
> > > > Sent: Thursday, January 24, 2002 5:07 PM
> > > > To: MAILSCANNER at JISCMAIL.AC.UK
> > > > Subject: Sendmail WebStats (sort of a mod)
> > > >
> > > >
> > > > For those interested
> > > > http://sairys.bomb.net/sendmail-webstats.tar.gz
> > > >
> > > > put in your cgi-bin dir and browse to it.
> > > >
> > > > produces stats to the web, must have apache (or some httpd
> daemon
> > > > running)
> > > >
> > > > To see a sample, http://sairys.bomb.net/sample.gif
> > > >
> > > >
> > >
> > > --
> > > Sent through GMX FreeMail - http://www.gmx.net
> > >
> > >
> > >
> >
> --------------------------------------------------------------------------
> ----
> > >
> > >
> > > oops, u may have to edit it to point to your maillogs, sorry, knew i
> > > forgot something :)
> > >
> > > ----- Original Message -----
> > > From: Steve Evans
> > > To: MAILSCANNER at JISCMAIL.AC.UK
> > > Sent: Friday, January 25, 2002 4:31 PM
> > > Subject: Re: Sendmail WebStats (sort of a mod)
> > >
> > >
> > > So all I have to do is put it in my cgi-bin? That's it? If so
> all
> I
> > > get is a blank page.
> > >
> > > Steve
> > > -----Original Message-----
> > > From: Kelly Hamlin [mailto:fizz at BOMB.NET]
> > > Sent: Thursday, January 24, 2002 5:07 PM
> > > To: MAILSCANNER at JISCMAIL.AC.UK
> > > Subject: Sendmail WebStats (sort of a mod)
> > >
> > >
> > > For those interested
> > > http://sairys.bomb.net/sendmail-webstats.tar.gz
> > >
> > > put in your cgi-bin dir and browse to it.
> > >
> > > produces stats to the web, must have apache (or some httpd
> daemon
> > > running)
> > >
> > > To see a sample, http://sairys.bomb.net/sample.gif
> > >
> > >
> >
> > --
> > Sent through GMX FreeMail - http://www.gmx.net
>
--
Sent through GMX FreeMail - http://www.gmx.net
More information about the MailScanner
mailing list