[courier-users] Uniform logfile format; Generic logging interface

2004-08-12 Thread Julian Mehnle
Terrel Shumway [EMAIL PROTECTED] wrote:
12345678901234567890123456789012345678901234567890123456789012345678901234
 does anyone object to coming up with a standard way to format log
 messages?

I think this is a good idea.  I also think that Courier could use a more
generic, modular logging interface, so we can log to a PostgreSQL database
or other non-file data stores.

BTW, Sam, congratulations for your web site redesign, I like it! :-)



---
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


Re: [courier-users] Uniform logfile format; Generic logging interface

2004-08-12 Thread Michael Einem
does anyone object to coming up with a standard way to format log
messages?
Yes, one could use awstats then to evaluate them.
But, speaking of this, a question comes to mind that I was thinking 
about for months now but had more urgent problems. On my system courier 
(out of the .deb box) logs the same data into /var/log/syslog, 
mail.log, mail.info which (together with maildrop, spamassasssin ans 
fetchmail) renders hundreds of megabites of (triplicate) log data.
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?
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.
thanks,
Maichel.


---
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


Re: [courier-users] Uniform logfile format; Generic logging interface

2004-08-12 Thread Tim Hunter
Michael Einem wrote:
 does anyone object to coming up with a standard way to format log
 messages?
 
 Yes, one could use awstats then to evaluate them.
 
 But, speaking of this, a question comes to mind that I was thinking
 about for months now but had more urgent problems. On my system
 courier (out of the .deb box) logs the same data into /var/log/syslog,
 mail.log, mail.info which (together with maildrop, spamassasssin ans
 fetchmail) renders hundreds of megabites of (triplicate) log data.
 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?

from my syslogd.conf
*.*;auth,authpriv.none;\
mail.none;cron.none -/var/log/syslog
mail.*  -/var/log/mail.log

 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 syslog.conf
or man syslogd or something similar

 thanks,
 Maichel.
 
 
 
 ---
 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 


---
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


RE: [courier-users] Uniform logfile format; Generic logging interface

2004-08-12 Thread John Saunders
 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