Diego Roccia: > Hello Guys > I can't find any log of postfix deleting messages that have been in queue too > long ( > max_queue_lifetime ) > I also checked in the source code but I didn't find any trace of these > actions. I'm sure it's happening (a lot) > Do you know how can I track expired messages?
In qmgr_active.c, an expired message is logged as 'status=expired, returned to sender' with all Postfix versions, and in addition it is logged as 'removed' starting with Postfix version 2.1.0. Both records are logged with the queue ID; that is sufficient to follow a message from the point where it enters the mail queue to the point where it is deleted. Wietse