Slowest: mailq/postqueue -p, because that opens each file.
This would also be unwise given that mailq/postqueue -p can return
incomplete results when the number queued files gets large - or more
accurately that there is a limit to the amount of data mailq will show
and thus it isn't spec
eldom have to deal with REALLY large queues but I use this I hacked
up real quick to see if anything is starting to build up:
#!/bin/bash
echo ACTIVE
echo
find /var/spool/postfix/active/. ! -name . ! -name '?' -print |wc -l
echo
echo DEFERRED
echo
find /var/spool/postfix/deferred/. ! -name . !
On Aug 9, 2008, at 8:52 PM, Noel Jones wrote:
It doesn't need to process the body of the email
Just curious, since queue_id is passed, is it possible for the
script to actually read the email body in postfix queue?
No. The queue file format is intentionally undocumented to
discourage d