On 11/7/2012 8:47 PM, Josh Berkus wrote:
> On 11/7/12 6:37 PM, Jeroen Geilman wrote:
>> On 11/07/2012 10:03 PM, Josh Berkus wrote:
>>>> 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?
>>> Oh, thanks!  So if I set $max_queue_lifetime lower, then it should clear
>>> out those 4xx bounces?  What about unreachable target servers?
>>>
>>
>> Noel asked you which of the possible reasons he listed causes your queue
>> to fill up.
>> 4xx are not bounces - they are deferrals, which are then queued.
> 
> Well, it's actually both.  I have both deferrals and unreachable
> servers.  It's not soft_bounce, though.
> 

max_queue_lifetime will reduce the amount of time undeliverable mail
hangs around in the queue, regardless of the reason.

You can set it lower, but with caution -- postfix can't tell the
difference between a domain that will never work and some legit
domain that happens to be down for maintenance/power/whatever
temporary reason.  The default is 5 days, with good reason.

for domain "squatters" that register a misspelled popular domain
with an A record but no mail service, handle them by adding a
transport entry pointing to the error: service. This will cause
problems if the domain in question ever goes legit... you can decide
how likely that is yourself.

Some popular ones with my users; I expect others have different
local favorites.
# transport
comcoast.net   error:5.1.2 maybe you mean comcast.net
hotmani.com   error:5.1.2 maybe you mean hotmail.com
kincle.com   error:5.1.2 maybe you mean kindle.com
htomail.com   error:5.1.2 hotmail.com not htomail.com
hotemail.com  error:5.1.2 hotmail.com not hotemail.com
vzwpics.com      error:5.1.2 maybe you meant "vzwpix.com"
vzxpix.com      error:5.1.2 maybe you meant "vzwpix.com"
guno.com      error:5.1.2 maybe you meant "juno.com"
xomcast.net   error:5.1.2 try  "comcast.net" instead
c0mcast.net     error:5.1.2 try "comcast.net" instead
cdomcast.net    error:5.1.2 try "comcast.net" instead
cherter.net     error:5.1.2 try "charter.net" instead
charther.net    error:5.1.2 try "charter.net" instead
vahoo.com       error:5.1.2 did you mean yahoo.com?
at.net         error:5.1.2 try "att.net" instead




  -- Noel Jones

Reply via email to