> My question:
> Is it possible to tell courier to log say popd data into 
> /var/log/pop3.log
> imap4 data respectively to /var/log/imap4.log
> smtp data to smtp.log
> etc...
> without putting everything together into 3 different files. Or is it 
> not intended to be that way and I am doing something wrong?

The FreeBSD syslogd has an extended syntax that allows this. The
original syslog.conf syntax is very limited. It appears that
Debian uses the syslogd out of inetutils, and this only implements
the basics, so you are out of luck. I don't know if there are
alternative syslog packages available. Maybe you should search the
package lists for one.

An example FreeBSD /etc/syslog.conf would be:

!imapd
mail.info               /var/log/imapd.log
!pop3d
mail.info               /var/log/pop3d.log
!courieresmtp,courieresmtpd,courierlocal
mail.info               /var/log/maillog
!-imapd,pop3d,courieresmtp,courieresmtpd,courierlocal
mail.info               /var/log/courier.log

This separates out pop3, imap, esmtp in/out and
local deliveries. Everything else ends up in the
courier.log file, which would mainly be errors and
general status messages. Now the maillog file will
only receive logs to do with actual mail delivery.

Other than that you could patch courier to use the
LOCAL facilities and give each courier program a
different facility. You could then put local1 into
one file, local2 into another, etc.

> Also I would be grateful for a hint of where to find docs on  U*X 
> logging so that I can understand how this works.

"man 5 syslog.conf" and "man 8 syslogd". Or failing that
"man -k syslog" and see what options are listed.


Warning:  Copyright ResMed.  Where the contents of this email and/or attachment 
includes materials prepared by ResMed, the use of those
materials is subject exclusively to the conditions of engagement between ResMed and 
the intended recipient.
 
This communication is confidential and may contain legally privileged information.
By the use of email over the Internet or other communication systems, ResMed is not 
waiving either confidentiality of, or legal
privilege in,the content of the email and of any attachments.
If the recipient of this message is not the intended addressee, please call ResMed 
immediately on  +61 2 9886 5000 Sydney, Australia.



-------------------------------------------------------
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
_______________________________________________
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users

Reply via email to