postfix-users October 2010 archive
Main Archive Page > Month Archives  > postfix-users archives
postfix-users: Re: qty hold: logged does.not.equal qty hold queu

Re: qty hold: logged does.not.equal qty hold queue ?

From: Noel Jones <njones_at_nospam>
Date: Mon Oct 25 2010 - 11:16:07 GMT
To: postfix-users@postfix.org

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