On Tue, Mar 10, 2009 at 12:01 AM, ram <r...@netcore.co.in> wrote: > > On Mon, 2009-03-09 at 23:40 -0700, tom lee wrote: >> hello, >> >> I checked the doc about the mail relay in postfix and still not >> clear about two issues. >> >> I have mail sending from machine A to machine B, machine B is a relay >> server forwarding the email to machine C (target machine). >> >> I want to make sure there is no emails bouncing back from either >> machine B or machine C to machine A. >> can it be done? >> >> If machine C is down, relay machine B will spool all emails till >> machine C is up. >> what configuration adjustment should I make for relay machine B? >> is there a way to adjust the mail holding days in the relay machine B? > > Do you want this limit for all mails , or only for mails to machine B ? > > http://www.postfix.org/postconf.5.html > > Look for > bounce_queue_lifetime > maximal_queue_lifetime
Ram, Thanks so much for your help. All mails sending from machine A via relaying machine B will arrive in machine C. I think I need to set up something in machine B so that there will be no mails bounce back to machine A. >From your suggestion, I can see one way to do it is to set maximal_queue_lifetime and bounce_queue_lifetime to 30 days and run a script to delete all mails that is in the queue more than 15 day every day. Not sure if there is a better way to do it? Tom