sir, I m not confused Why i show this .Because my smtpd log using tcpserver showing only this line.the log which is very similar to that one.Earlier i have used logfilter also but it's giving mail subject & contents also.
2004-07-07 15:37:21.271830500 tcpserver: ok 2936 sumail02.iqara.net:203.187.192. 20:25 71-239-187-203.cable-client.iqara.net:203.187.239.71::1350 2004-07-07 15:37:22.115251500 tcpserver: end 2936 status 0 2004-07-07 15:37:22.115302500 tcpserver: status: 1/200 2004-07-07 15:37:22.780663500 tcpserver: status: 2/200 2004-07-07 15:37:22.783011500 tcpserver: pid 2942 from 203.187.239.71 2004-07-07 15:37:22.790539500 tcpserver: ok 2942 sumail02.iqara.net:203.187.192. 20:25 71-239-187-203.cable-client.iqara.net:203.187.239.71::1364 2004-07-07 15:37:23.590993500 tcpserver: end 2942 status 0 Harindra. ----- Original Message ----- From: "Fabio Gomes" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, July 07, 2004 8:44 PM Subject: Re: smtpd log > Harindra Patel wrote: > > sir, > > But My smtpd log format is like only i have configured same in tcp.smtp > > file. > > when connection happened i want to see ip address of that connection also. > > > > @4000000040ec0f082ee78ba4 info msg 186325: bytes 11700 from [EMAIL PROTECTED] > > qp 20781 uid 102 > > @4000000040ec0f08360c5f54 starting delivery 328601: msg 186325 to local > > [EMAIL PROTECTED] > > @4000000040ec0f08360c9dd4 status: local 1/100 remote 1/50 > > @4000000040ec0f090468d66c delivery 328601: success: did_1+0+0/ > > @4000000040ec0f0905667434 status: local 0/100 remote 1/50 > > @4000000040ec0f0905669f2c end msg 186325 > > @4000000040ec0f091d810444 new msg 186325 > > > > How do i achieve this. > > > > Harindra. > > ----- Original Message ----- > > From: "Fabio Gomes" <[EMAIL PROTECTED]> > > To: <[EMAIL PROTECTED]> > > Sent: Wednesday, July 07, 2004 7:50 PM > > Subject: Re: smtpd log > > > > > > > >>Harindra Patel wrote: > >> > >>>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, > >>-- > >> > > > > > > > > > > > > > The log you are showing me is the qmail-send log, not the qmail-smtpd log. > You are pretty confused. > Check your /service/qmail-smtpd/log/run and see where are you logging > qmail-smtpd. > > Regards, > -- > Fabio Gomes >
