[Postfixbuch-users] Courier / Postfix & Logging

Sebastian Deiszner usenet at deiszner.de
Di Aug 22 01:45:06 CEST 2006


----- Original Message ----- 
From: "Ralf Hildebrandt" <Ralf.Hildebrandt at charite.de>
To: <postfixbuch-users at listi.jpberlin.de>
Sent: Thursday, August 17, 2006 2:19 PM
Subject: Re: [Postfixbuch-users] Courier / Postfix & Logging

> Gar nicht. Courier hat die facility "mail.*" hardcoded.
> Meine Lösung:
>
> in /etc/syslog.conf:
> local4.*                        -/var/log/mail.log
> mail.*                          -/var/log/pop3d-imapd.log
>
> in Postfixs main.cf:
> syslog_facility = local4
>
> gut, ne?


Ja, der haken ist nur, er loggt jetzt doppelt.
Zusätzlich zu meinen mail.log und mail loggt er auch in syslog, d.h. die Datei ist pro Tag etwa 10 Mb groß :-(


[/etc/syslog]
local4.* -/var/log/mail
mail.* -/var/log/mail.log

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

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;*.=warn;\
auth,authpriv.none;\
cron,daemon.none;\
mail,news.none -/var/log/messages

*.emerg *

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




Mehr Informationen über die Mailingliste Postfixbuch-users