It's pretty scary to try to get something useful 
from courier's logs because there is no standard 
format for log messages.

First: does anyone have a greppy perl script or such 
that will make sense of the log files?


Second: does anyone object to coming up with a standard
way to format log messages?

Here are some ideas:

timestamp host level program class [structured] freeform

timestamp: maybe some iso format like 2004-08-12T23:54:52, 
  but I really don't care as long as it's standard.
  It would be nice to record the year.
  

level = (debug|info|status|warning|error|critical...)

program = (courierd,esmtpd,courier-fax,courier-imap...)

class = one of a standard set of message types

structured = (key=value,...) where keys are [-a-zA-Z0-9_]+
  and values have no whitespace or commas

freeform = anything goes



>From looking at my log files, and the courier source 
(very quickly), I came up with these classes:

status         (message status: stuff that would go in 
                access_log instead of error_log if we 
                were talking about a web server)
status-failure
status-success
status-success-delivered
status-deferred
status-rejected
status-rejected-bofh
status-rejected-bofh-sender
status-rejected-bofh-spamtrap 
status-rejected-bofh-network  (rbl, relay, bad mx...)
status-rejected-bofh-content  (e.g. spamassasin) 
status-cancelled 
status-smtp
status-smtp-250
status-connect
status-connect-closed

error
error-system  (errors from system and standard libary calls)
error-config  (misconfigurations)
error-communication (unexpected input or output from another courier program)
error-protocol  (protocol/rfc violations)
error-network   (unexpected network conditions)
error-network-dns      
error-network-connect  (refused, timed-out, closed, ...)
error-internal  (sumthin' ain't right)
error-denied
error-denied-baduser
error-denied-badpassword
error-external  (error output from third-party programs)
error-smtp
error-smtp-517 ...

trace  (program logic tracing)


Feedback please.

I am willing to go through the code and standardize 
the current log messages if no one objects. (It won't 
be all at once, but I'll get to it a little at a time.)

Dream BIG!
-- Terrel



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