OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
Re: Selecting a nexthop based on the current nexthop

From: Wietse Venema (wietseporcupine.org)
Date: Tue Jan 02 2007 - 14:51:41 CST


Roger B.A. Klorese:
[ Charset ISO-8859-1 unsupported, converting... ]
> Victor Duchovni wrote:
> > On Tue, Jan 02, 2007 at 11:40:05AM -0800, Roger B.A. Klorese wrote:
> >
> >
> >> Can I reroute mail based on the domain of the MX?
> >>
> >
> > main.cf:
> > # If the hosts entry in nsswitch.conf is just "files":
> > smtp_host_lookup = native, dns
> >
> > # If the hosts entry in nsswitch.conf is "files, dns"
> > smtp_host_lookup = native
> >
> > /etc/hosts:
> > 192.0.2.1 some-mx-host.example.com
> >
> >
>
>
> Either I need to be clearer or I'm not asking the right question, so let
> me come straight
> out...
>
> If the MX for a domain is in yahoo.com, I want to send it to a separate
> instance -- since they host several major ISPs as well as oodles of
> custom domains, I don't want to list all of them, nor can I know what
> all of their MX hosts are likely to be. Can I handle this somehow?

Perhaps a combination of check_recipient_mx_access, with an access
map of

    yahoo.com filter [graveyard]:25

would hack it.

        Wietse