Hi Fabio, How do configure smtpd log in qmail with LOGLEVEL format?? I want to see log format which you paste below?? what should configure in qmail.I am using supervise for qmail log.
Harindra.
----- Original Message ----- From: "Fabio Gomes" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, July 05, 2004 11:58 PM
Subject: Re: smtpd log
Claudio Jeker wrote:
On Mon, Jul 05, 2004 at 02:30:48PM -0300, Fabio Gomes wrote:
Hi all,
Have anyone changed the patch to write the username in the authentication line in the qmail-smtpd log?
Have a look at the latest patch. Loglevel 2 is what you want.
Wasnt it supposed to work in 20040401 patch?
or does it start to work in the current version? :
>>NEWS for current stuff: >> >> qmail-smtpd log level cleanup. Add a additional level for accounting >> and remove some redundant messages.
I'm saying that because I already have LOGLEVEL=3 declared in my qmail-smtpd run script and neither LOGLEVEL=2 does that.
Above is the qmail-smtpd log with LOGLEVEL=3 using 20040401 patch:
2004-07-05 15:22:47.335463500 qmail-smtpd 29102: connection from XXX.XXX.XX.XXX (unknown) to mx1.sede.fazenda.sp.gov.br 2004-07-05 15:22:47.335520500 qmail-smtpd 29102: enabled options: starttls relayclient smtp-auth smtp550disconnect qmailqueue /var/qmail/bin/qmail-scanner-queue.pl 2004-07-05 15:22:47.348490500 qmail-smtpd 29102: remote ehlo: fazenda.sp.gov.br 2004-07-05 15:22:47.348544500 qmail-smtpd 29102: max msg size: 5242880 2004-07-05 15:22:47.350356500 qmail-smtpd 29102: smtp auth 2004-07-05 15:22:47.350402500 qmail-smtpd 29102: auth plain 2004-07-05 15:22:47.393069500 qmail-smtpd 29102: authentication success 2004-07-05 15:22:47.394428500 qmail-smtpd 29102: remote sent 'mail from': FROM:<[EMAIL PROTECTED]> 2004-07-05 15:22:47.394479500 qmail-smtpd 29102: mail from: [EMAIL PROTECTED] 2004-07-05 15:22:47.406014500 qmail-smtpd 29102: remote sent 'rcpt to': TO:<[EMAIL PROTECTED]> 2004-07-05 15:22:47.406023500 qmail-smtpd 29102: rcpt to: [EMAIL PROTECTED] 2004-07-05 15:22:47.406028500 qmail-smtpd 29102: smtp data 2004-07-05 15:22:47.406031500 qmail-smtpd 29102: go ahead 2004-07-05 15:22:47.615234500 qmail-smtpd 29102: data bytes received:
29017
2004-07-05 15:22:47.889243500 qmail-smtpd 29102: message queued: 1089051767 qp 29105 2004-07-05 15:22:47.895343500 qmail-smtpd 29102: quit, closing connection
Well, I think you are not using supervise for log, but multilog. I'm using multilog too.
You can configure LOGLEVEL either by declaring LOGLEVEL variable in your qmail-smtpd/run file, as I did:
#!/bin/sh
QMAILDUID=`/usr/xpg4/bin/id -u qmaild`
NOFILESGID=`/usr/xpg4/bin/id -g qmaild`
MAXSMTPD=`cat /var/qmail/control/concurrencyincoming`
LOGLEVEL=3
export LOGLEVEL
exec /usr/local/bin/softlimit -m 6000000 \
/usr/local/bin/tcpserver -v -R -h -l mailhost.domain.com \
-x /etc/tcp.smtp.cdb -c "$MAXSMTPD" \
-u "$QMAILDUID" -g "$NOFILESGID" 0 smtp \
/usr/local/bin/rblsmtpd -b \
-r relays.ordb.org \
-r sbl-xbl.spamhaus.org \
/var/qmail/bin/qmail-smtpd 2>&1
or by declaring this variable in the tcp.smtp file:
:allow,RETURNMXCHECK="",SANITYCHECK="",LOGLEVEL="3"
But if you were talking about the timestamp, that log was filtered by tai64nlocal. This tool converts precise TAI64N timestamps to a human-readable format. It comes with daemontools package.
# cat current | tai64nlocal
Hope I helped, -- ---------------------------------------------------------------------- F�bio Gomes <[EMAIL PROTECTED]> DTI Desenvolvimento <[EMAIL PROTECTED]> Telefone: 11-3243-3400 ramal 4447 Visite: http://sefaznet.sede.fazenda.sp.gov.br/email/ ----------------------------------------------------------------------
