OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
Re: Strange vhosts problem, possibly involving dash

From: William Pietri (williamscissor.com)
Date: Mon Aug 02 2004 - 17:38:50 CDT


Thanks again for the speedy reply, Victor. Your assistance is much
appreciated.

I'll answer your other questions more fully when I have time this
evening, but I wanted to answer the easy ones quickly and correct a
mistake in my previous post.

On Mon, 2004-08-02 at 13:03, Victor Duchovni wrote:
> On Mon, Aug 02, 2004 at 11:13:49AM -0700, William Pietri wrote:
>
> > transport_maps = hash:/etc/postfix/transport, hash:/etc/postfix/vdomains
> > virtual_maps = hash:/etc/postfix/virtual
> > virtual_mailbox_maps = hash:/etc/postfix/vdomains, hash:/etc/userdb
>
> So your virtual domains are handled by maildrop.

Correct.

> > Here are the interesting entries for the non-working domain and the
> > working one from virtual_maps:
> >
> > us-election.org maildrop:
> > pota.to maildrop:
>
> Is this in the transport table or the vdomains table?

Sorry, it's from the /etc/postfix/vdomains file, which I've included in
both transport_maps and virtual_mailbox_maps.

> $mydestination
> matching a key in virtual_maps
> matching a key in virtual_mailbox_maps
> $relay_domains
>
> Clearly us-election.org is not listed in any of the above.

Sorry for my mislabeling. I think us-election.org is in
virtual_mailbox_maps.

> > And here they are from virtual_mailbox_maps:
> >
> > postmasterus-election.org williamscissor.com
> > abuseus-election.org williamscissor.com
> > rootus-election.org williamscissor.com
> > us-election.org catchallus-election.org
> > pota.to catchallpota.to

Sorry, this is actually from the file /etc/postfix/virtual, which I have
listed under virtual_maps.

> > As I mentioned, this same style of thing seems to work fine for my other
> > virtual domains, so I'm puzzled as to why this doesn't work for these
> > new ones.
>
> Your other domains are listed in more places than you showed.

Hmmm... I don't think that's true, at least not in a significant way:
        
        % grep -l us-election.org *
        grep: samples: Is a directory
        vdomains
        vdomains.db
        virtual
        virtual.db

        % grep -l pota.to *
        recipient_checks
        recipient_checks.db
        grep: samples: Is a directory
        vdomains
        vdomains.db
        virtual
        virtual.db

It's true that pota.to is in recpient_checks, but I've added those only
recently; before it was only in the vdomains and virtual files.

> Fix it first then upgrade later, taking the time to lab-test and read
> the documentation. Don't upgrade broken systems if you can help it,
> you can easily go from one problem to many problems.

Sound advice. O will do exactly that.

Thanks,