MailScanner and syslog

Michael Janssen Janssen at RZ.UNI-FRANKFURT.DE
Wed Mar 27 12:49:09 GMT 2002


Hello,

i was interesting following this thread, cause we've got the same Problem
with RedHat 7.1 (no syslog no matter about -r option)

now i've learn some perl and syslog-stuff and add one line of code into
logger.pl:

sub Start {
  Sys::Syslog::setlogsock('unix'); ### mj 27.Mar: enables syslog
  Sys::Syslog::openlog(@_, 'pid, nowait', 'mail');
}

restarting MailScanner and there are nice syslog-messages! But be
carefull, i'm quite not experienced in perl.

regards
Michael Janssen, University of Frankfurt, Germany


On Wed, 27 Mar 2002, Quentin Campbell wrote:

> Julian
>
> That does not appear to fix things and I do not see why it should! The
> -r option allows syslogd to receive messages from a network socket. I
> thought the MailScanner messages are being received via a Unix socket?
> That is, if I am logging sendmail messages without the "-r" option then
> I should be logging MailScanner messages as well?
>
> I added the "-r" option to /etc/sysconfig/syslog and stopped/started
> syslogd so that it would reread its config file. I still do not see
> MailScanner messages in the file to which mail.* messages are being
> logged.
>
> A perplexed
>
> Quentin
> ---
> PHONE: +44 191 222 8209    Computing Service, University of Newcastle
> FAX:   +44 191 222 8765    Newcastle upon Tyne, United Kingdom, NE1 7RU.
> ------------------------------------------------------------------------
> "Any opinion expressed above is mine. The University can get its own."
>
>
>
> > -----Original Message-----
> > From: Julian Field [mailto:jkf at ecs.soton.ac.uk]
> > Sent: 26 March 2002 17:13
> > To: MAILSCANNER at JISCMAIL.AC.UK
> > Subject: Re: MailScanner and syslog
> >
> >
> > On Tue, 26 Mar 2002, Quentin Campbell wrote:
> > > Have recently installed MailScanner 3.12-5 on a new system
> > and notice
> > > that I no longer see "mailscanner" messages (eg. Scanning 2
> > messages,
> > > ...) in the sendmail logs. This installation is a Linux
> > (RedHat 7.2)
> > > system.
> > >
> > > Is this a change in MailScanner since 3.10-3? I cannot see why the
> > > syslog.conf file on Linux may be losing the "mailscanner"
> > messages as
> > > sendmail records are being logged as I require.
> >
> > The most likely cause is the lack of the "-r" flag in the
> > syslogd command-line. Check item 1 in the Installation FAQ
> > for more info.
> > --
> > Jules
> > jkf at ecs.soton.ac.uk
> >
>



More information about the MailScanner mailing list