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