Chris Lewis wrote:
I'm running very high loads, and I'd like to keep my qpsmtpd logs
reasonably brief - leaving it only to have a one line record per email,
plus any CRITICAL or higher error messages.
qpsmtpd 0.40.
I have the following two lines in my config at the front:
logging/file loglevel LOGCRIT nosplit tsformat %Y%m%d-%H:%M:%S
/opt/NTM/spool/qpsmtpdlog.%Y%m%d
logterse loglevel LOGCRIT
The first line of which I understand to set the max logging level to
LOGCRIT, and the second (using the logterse plugin from Charles Butcher)
should emit one line per email. I'm getting the records from logterse,
but it looks very much like I'm getting logs from all levels.
Eg:
20071106-15:08:40 ertps004[15937]: to email address :
[<[EMAIL PROTECTED]>]
20071106-15:08:40 ertps004[15924]: from email address :
[<[EMAIL PROTECTED]>]
20071106-15:08:40 ertps004[15931]: from email address :
[<[EMAIL PROTECTED]>]
20071106-15:08:40 ertps004[15924]: to email address :
[<[EMAIL PROTECTED]>]
20071106-15:08:40 ertps004[15931]: to email address :
[<[EMAIL PROTECTED]>]
20071106-15:08:40 ertps004[15936]: `74.141.194.27
74-141-194-27.dhcp.insightbb.com
74-141-194-248.dhcp.insightbb.com <[EMAIL PROTECTED]>
<[EMAIL PROTECTED]> queued
<[EMAIL PROTECTED]>
Only the last log is from logterse. I'm not even sure where the "to
email address" and "from email address" logs are coming from. I know
I'm still seeing LOGINFO level messages.
And I can't find any documentation for what config/logging and
config/loglevel actually _do_. Eg: the significance of the number in
the last line of loglevel.
Diddling them seems to do nothing.
Oh, feh, those are hard coded loglevels in lib/Qpsmtpd/SMTP.pm.
Shouldn't those be LOGDEBUG, so that the plugins can make the choices
for these?
Yes, I noticed this immediately also as soon as I switched to logterse.
I'm probably going to send in a (simple) patch tonight as soon as I get
home.
Other than that, I'm very pleased with QPSMTPD/QMAIL/TMDA + my first
module I wrote last week to work with SPF and block forged From: lines
that were getting passed TMDA. :-)
Getting ready to put it on a much higher volume mail server running
Solaris hopefully RSN (Real Soon Now (TM)).
--
David Wayne Summers "Linux: Because reboots are for hardware upgrades!"
[EMAIL PROTECTED] PGP Key: http://summersoft.fay.ar.us/~david/pgp.txt
PGP Key fingerprint = 0B44 B118 85CC F4EC 7021 1ED4 1516 5B78 E320 2001