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: Parkhaev Vladimir (vladimirteleglobe.ca)
Date: Sun Mar 05 2000 - 13:10:23 CST


On Sun, 5 Mar 2000, Wietse Venema wrote:

> 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
>

Now it makes sence. Great. Thanks Wietse.

------------------------------------------------------------------
  Vladimir Parkhaev, System Administrator, Teleglobe Canada
    vladimirTeleglobe.CA, 514-868-7823(Ph), 514-868-8357(Fax)
       1441 Carrie-Derick, Montreal, Que, Canada H3C 4S9