MailScanner stops logging
Denis Beauchemin
Denis.Beauchemin at USHERBROOKE.CA
Mon Sep 9 14:30:35 IST 2002
Hi Julian,
There was just a small error:
/usr/local/MailScanner/check_mailscanner is really
/usr/local/MailScanner/bin/check_mailscanner.
I have tested it and it does the job. I have also modified the
Restart Every = 14400 # 4 hours
in mailscaner.conf to
Restart Every = 144000 # 40 hours
so MailScanner doesn't try to restart itself since cron is now doing the
job.
Thanks again.
Denis
On Fri, 2002-09-06 at 16:50, Julian Field wrote:
> Has anyone got any ideas on this? I can't reproduce it on my systems and so
> it's got be beat at the moment
> :-(
>
> Your suggestion of a "service mailscanner restart" should work, but is
> slight overkill. If you use the pid file
> (/usr/local/MailScanner/var/virus.pid by default if I remember rightly, but
> it's in the mailscanner.conf file) and kill that process number, then call
> "check_mailscanner" to restart it, that will do all that's necessary. You
> can occasionally hit problems starting sendmail if you do it immediately
> after killing it (hence the "sleep" in the init.d script).
>
> #!/bin/sh
> pid=`cat /usr/local/MailScanner/var/virus.pid`
> kill $pid
> sleep 5
> /usr/local/MailScanner/check_mailscanner >/dev/null 2>&1
>
> should do the job nicely, but check I got the paths right!
>
> At 20:56 06/09/2002, you wrote:
> >I just checked and my MailScanner stopped logging again, after it
> >recycled itself.
> >
> >Executing "service mailscanner restart" restarts logging.
> >
> >Should I stop the automatic MailScanner recycling or recycle it in the
> >cron using the "service mailscanner restart" command?
> >
> >Denis
> >On Fri, 2002-09-06 at 11:07, Denis Beauchemin wrote:
> > > Hello,
> > >
> > > I am an happy MailScanner user... but I have a problem with MailScanner
> > > (3.22-8) that stops logging to syslog. Restarting MailScanner (service
> > > mailscanner restart) makes it log again.
> > >
> > > I believe this occurs after an automatic restart (after 4 hours) as my
> > > log shows:
> > > Sep 5 15:12:07 smtp3 mailscanner[9375]: Scanning 1 messages, 5005 bytes
> > > Sep 5 15:12:07 smtp3 mailscanner[9375]: Scanned 1 messages, 5005 bytes
> > in 0 seconds
> > > Sep 5 15:15:08 smtp3 mailscanner[9375]: MailScanner E-Mail Virus
> > Scanner version 3.22 starting.
> > > Sep 5 15:15:08 smtp3 mailscanner[9375]: Configuring mailscanner for
> > sendmail...
> > > Sep 5 15:15:08 smtp3 mailscanner[9375]: Using locktype = flock
> > > Sep 5 19:15:09 smtp3 mailscanner[26370]: MailScanner E-Mail Virus
> > Scanner version 3.22 starting.
> > > Sep 5 19:15:09 smtp3 mailscanner[26370]: Configuring mailscanner for
> > sendmail...
> > >
> > > This is not (yet) a heavily used server (around 10 messages/hour) but
> > > there were no log entries until I restarted MailScanner this morning. I
> > > know it was working because it blocked a Yaha infected email and tagged
> > > some SPAM. But nothing in the logs...
> > >
> > > I am on Red Hat 7.3 with Perl v5.6.1.
> > >
> > > Any ideas of what might be happening?
> > >
> > > Thanks!
> > >
> > > Denis
> > > --
> > > Denis Beauchemin, analyste
> > > Université de Sherbrooke, S.T.I.
> > > T: 819.821.8000x2252 F: 819.821.8045
> > >
> >--
> >Denis Beauchemin, analyste
> >Université de Sherbrooke, S.T.I.
> >T: 819.821.8000x2252 F: 819.821.8045
>
> --
> 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
>
--
Denis Beauchemin, analyste
Université de Sherbrooke, S.T.I.
T: 819.821.8000x2252 F: 819.821.8045
More information about the MailScanner
mailing list