On Wed, 2009-01-21 at 18:36 +0100, Gábor Lénárt wrote:
> Hei,
> 
> I have a got a stupid problem. We have some customers saying they can't and
> don't want to reconfigure their mail servers even if Planet-X hits Earth and
> that would help to avoid it :) And their MTAs always responds with:
> 
> 450 <u...@domain>: Recipient address rejected: User
>    unknown in local recipient table (in reply to RCPT TO command))
> 

Same problem here.  I workaround to bounce these messages immediately 


I just created another postfix instance with 
maximal_queue_lifetime=1m
bounce_queue_lifetime = 1m


Then move them all with a 4 line script 


---------------
QIDS=`mailq -C /etc/postfix  | perl -lne 'BEGIN { $/="\n\n" ;} /^(\S+).*unknown 
in local recipient table/s && print $1' `     
for i in $QIDS;do
find /var/spool/postfix/deferred/ -name $i -exec mv -vf {} 
/var/spool/postfix2nd/incoming/ \;
done
------------------



Both spool dirs must be on the same partition .. 






Reply via email to