Hello again,
Reconfigured/recompiled courier-imap with --with-syslog=LOCAL3 option.
It works now, I have the logs in /var/log/imapd.log.
But still it remains the problem of changing/specifing the log facility at
startup time, without recompiling the code. Any solutions?
And also, i'm planning to use both imap and pop3 servers. How can I specify
different logger facilities for each process, in order to have different log
files?
Thanks in advance,
Alex
-----Message d'origine-----
De : Alex Francu [mailto:afra...@pentalog.fr]
Envoyé : vendredi 29 octobre 2004 10:57
À : cour...@lists.sourceforge.net
Objet : Courier logger change facility
Hello,
I've revently installed Courier-IMAP as imap/pop3 server.
The default for courierlogger facility is LOG_MAIL
I want to change the logger facility in order to direct the log messages to
other file than the default mail log ( /var/lib/maillog )
Can I do that at start time of courier-imap server ?
I can't seem to find any options concerning the logger in courier-imap
server configuration files
I've already tried modifing imapd.rc startup.script
/usr/lib/courier-imap/libexec/couriertcpd -address=$ADDRESS \
-stderrlogger='${exec_prefix}/sbin/courierlogger -fa
cility=LOG_LOCAL3' \
-stderrloggername=imapd
....
but it does not seem to work, because the logger called this way appears to
accept only one parameter : stderrloggername.
Any help would be appreciated.
Thanks in advance,
Alex