Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Postfix logging to syslog

41 views
Skip to first unread message

N. Yaakov Ziskind

unread,
Apr 27, 2010, 10:34:31 PM4/27/10
to
I'd like to stop postfix from scribbling to syslog.

syslog stuff from main.cf ('postconf -n' data upon request):

syslog_facility = mail
syslog_name = postfix

# grep -v "#" /etc/syslog.conf

auth,authpriv.* /var/log/auth.log
*.*;auth,authpriv.none;mail.none -/var/log/syslog
daemon.* -/var/log/daemon.log
kern.* -/var/log/kern.log
lpr.* -/var/log/lpr.log
mail.* -/var/log/mail.log
user.* -/var/log/user.log

mail.info -/var/log/mail.info
mail.warning -/var/log/mail.warn
mail.err /var/log/mail.err

news.crit /var/log/news/news.crit
news.err /var/log/news/news.err
news.notice -/var/log/news/news.notice

*.=debug;\
auth,authpriv.none;\
news.none;mail.none -/var/log/debug

*.=info;*.=notice;*.=warning;\
auth,authpriv.none;\
cron,daemon.none;\
mail.none;news.none -/var/log/messages

*.emerg *

daemon.*;mail.*;\
news.err;\
*.=debug;*.=info;\
*.=notice;*.=warning |/dev/xconsole

I'm getting full Postfix output to syslog, mail.log and mail.info.
What am I missing?

Sahil Tandon

unread,
Apr 27, 2010, 11:23:22 PM4/27/10
to
On Tue, 27 Apr 2010, N. Yaakov Ziskind wrote:

> I'd like to stop postfix from scribbling to syslog.
>
> syslog stuff from main.cf ('postconf -n' data upon request):
>
> syslog_facility = mail
> syslog_name = postfix
>
> # grep -v "#" /etc/syslog.conf

[ .. ]

> I'm getting full Postfix output to syslog, mail.log and mail.info.
> What am I missing?

Assuming you did not make any mistakes while editing syslog.conf, did
you restart syslogd(8) after making the changes? Postfix simply logs to
the mail facility; how syslogd(8) handles this is not a Postfix issue.

--
Sahil Tandon <sa...@FreeBSD.org>

N. Yaakov Ziskind

unread,
Apr 27, 2010, 11:39:24 PM4/27/10
to

yes, with /etc/init.d/sysklogd restart; I also HUPed the only process,
'rsyslogd -c4', to come out of 'ps ax|grep log'.


also, at some point, I had made other changes which caused postfix to
also write to messages; then I backed them out, and those messages
stopped.

--
_________________________________________
Nachman Yaakov Ziskind, FSPA, LLM aw...@ziskind.us
Attorney and Counselor-at-Law http://ziskind.us
Economic Group Pension Services http://egps.com
Actuaries and Employee Benefit Consultants

Sahil Tandon

unread,
Apr 28, 2010, 12:02:34 AM4/28/10
to
On Tue, 27 Apr 2010, N. Yaakov Ziskind wrote:

> Sahil Tandon wrote (on Tue, Apr 27, 2010 at 11:23:22PM -0400):
> > Assuming you did not make any mistakes while editing syslog.conf, did
> > you restart syslogd(8) after making the changes? Postfix simply logs to
> > the mail facility; how syslogd(8) handles this is not a Postfix issue.
>

> yes, with /etc/init.d/sysklogd restart; I also HUPed the only process,
> 'rsyslogd -c4', to come out of 'ps ax|grep log'.

You are aware that rsyslogd != sys(k)logd, right?

--
Sahil Tandon <sa...@FreeBSD.org>

N. Yaakov Ziskind

unread,
Apr 28, 2010, 12:24:12 AM4/28/10
to

Not as aware as I should be, I suppose, but yes - which is why I
restarted both. I basically looked for everything with log in it in
/etc/init.d and ps ax, and restarted them, including /etc/init.d/klogd.

N. Yaakov Ziskind

