OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
Subject: Re: Is this possible with postfix?
From: Wietse Venema (wietseporcupine.org)
Date: Sat Mar 04 2000 - 19:31:38 CST


Parkhaev Vladimir:
> On Fri, 3 Mar 2000, Wietse Venema wrote:
> <lots of text deleted>
>
> >
> > The simplest fix for this is to ditch the relayhost entry and
> > to use a regexp-style transport map:
> >
> > /etc/postfix/transport.regexp:
> > /([^]*\.my\.domain)$/ smtp:$1
> > /./ smtp:relayhost
> >
> > this delivers internal mail directly, and everything else via
> > the relayhost. If you have done the evil thing of setting up
> > a wild-card MX record for my.domain, then you must specify
> > the host in [] on the right-hand side of the transport map.
>
> That did not work. However,

Ah, you had to add one entry:

        my.domain local:

> /etc/postfix/transport.regexp:
>
> /./!/my\.domain$/ smtp:[IP addr of relayhost]
>
> Does exactly what I want. Tnanks a lot, Wietse.

This is wrong. It will misdeliver anythingmy.domain.

You MUST require a . or before my.domain.

        Wietse