On 10/25/2010 4:28 AM, Len Conrad wrote:
I'm testing a new filter, so I HOLD matching messages, then inspect them to
either release or delete them.
egrep -ic "hold: " /var/log/maillog
298
but in mailq:
mailq | mailq-oneline.pl | egrep -ic "! "
35
cross checking:
find /var/spool/postfix/hold -type f | wc -l
35
In case I forgot I cleaned the queue:
egrep -ic "postsuper.*removed" /var/log/maillog
3
Why the 250+ diff between HOLD: log lines and hold queue files?
Len
Several reasons come to mind...
Mail can trigger a HOLD rule but be rejected by a later rule.
If you have multiple HOLD rules they may each create their
own log entry. A recipient rule that triggers HOLD will log
for each recipient of a multi-recipient message, but will only
result in one message in the hold queue.
-- Noel Jones