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: virtual domains and hacking smtp_addr.c
From: Wietse Venema (wietseporcupine.org)
Date: Fri Oct 06 2000 - 21:20:45 CDT


Jonathan Ellis:
[Charset iso-8859-1 unsupported, filtering to ASCII...]
> > There is NO need to use transport maps.
>
> I tried that because I mis-understood your previous comment:
>
> > If advocast.com is listed in mydestination [A] and not in a transport
> > map entry [B], then there is no way that Postfix can pass mail for
> > anyoneadvocast.com to the smtp client [C]. This is exactly how thousands
> > of sites must be using Postfix.
>
> I parsed your sentence as A & ~B => ~C and drew the conclusion that
> A & B => C. Sorry for my faulty logic.
>
> Anyway, I finally figured out what was going on. In the auto-generated
> virtual map, there were some 'duplicate entry' lines, which resulted in
> "warnings"
> when postfix started but didn't seem to hurt anything. Turns out they
> were screwing things up silently... I removed them manually and things
> are fine. I'm not used to "warnings" doing that.

That's what you get for ignoring warnings.

Consider the alternative. If Postfix craps out instead of warning
then you will have no virtual map and people will lose mail.

Some systems have dbm maps, so in the general case Postfix can't
build the map first then rename it into place, because there is no
atomic rename for a pair of files.

        Wietse