Bernd Wurst wrote:
Am Montag, 19. März 2007 07:43 schrieb Andrey Ananin:
I'm using the courier-0.54.0 on FreeBSD. Everything works fine but I
want to put logs into the separate files.
I don't know enough about freebsd, but on linux, my courier server
logs to
syslog (syslog-ng in my case) and there, I can define some rules to
get the
logs separated by application.
This part is from my syslog-ng.conf file:
filter f_courierd { program("courierd"); };
filter f_courieresmtpd { program("courieresmtpd"); };
filter f_courieresmtp { program("courieresmtp"); };
filter f_courierlocal { program("courierlocal"); };
filter f_courierfilter { program("courierfilter"); };
filter f_authdaemond { program("authdaemond"); };
Thanks for the advice but I don't use the syslog-ng. However maybe I
should. Is there an opportunity to set the syslog to work in the such way?
Could it be that your syslog app just loggs everything to "maillog"
that has
facility set to "mail"?
As I understand courierlogger is the wrapper of the courier programs and
it send all stdout or stderr messages from this programs to the syslog.
There is a way to run the courierlogger with the additional parameters
for courierlogger by setting the LOGGEROPTS option in the configuration
file for imapd, pop3d, sqwebmail. And I can add
LOGGEROPTS="-facility=local0" or something like that and it works. But
in the esmtpd file I can't find the similar option. That's the point.
cu, Bernd
!DSPAM:45fe9544481881590211971!