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 specifically a message count limit.

It's a time limit.  After $daemon_timeout (default: 18000s, or 5
hours) the mailq/postqueue queue listing will be aborted.

This is purely a safety feature that prevents filling up the machine
with cron jobs that query the queue status.

        Wietse

> On Linux systems I use an inotify enabled kernel (>= 2.6.13) and track  
> the events via daemon/db. I then query the daemon when I need counts.  
> You could do similarly on systems that provide an inotify-like feature.
> 
> 
> Cheers,
> Bill
> 
> 

Reply via email to