OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
Victor.Duchovni_at_morganstanley.com
Date: Tue Aug 06 2002 - 11:06:33 CDT

  • Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

    On 6 Aug 2002, Steve Przepiora wrote:

    > Hello,
    > I need to write a script to parse the postfix logs, and was wondering
    > how unique the hash is in the logs:
    >

    The queue id is unique for 1 second! It is hex(tv_usec, inode) If an inode
    is reused in more than 1 microsecond (practically certain at current disk
    and IPC latencies) and less than 1 second the microsecond portion of the
    queue id keeps the id distinct from previous uses during the same second.

    Every million reuses of the same inode will on average generate a queue id
    condition (if the microsecond clock generates a uniform distribution of 1
    million values).

    I have seen queue id reuse within a single day a server handling 200000
    messages a day. This is rare.

    The log line:

            postfix/smtpd[pid]: queue_id: client=...
    OR
            postfix/pickup[pid]: queue_id: uid=..., from=<...>

    corresponds to the first use of a queue id. Any prior use of the queue id
    is from a previous message. The queue id corresponds to the same message
    until another log line as above indicates a new message with that queue
    id.

    -- 
    	Viktor.
    

    - To unsubscribe, send mail to majordomopostfix.org with content (not subject): unsubscribe postfix-users