On Tue, Jan 26, 2021 at 08:13:01AM +0100, David Bürgin wrote:

> I’ve recently begun using the ‘hold’ queue, because of a milter that I
> use. A milter may ‘quarantine’ a message, which causes the message to be
> placed in the ‘hold’ queue (eg OpenDMARC does this when the DMARC policy
> requests quarantine).
> 
> But how does one manage that queue? I know that
> postqueue/postsuper/postcat exist, but it seems like a lot of work to
> periodically (daily, weekly?) inspect each message in that queue and
> deal with them one by one? Do people actually use quarantine/on-hold,
> and if so how do you manage your queue?

Doing something non-trivial (other than manual administrative release
via "postsuper -H" on report of a false positive) is a programming
exercise for the administrator.  There's nothing fancy built-in.

* You can use "postqueue -j" and "jq" to select particular messages
  from the hold queue, based on the reported features.

* You can use "postcat -q [-ebh]" to examine the message content.

* You can move the message into the incoming directory (must reside
  in the same filesystem!) of some other Postfix instance, which
  might then deliver it in some special way (a per_recipient
  maildir perhaps).  With the messages stored in standard *822
  format, it can be easier to write tools to do further automated
  processing.  But this could be more easily achieved with FILTER.

-- 
    Viktor.

Reply via email to