Re: Recommended way to (quickly) get total mail queue size?

2009-07-07 Thread Bill Anderson
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

Re: telling queue files from subdirectories

2008-11-07 Thread Bill Anderson
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 . !

Re: Before queue filter vs access policy delegation?

2008-08-13 Thread Bill Anderson
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