Sendmail WebStats (sort of a mod)

Sander Jonkers felker at GMX.NET
Fri Jan 25 23:25:55 GMT 2002


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


More information about the MailScanner mailing list