3 messages in net.sourceforge.lists.courier-usersRe: [courier-users] How to write logs...
FromSent OnAttachments
Andrey AnaninMar 18, 2007 11:43 pm 
Bernd WurstMar 19, 2007 4:59 am 
Andrey AnaninMar 19, 2007 11:17 pm 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:Re: [courier-users] How to write logs for couriersmtp into another file?Actions...
From:Andrey Ananin (ana@onego.ru)
Date:Mar 19, 2007 11:17:53 pm
List:net.sourceforge.lists.courier-users

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!