OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
Re: "loops back to myself" virtual problem

From: scott.list (scott.listmlec.net)
Date: Thu Aug 25 2005 - 14:31:21 CDT


Oh (*&^%! Here I am trying hard to do everythign right and I replied
directly to Wietse. grrr. Sorry Wietse. Now to send correctly to
the list:
---------------

> > I am continuing to get my new postfix server working. I have a
domain
> > I accept mail for and I have it set up via a virtual domain. When
I
> > send mail, from the outside, to a valid virtualhost user, the mail
is
> > delivered properly to the defined local user account. If I send
mail
> > to an invalid user, the message is bounced (good of course), but
the
> > error is
> >
> > status=bounced (mail for virt-one.com.com loops back to myself)
>
> list the domain name in virtual_alias_domains not mydestination.

Thank you Wietse. That's not what I did but lead me to the apparant
problem, and fix.

For the archive to maybe help another beginner:

I properly did *not* have the virtual domain listed in mydestination.
And, I thought I had the virtual domain listed properly as well. So I
looked hard and see I had in main.cf:

virtual_alias_maps = hash:/etc/postfix/virtual_users
virtual_alais_domains = hash:/etc/postfix/virtual_domains

But, only one of those made it to the postfinger output (posted
previously - virtual_alias_maps made it). I did not catch that it was
missing from the running config. I don't know why it was missing. I
screwed around with the config, combining the 2 virtual files contents
into virtual_alias_maps like the included virtual file example and it
worked. So I split them back out and it still worked. Now,
postfinger reflects both config paramaters:

virtual_alias_domains = hash:/etc/postfix/virtual_domains
virtual_alias_maps = hash:/etc/postfix/virtual_users

Maybe I missed redoing the db file, and it didn't get picked up on the
reload. Dunno. Anyway, it is working now. config was already
correct, just had a pilot error somewhere in there turning it on.

If the way it is set above is incorrect and I shoulld be using one
file, please let me know.

Thanks again for the time to help.
Scott