6 messages in net.sourceforge.lists.courier-usersRe: [courier-users] Courier-IMAP logs
FromSent OnAttachments
Rocco ScappaturaMar 14, 2005 1:48 am 
ArnoMar 14, 2005 2:06 am 
Arturo 'Buanzo' BusleimanMar 14, 2005 2:08 am 
moussMar 14, 2005 8:22 am 
ArnoMar 14, 2005 9:22 am 
ArnoMar 15, 2005 2:36 am 
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] Courier-IMAP logsActions...
From:Arno (ar@disconnect.de)
Date:Mar 15, 2005 2:36:53 am
List:net.sourceforge.lists.courier-users

Hi,

On Tuesday 15 March 2005 09:44, you wrote:

Can explain me better... What is RTMF? HowCourier-IMAP use courierlogger?

Well, first of all, I meant myself with RTFM (Read the Fine manual), because right on the first page of the manpage for courierlogger it reads:

facility=subsystem Use subsystem for classifying messages.

How can I set the facility type whose curierlogger must use?

I've looked into this a little deeper and this isn't as easy as it seemed at first. Because courierlogger is execl'd by couriertcpd with only one argument allowed, and this argument must not start with a dash (-), or else courierlogger assumes that it is started in standalone-mode and then complains about the missing -name-option. But since there's only one argument allowed that must not start with a dash, your're stuck.

I'ld even happy If I can separate mail logs from courier-IMAP logs? Then, If I could separate Corier IMAP logs per protocol, It would be the best? ;)

This can be done if you tell couriertcpd not to log to courierlogger, but to a logfile. For this you have to edit the startup-scripts of your daemons (courier-imapd, courier-pop3d and so on). Somewhere in the start-function it reads:

${exec_prefix}/sbin/couriertcpd -address=$ADDRESS \ -stderrlogger=/usr/sbin/courierlogger \ -stderrloggername=imapd \

You have to replace -stderrlogger and -stderrloggername with only one option:

-stderr=/path/to/logfile

For each daemon you can specify a separate logfile. That would give you what you want, BUT: this has one (major) drawback: There will be no timestamps in your logfiles since those are added by the syslogger...

If this is a problem, you're back to square one: Use an alternative syslog-daemon like metalog or syslog-ng.