unread,
Apr 28, 2010, 12:30:58 AM4/28/10
to
Sahil Tandon wrote (on Wed, Apr 28, 2010 at 12:02:34AM -0400):
> On Tue, 27 Apr 2010, N. Yaakov Ziskind wrote:
>
> > Sahil Tandon wrote (on Tue, Apr 27, 2010 at 11:23:22PM -0400):
> > > Assuming you did not make any mistakes while editing syslog.conf, did
> > > you restart syslogd(8) after making the changes? Postfix simply logs to
> > > the mail facility; how syslogd(8) handles this is not a Postfix issue.
> >
> > yes, with /etc/init.d/sysklogd restart; I also HUPed the only process,
> > 'rsyslogd -c4', to come out of 'ps ax|grep log'.
>
> You are aware that rsyslogd != sys(k)logd, right?
>
> --
> Sahil Tandon <sa...@FreeBSD.org>

In the interest of clarity, system is running Ubuntu Lucid, and there is
no syslogd on the system (except /etc/default/syslogd), only sysklogd,
which seems to be its replacement.

Sahil Tandon

unread,
Apr 28, 2010, 12:47:08 AM4/28/10
to
On Wed, 28 Apr 2010, N. Yaakov Ziskind wrote:

> Sahil Tandon wrote (on Wed, Apr 28, 2010 at 12:02:34AM -0400):
> > On Tue, 27 Apr 2010, N. Yaakov Ziskind wrote:
> >
> > > Sahil Tandon wrote (on Tue, Apr 27, 2010 at 11:23:22PM -0400):
> > > > Assuming you did not make any mistakes while editing syslog.conf, did
> > > > you restart syslogd(8) after making the changes? Postfix simply logs to
> > > > the mail facility; how syslogd(8) handles this is not a Postfix issue.
> > >
> > > yes, with /etc/init.d/sysklogd restart; I also HUPed the only process,
> > > 'rsyslogd -c4', to come out of 'ps ax|grep log'.
> >
> > You are aware that rsyslogd != sys(k)logd, right?
>

> In the interest of clarity, system is running Ubuntu Lucid, and there is
> no syslogd on the system (except /etc/default/syslogd), only sysklogd,
> which seems to be its replacement.

And yet your ps(1) output indicates that only rsyslogd is running? I'm
not an Ubuntu user, so perhaps someone else can chime with a hint. Since
this does not appear to be a Postfix issue, you might also wish to
pursue this on a more appropriate mailing list.

--
Sahil Tandon <sa...@FreeBSD.org>

Kay

unread,
Apr 28, 2010, 6:29:02 AM4/28/10
to
On 28/04/10 03:34, N. Yaakov Ziskind wrote:
> I'd like to stop postfix from scribbling to syslog.
[snip]

> auth,authpriv.* /var/log/auth.log
> *.*;auth,authpriv.none;mail.none -/var/log/syslog

I have this:

*.*;auth,authpriv.none,cron.none,mail.none -/var/log/syslog

I don't know the significance of a comma versus a semi-colon, but this
works for me.

--kay

John Peach

unread,
Apr 28, 2010, 7:56:21 AM4/28/10
to

syslogd has been replaced by rsyslogd.

man rsyslogd

hint: /etc/rsyslogd.conf

>


--
John

John Peach

unread,
Apr 28, 2010, 8:02:27 AM4/28/10
to
On Wed, 28 Apr 2010 00:30:58 -0400
"N. Yaakov Ziskind" <aw...@ziskind.us> wrote:

> Sahil Tandon wrote (on Wed, Apr 28, 2010 at 12:02:34AM -0400):
> > On Tue, 27 Apr 2010, N. Yaakov Ziskind wrote:
> >
> > > Sahil Tandon wrote (on Tue, Apr 27, 2010 at 11:23:22PM -0400):
> > > > Assuming you did not make any mistakes while editing
> > > > syslog.conf, did you restart syslogd(8) after making the
> > > > changes? Postfix simply logs to the mail facility; how
> > > > syslogd(8) handles this is not a Postfix issue.
> > >
> > > yes, with /etc/init.d/sysklogd restart; I also HUPed the only
> > > process, 'rsyslogd -c4', to come out of 'ps ax|grep log'.

I suggest you ought to read the release notes for Lucid. System V / BSD
init scripts have been replaced by upstart. Scripts now live
in /etc/init and are controlled by initctl.

> >
> > You are aware that rsyslogd != sys(k)logd, right?
> >

> > --
> > Sahil Tandon <sa...@FreeBSD.org>


>
> In the interest of clarity, system is running Ubuntu Lucid, and there
> is no syslogd on the system (except /etc/default/syslogd), only
> sysklogd, which seems to be its replacement.
>


--
John

0 new messages