On 11/7/2012 2:47 PM, Josh Berkus wrote:
> Folks,
> 
> We had to restore a mailing list (mailman) from an old backup.  This
> means it included hundreds of now-invalid email addresses.
> 
> As such, I set up mailmain to remove addresses on the first b0unce, and
> set up postfix to b0unce outgoing messages on the first refusal (I thought).
> 
> The way I did this was to set: b0unce_queue_lifetime=0.  I checked
> postconf -n, and the variable is set to 0.

This controls how long an undeliverable NDR stays in the queue.  It
has no effect on when the NDR is generated.

> 
> However, I'm noticing that postfix seems to be completely ignoring this
> setting.  B0unces stay in the mailqueue for days, and that in turn
> bloats the processes postfix needs to run.
> 
> How do I get postfix to b0unce all nondeliverable emails *immediately*?

Non-deliverable mail is returned to sender when either the remote
server gives a 5xx "undeliverable" response, or $max_queue_lifetime
expires.

Undelivered mail will hang around in the queue if the remote server
gives a 4xx "retry" response, or the remote server exists but is
unreachable, or if you've set soft_bounce=yes.  So which is it?



  -- Noel Jones

Reply via email to