Noel, I tried the option of adding fallback relay, but I am getting connection refused in postfix logs.
Here is my 'master.cf' setting: #Adding amavisfeed amavisfeed unix - - n - 2 lmtp -o lmtp_data_done_timeout=1200 -o lmtp_send_xforward_command=yes -o disable_dns_lookups=yes -o max_use=20 -o smtp_fallback_relay=[127.0.0.1]:10025 #Adding reinjection 127.0.0.1:10025 inet n - n - - smtpd -o content_filter= -o smtpd_delay_reject=no -o smtpd_client_restrictions=permit_mynetworks,reject -o smtpd_helo_restrictions= -o smtpd_sender_restrictions= -o smtpd_recipient_restrictions=permit_mynetworks,reject -o smtpd_data_restrictions=reject_unauth_pipelining -o smtpd_end_of_data_restrictions= -o smtpd_restriction_classes= -o mynetworks=127.0.0.0/8 -o smtpd_error_sleep_time=0 -o smtpd_soft_error_limit=1001 -o smtpd_hard_error_limit=1000 -o smtpd_client_connection_count_limit=0 -o smtpd_client_connection_rate_limit=0 -o receive_override_options=no_header_body_checks,no_unknown_recipient_checks,no_milters,no_address_mappings -o local_header_rewrite_clients= -o smtpd_milters= -o local_recipient_maps= -o relay_recipient_maps= Please help Thanks in advance Ashish Sharma -----Original Message----- From: owner-postfix-us...@postfix.org [mailto:owner-postfix-us...@postfix.org] On Behalf Of Noel Jones Sent: Wednesday, March 31, 2010 12:22 AM To: postfix-users@postfix.org Subject: Re: Bypassing content filter or mail filter if one of them crashes out On 3/30/2010 9:41 AM, Sharma, Ashish wrote: > Hello, > > I am running my postfix with 3 mail filters and 2 content filters (actually > one of the content filter (amavisd) is piping it's output to the other). > > My question here is how can I make sure to make my setup robust in the sense > that if one of the mail filter or content filter crashes then it could be > bypassed by postfix and the system recovers from that state too. > > Is bypassing of filters (mail filter and content filter) possible? > > Thanks in advance > Ashish Sharma The rhetorical question is: If you don't care if your mail is filtered, why bother with any filtering? Your first step should be to set up some monitoring system to alert you when something breaks, and maybe even try to fix it for you. For simple alert & service restart, try monit. For something more complex and flexible, try nagios. Anyway, on your amavis transport in master.cf, you can add (assuming 10025 is the after-filter postfix smtpd reinjection port) -o smtp_fallback_relay=[127.0.0.1]:10025 http://www.postfix.org/postconf.5.html#smtp_fallback_relay Other options include using local MX records rather than a fixed [127.0.0.1] destination, or a milter rather than a content_filter, with "milter_default_action = accept" -- Noel Jones