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: Sun Mar 05 2000 - 13:01:36 CST


Parkhaev Vladimir:
> You right, I had pl2 on this box. I upgrdaded three other to pl4 but not this
> one. Upgrading to pl4 did the trick for 'Name service error for domain
> postmaster' error. However,
> transport.regexp:
> /./!/mydomain\.com$/ smtp:[111.222.33.44] works fine but
> /./!/[.]mydomain\.com$/ smtp:[111.222.33.44]
> sends _everything_ to 111.222.33.44.
>
> Any ideas why? Thanks.

Doh! Transport maps look at domain names only. I was confusing the
present transport maps withtheir future version that will do
userdomain addresses.

OK, so what you need is:

    /./!/^(.*\.)?mydomain\.com$/ smtp:[111.222.33.44]

That matches the string "mydomain.com" as well as "foo.mydomain.com"
or "foo.bar.mydomain.com".

This took a lot of iterations. Hope it is right this time.

        Wietse