On Fri, Jan 03, 2020 at 01:50:36PM -0700, local-mail-courier wrote:
> I have scoured the web for an answer to this. Sometimes in the postfix log,
> when a message does not send right away, the log will say "(queue active)".
This happens for *every* message, every time (typically just once) that
a message enters the active queue. The message recipients are then
queued for delivery via a given transport to a particular nexthop.
> When I use the QUEUE ID to search the mail log for all associated logs
> for the message, there often isn't any further information. But, I do
> see that "postfix/qmgr" is the process.
Further logging happens once a delivery agent has completed or
failed a delivery attempt. This can take some time.
> However, I don't have a satisfactory answer. Is there any specific reason
> why this happens? Or is it just multiple things? If it is multiple things,
Delivery is not instantaneous. Also, with Linux systemd, on busy
systems logging has become rather lo[us]sy. You may need to raise
message rate limits for systemd-journald.
> Hopefully there is some additional information out there that can help.
Once a message is delivered, the delays=a/b/c/d numbers tell the story.
You'll need to analyze these.
http://www.postfix.org/postconf.5.html#delay_logging_resolution_limit
http://www.postfix.org/QSHAPE_README.html
--
Viktor.