OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
Re: QUEUE/TRANSACTION ID REUSE

From: Sahil Tandon (sahiltandon.net)
Date: Sat Jun 27 2009 - 18:56:57 CDT


kj wrote:

> Wietse Venema wrote:
>> Once a message is deleted from the queue, its queue ID can be reused
>> at any point in time.
>>
>> Wietse
>
> How is the queue ID determined? Completely randomly, or does Postfix
> try to avoid re-using an queue ID too quickly?

The queue ID determination is not random; if you are feeling curious,
peek inside src/global/mail_queue.c. As mentioned in the comments
therein, the only guarantee is that no two queue entries will
simultaneously have the same queue ID.

--
Sahil Tandon <sahiltandon.net>