SUMMARY: syslog problem

From: Colin Haffenden <Chaffend_at_msxi-euro.com>
Date: Thu Jan 08 2004 - 06:09:04 EST
Firstly thanks to

Casper Dik
Lars Hecking
Ronny Martin
jordivi
Joohyun Cha
Julian Grunnell
Jon Andrews
Parissis Pavlos

The problem was answered first by Casper Dik, here is what he said....


This line forwardds *all* messages to /var/adm/messages

>*.debug                         /var/adm/messages


You may want something like:

*.debug;mail.none		/var/adm/messages

This sends all messages except the mail messages.

Thanks for all the speedy responses,
Colin.


Original message....

Hi All,

I am a running a postfix server and have setup the syslog.conf file so
that it logs it's messages to separate files and not /var/adm/messages.

The problem is I am still getting mail.info messages in the
/var/adm/messages file?

Here is an example of a message logged....

# tail -1 /var/adm/messages
Jan  8 10:21:30 mailout mailout/smtp[29892]: [ID 197553 mail.info]
C8C1012411: to=<someone@somewhere.com>,
relay=mailhost.somewhere.com[x.x.x.x], delay=346, status=sent (250
Message received: 7772C73A780.AAA3F00)

Here is my syslog.conf....
===========START==========

#
# Copyright (c) 2000-2002 by Sun Microsystems, Inc.
# All rights reserved.
#
#ident  "@(#)syslog.conf        2.3     02/02/21        SMI"
#
# This "syslog.conf" file was installed by JASS.  This
# file should be used to log information both locally as
# well as to a centralized log server (or servers) so that
# proactive log analysis can be done.

*.err;kern.notice;auth.notice   /dev/console
*.alert                         root
*.emerg                         *

*.debug                         /var/adm/messages
# *.debug                       @loghost1
# *.debug                       @loghost2

# added by MSX for standards
*.err;kern.debug;daemon.notice;mail.crit;local0.crit   
/var/adm/messages

mail.debug;local0.debug         ifdef (`LOGHOST', /var/log/syslog,
@loghost)

mail.info                       /var/log/mail.log
local0.info                     /var/log/mailin.log

===========END===============

As you can see the mail.info and local0.info are set to log messages in
/var/log/mail.log and /var/log/mailin.log.

Does anybody know why this is logging these messages into
/var/adm/messages?

I am running Solaris 8 on a Sparc 20 with Postfix version 2.0.9

Thanks & Regards,
Colin.
This Message has been Checked at MSXI for all known Viruses.
You open this at your own risk. Please make sure all replies are 
also virus free.
Also we do not accept or send Attachments of the type .exe, .vbs,
scr, or .bat due to the virus risk they can contain. These types of
attachments will be stripped from the message.

MSXI
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers
Received on Thu Jan 8 06:08:57 2004

This archive was generated by hypermail 2.1.8 : Thu Mar 03 2016 - 06:43:26 EST