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 - 08:57:04 CST


On Sun, 5 Mar 2000, Wietse Venema wrote:

> Parkhaev Vladimir:
> > On Sat, 4 Mar 2000, Wietse Venema wrote:
> >
> > > 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:
> >
> > You lost me. Is it in addition to 2 lines above?
>
> Add, as in: 2+1=3.
>

It adds up alright but does not work:

Mar 5 14:53:49 myhost postfix/qmgr[798]: 2A1E93309D: from=<double-bouncemy.domain>, size=1389 (queue active)
Mar 5 14:53:49 myhost postfix/smtp[802]: 0378433098: to=<postmastermy.domain>, relay=none, delay=1, status=bounced (Name service error for domain postmaster: Host not found)

 
> > > > /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.
> >
> > I know. I tried /./!/[.]my\.domain$/, but
> > mail starts bouncing with:
> >
> > Mar 5 14:11:57 myhost postfix/smtp[566]: 262C0330A7: to=<postmastermydomain.com>, relay=none, delay=0, status=bounced (Name service error for domain postmaster: Host not found)
> >
> > smtp treats user name as domain name. Any ideas why?
>
> This was fixed with Postfix 19991231 patch mumble.
>
> Wietse
>

Hmmm, I am running postfix-19991231-pl4....

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