Victor Duchovni <[EMAIL PROTECTED]> wrote: > Incoming mail is logged by smtpd(8)/pickup(8) and cleanup(8). Mail > (re)entering the active queue is logged by the queue manager, which > logs the sender address. Deliveries to recipients are logged by delivery
... one thing I've sometimes wished for is the ability to distinguish between "entering" and "reentering", or more specifically, that qmgr would log which queue the message came *from* when it puts it in the active queue. That could be very useful for analysis and monitoring on stressed/troubled systems. One workaround is to have scripts that cache queue IDs they see from "postfix/cleanup" and assume the first time time qmgr queues that message it must've come from incoming, and any subsequent times for the same ID are from deferred. But that can run into problems on the very systems where this kind of analysis or monitoring is most useful: at times when the incoming queue gets big. For example: - It takes so long for the message to be queued to active, that the log message from cleanup isn't in the same logfile or snippet that the qmgr log message is. - As a temporary workaround, someone does a manual end run around qmgr by using find piped to postsuper -h - to put a lot of messages from incoming on hold, and later releases them into deferred using postsuper -H ALL. So, basically, it'd be nice if qmgr logged which queue it got the message from. -- Cos