Jason A. Smith
jazbo at jazbo.dyndns.org
Sun Jul 18 21:05:49 EDT 2004
You are correct, bogofilter logs messages via the syslog daemon to the
mail facility, just like sendmail, imap and other mail related programs
do. In your /etc/syslog.conf file you probably have something like
# Log all the mail messages in one place.
This tells syslog to log any priority message registered to the the mail
facility into the file: /var/log/maillog
The format is:
See syslog.conf, openlog and syslog man pages for more info.
On Sun, 2004-07-18 at 20:34, David Relson wrote:
> On Sun, 18 Jul 2004 16:06:56 -0800
> Barsalou wrote:
> > I thought that -l logging function wasn't working, then I realized
> > that it gets logged in the maillog instead of messages.
> > I didn't see any reference to which log bogofilter is storing
> > things...aside from my happen to look at the maillog and seeing the
> > bogofilter entries....how would I have known that it was storing the
> > log messages there?
> > Can I change it to the messages log? Or some other log file?
> > Mike
> > --
> > Barsalou <barjunk at attglobal.net>
> Hi Mike,
> Bogofilter's logging is done with:
> openlog("bogofilter", LOG_PID, LOG_MAIL);
> I'll confess I don't know exactly how the output file, though
> /etc/syslog.conf is involved. On my Mandrake system, messages go to
> /var/log/messages and /var/log/syslog. I'd be very pleased to have the
> messages go to a bogofilter-only file.
> Possibly the next bit of /etc/syslog.conf controls the behavior:
> # Log anything (except mail) of level info or higher.
> # Don't log private authentication messages!
> *.info;mail.none;;news.none;authpriv.none -/var/log/messages
> I suggest reading up on syslog() and finding what's what. Maybe you'll
> then be able to tell us all how it all works!
> Sorry that I can't be of greater assistance.
> Bogofilter mailing list
> Bogofilter at bogofilter.org
More information about the Bogofilter