Thanks for the tip and the links you provided me.  The Standard Configuration 
Readme provided a lot of insight!

This is how my main.cf is set up and seems to work, but it is not correct 
according to what I read earlier.

/etc/postfix/main.cf
mydestination = example1.com, genex.example1.com, localhost.example1.com, 
localhost
virtual_alias_domains =  example2.org, localhost.example2.org genex.example2.org
virtual_alias_maps = hash:/etc/postfix/virtual

/etc/postfix/virtual
l...@example1.com    legg
t...@example2.org    legg


So I changed the main.cf to this
/etc/postfix/main.cf
mydestination = localhost
virtual_alias_domains =  example1.com, genex.example1.com, 
localhost.example1.com, example2.org, localhost.example2.org genex.example2.org
virtual_alias_maps = hash:/etc/postfix/virtual

Upon instating these changes, mail to l...@example1.com gets returned back.  
User unknown in virtual alias table.

Any suggestions how this can be set up in a way that is proper, robust and 
still delivers mail?

Tim Legg

--- On Thu, 6/4/09, Noel Jones <njo...@megan.vbhcs.org> wrote:

> From: Noel Jones <njo...@megan.vbhcs.org>
> Subject: Re: Limitations of setting mydestination with virtual domains
> To: "Tim Legg" <kc0...@yahoo.com>, postfix-users@postfix.org
> Date: Thursday, June 4, 2009, 8:54 AM
> Tim Legg wrote:
> > According to:
> > http://www.postfix.org/VIRTUAL_README.html,
> > I should never list a virtual alias domain name as a
> mydestination domain.
> > 
> > Since I am hosting 7 sites, which one should I choose
> as the mydestination domain?  Would that one domain
> have different e-mail handling characteristics from the
> others?
> > 
> > Tim Legg
> 
> None of them.
> 
> The mydestination parameter is for "local" domains, with
> the users listed in the system password database.
> 
> In virtual-only setups, it's common to leave mydestination
> empty, or to set it to "localhost" or an internal-only name
> such as example.invalid.
> 
> Some related documentation:
> http://www.postfix.org/ADDRESS_CLASS_README.html
> http://www.postfix.org/STANDARD_CONFIGURATION_README.html
> 
>   -- Noel Jones
> 



Reply via email to