OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
RE: maximum time in queue - now SQL log parser

From: Adam Clark (adam.clarkngv.vic.gov.au)
Date: Thu Apr 05 2007 - 18:53:37 CDT


A few weird things

Heres an example of an email that doesn't have a qmgr log line

Mar 25 12:47:49 monet2 postfix/smtpd[31981]: connect from monet2.ngv.vic.gov.au[127.0.0.1]
Mar 25 12:47:49 monet2 postfix/smtpd[31981]: 51F2234008: client=monet2.ngv.vic.gov.au[127.0.0.1]
Mar 25 12:47:49 monet2 postfix/cleanup[31814]: 51F2234008: message-id=<E8045EC3A155BD409100E6062B338EE51278F2TITIAN.boh.ngv.local>
Mar 25 12:47:49 monet2 postfix/smtpd[31981]: disconnect from monet2.ngv.vic.gov.au[127.0.0.1]
Mar 25 12:47:54 monet2 postfix/smtp[32464]: 51F2234008: to=<someemail.addr>, relay=mailhost.ng-london.org.uk[193.60.236.65], delay=5, status=sent (250 MAILHOST.ng-london.org.uk: Message accepted for delivery)

why would this be?

Adam

-----Original Message-----
From: owner-postfix-userspostfix.org on behalf of Adam Clark
Sent: Thu 5/04/2007 2:15 PM
To: postfix-userspostfix.org
Subject: RE: maximum time in queue - now SQL log parser
 
Thanks Viktor,

> -----Original Message-----
> From: owner-postfix-userspostfix.org
> [mailto:owner-postfix-userspostfix.org] On Behalf Of Victor Duchovni
> Sent: Thursday, 5 April 2007 1:55 PM
> To: postfix-userspostfix.org
> Subject: Re: maximum time in queue - now SQL log parser
>
> On Thu, Apr 05, 2007 at 01:25:24PM +1000, Adam Clark wrote:
>
> > My question is regarding the order of log entries, do the
> cleanup and
> > qmgr processes ALWAYS get logged in between smtpd session
> connect and
> > disconnect?
>
> No.
>
> - If you are using a "stream" log socket on Linux, in
> addition to losing
> log entries under moderate load (process concurrency), log
> entries will
> be shuffled. Always use a "dgram" log socket.

I am using a separate syslog box collecting for our two mail servers,
I don't think its uses stream to do that.

Whats the postfix default?

> - Cleanup logs the message-id before processing ".", so generally this
> is is sent to syslogd before smtpd disconnects, and should be in the
> log first.

Whats the signifiance of "."?

> - The queue manager finds the message in the incoming queue some time
> after ".", and this could easily be after smtpd has
> disconnected from
> the client. Generally the queue manager responds quickly, and the
> remote client disconnects slowly, but this is a race, and
> the incoming
> queue occupancy may spike under load.

So I am safe to use the cleanup log lines as my "enter queue" time?
 
> --
> Viktor.
>
> Disclaimer: off-list followups get on-list replies or get ignored.
> Please do not ignore the "Reply-To" header.
>
> To unsubscribe from the postfix-users list, visit
> http://www.postfix.org/lists.html or click the link below:
> <mailto:majordomopostfix.org?body=unsubscribe%20postfix-users>
>
> If my response solves your problem, the best way to thank me
> is to not send an "it worked, thanks" follow-up. If you must
> respond, please put "It worked, thanks" in the "Subject" so I
> can delete these quickly.
>

Adam Clark
Network Administrator

National Gallery of Victoria
180 St Kilda Road Melbourne Vic 3004 Australia
Telephone: +61 3 8620 2369
Fax: +61 3 8620 2565
www.ngv.vic.gov.au

Keep informed of the latest NGV exhibitions, special events and programs at The Ian Potter Centre: NGV Australia and NGV International by subscribing to NGVRT, the NGV's free e-newsletter.

DISCLAIMER: This email and any files transmitted with it are confidential and intended solely for postfix-userspostfix.org. If you are not the named addressee you should not disseminate, copy or alter this email. WARNING: Although National Gallery of Victoria has taken reasonable precautions to ensure no viruses are present in this email, the organisation cannot accept responsibility for any loss or damage arising from the use of this email or attachment.