OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
RE: Secondary relayhost

From: Aaron Roberts (aarondomicilium.com)
Date: Fri Apr 02 2004 - 04:39:38 CST


owner-postfix-userspostfix.org wrote:
> On Friday, April 02, 2004 at 12:29 CEST,
> Aaron Roberts <aarondomicilium.com> wrote:
>
>> I have a setup where a postfix server accepts emails for a small
>> number of relay_domains and simply forwards them on over SMTP to a
>> virus scanner. I use the relayhost = option for this. When the
>> virus scanner is unavailable, I would like email to be relayed to a
>> different server.
>
> Why not use content_filter? Anyway, the hostname in relayhost is
> subject to MX lookups (unless surrounded by brackets), so setup
> suitable MX records in DNS.

content_filter sounds good. Presumably all mail would be sent there, and
would default to relayhost ?

I would use MX records, but MX records are already used to direct emails on
their way out of the Virus scanner - it seemed easier to hard-route Postfix,
rather than create (another) internal DNS view for the same domains.

Thanks for the hint!

Aaron