Viktor Dukhovni:
> That said, instead of a queue file record, this could be one
> of the "mode" bits of the file, in particular, we could set
> the queue file group execute bit to indicate expiration,
> this would be cheap for the queue-manager to re-check before
> deciding whether to defer the message, and could alternatively
> be used for expedited processing from the deferred queue.

There is prior art with using Postfix queue file permission bits
for signaling:

- The flush daemon sets the queue file group read permission bit,
  to indicate that the queue manager should unthrottle message
  delivery transports and next-hop destinations that are used to
  deliver the message (the queue manager clears the bit).

- The cleanup daemon sets the queue file owner execute permission
  bit, so that the queue manager can reliably skip junk from a
  crashed cleanup process.

So, the suggestion to use a group execute permission bit seems safe,
modulo interference from unhelpful 'security' software.

But I want to avoid a significant delay before messages start being
removed from the queue after someone runs 'postsuper -e'. Judicious
manipulation of queue file mtimes can take care of that.

I'll explore this alternative further.

        Wietse

Reply via email to