
phil at pricom
Mar 13, 2013, 11:34 AM
Post #9 of 10
(313 views)
Permalink
|
Maurice, I know it is bad form to reply to my own post but see below: On 2013-03-14 03:26, Philip Rhoades wrote: > Maurice, > > > On 2013-03-14 03:05, Maurice Lucas - TAOS-IT wrote: >> That isn't possible. >> What if e.g. >> Message 1 takes 5 minutes to complete >> Message 2 till 1000 take 1 second each > > > Doesn't that just mean that I would get something like: > > tcpserver: status: 0/30 > ----------------------------------------------------------------------------------------- > tcpserver: status: 1/30 > ----------------------------------------------------------------------------------------- > tcpserver: status: 1/30 > tcpserver: pid 23661 from 65.99.230.42 > . > . > . > > ? > > - that would still be helpful as your example seems like the > exception - I have watched this log a LOT and have never seen > something like that (it is not a particularly heavily loaded mail > server). Now that I have installed Charles' awk script, it is easier to see the occasional problem you talked about (it is happening with about 5% of the mails I would guess). Anyway, the delimiter script is still useful and now I can also see a bit better what tcpserver is doing! Thanks, Phil. >> met vriendelijke groet, >> Maurice Lucas >> TAOS-IT >> ……………………………………………………………….... >> Hoflandendreef 209 >> 2614 MS Delft >> www.taos-it.nl >> KvK Haaglanden nr. 27254410 >> -----Original Message----- >> From: Philip Rhoades [mailto:phil [at] pricom] >> Sent: woensdag 13 maart 2013 16:53 >> To: Thibault Richard >> Cc: Maurice Lucas - TAOS-IT; qmail [at] list >> Subject: RE: tcpserver log delimiter >> People, >> Those scripts are not any use. I have in >> /var/qmail/supervise/qmail-smtpd/run : >> exec /usr/local/bin/softlimit -m 64000000 \ >> /usr/local/bin/tcpserver -v -R -H -l "$LOCAL" \ >> -x /etc/tcp.smtp.cdb -c "$MAXSMTPD" \ >> -u "$QMAILDUID" -g "$NOFILESGID" 0 smtp \ >> /usr/local/bin/greylite \ >> /var/qmail/bin/qmail-smtpd 2> /var/log/greylite.log >> which gives output like: >> tcpserver: status: 0/30 >> tcpserver: status: 1/30 >> tcpserver: pid 23661 from 65.99.230.42 >> tcpserver: ok 23661 prix.pricom.com.au:10.1.1.10:25 >> :65.99.230.42::53651 >> greylite: argv[1]: /var/qmail/bin/qmail-smtpd: argv+1: >> usr/local/bin/greylite >> greylite: Address '65.99.230.42' is recognized as a verified server, >> updating timestamp... >> tcpserver: status: 2/30 >> tcpserver: pid 23722 from 217.196.149.56 >> tcpserver: ok 23722 prix.pricom.com.au:10.1.1.10:25 >> :217.196.149.56::57492 >> greylite: argv[1]: /var/qmail/bin/qmail-smtpd: argv+1: >> usr/local/bin/greylite >> greylite: Address '217.196.149.56' is recognized as a verified >> server, updating timestamp... >> tcpserver: end 23722 status 0 >> tcpserver: status: 1/30 >> - I want a line: >> "-----------------------------------------------------------------------------------------" >> before the: >> tcpserver: status: 1/30 >> lines. >> Thanks, >> Phil. >> On 2013-03-14 02:26, Thibault Richard wrote: >>> And a sample on how to use it on >>> http://qmailrocks.thibs.com/tracking.php >>> -----Original Message----- >>> From: Maurice Lucas - TAOS-IT [mailto:mslucas [at] TAOS-IT] >>> Sent: mercredi 13 mars 2013 16:22 >>> To: phil [at] pricom; qmail [at] list >>> Subject: RE: tcpserver log delimiter >>> I haven't used it but on the bottom of this site are 2 scripts >>> mtrack >>> and strack which could be of use for you >>> http://qmail.jms1.net/logfiles.shtml >>> met vriendelijke groet, >>> Maurice Lucas >>> TAOS-IT >>> ……………………………………………………………….... >>> Hoflandendreef 209 >>> 2614 MS Delft >>> www.taos-it.nl >>> KvK Haaglanden nr. 27254410 >>> -----Original Message----- >>> From: Philip Rhoades [mailto:phil [at] pricom] >>> Sent: woensdag 13 maart 2013 16:16 >>> To: qmail [at] list >>> Subject: tcpserver log delimiter >>> People, >>> Is there a convenient way to put a delimiter on tcpserver logs? eg >>> it >>> would be nice to put: >>> "-----------------------------------------------------------------------------------------" >>> before the: >>> tcpserver: status: 1/30 >>> line when every new mail is starting to be processed - this would >>> aid >>> readability while tailing a log that is moving reasonably quickly. >>> I couldn't find anything useful from Googling and reading about >>> tcpserver (the -v switch is no use). >>> Thanks, >>> Phil. >>> -- >>> Philip Rhoades >>> GPO Box 3411 >>> Sydney NSW 2001 >>> Australia >>> E-mail: phil [at] pricom >> -- >> Philip Rhoades >> GPO Box 3411 >> Sydney NSW 2001 >> Australia >> E-mail: phil [at] pricom -- Philip Rhoades GPO Box 3411 Sydney NSW 2001 Australia E-mail: phil [at] pricom
|