Ralf Hildebrandt:
> Is there a way of getting a log entry that documents when Postfix is
> trying to actually deliver a mail?

The queue manager connects to the UNIX-domain socket for a particular
delivery agent such as smtp(8) or local(8), and waits for a response
from a delivery agent that it is ready.

Once a delivery agent responds, it receives the delivery request,
and that is the start of delivery. You can see this only by turning
on verbose logging.

The delivery request contains among many things hints whether to
try to save/reuse a connection, but it is up to the delivery agent
to either ignore that hint (local(8) and pipe(8) don't reuse) or
to pay attention to that hint (as smtp(8) does).

> Something along the lines "it's in the active queue, and Postfix is about
> to create|reuse an (S|L)MTP connection to whatever destination it deems
> to be correct"
> 
> Why am I interested in this?
> 
> basically I want to show that it's NOT lingering in the queue after
> it has been scanned for viruses and reinjected into the queue

Use multiple instances, and filtered mail will not share the
queue with unfiltered mail, so you know exactly why it is in
an active queue.

        Wietse

Reply via email to