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 without specifying users?
From: Michael Tokarev (mjttls.msk.ru)
Date: Sat May 20 2000 - 09:21:48 CDT


Barton Hodges wrote:
>
> What is the correct method of accepting mail for a virtual
> domain for _all_ users?
>
> For instance, I have realdomain.com which is the actual $mydomain
> and virtdomain.com which is a virtual domain.
>
> using virtual_maps, I can create a virtual file that contains:
>
> virtdomain.com -
> tomvirtdomain.com tomrealdomain.com
> dickvirtdomain.com dickrealdomain.com
> harryvirtdomain.com harryrealdomain.com
>
> and this will successfully deliver the mail to the local users.
>
> However, I don't want to have to specify EVERY user in the
> virtual file. I just want all of the mail sent to valid users
> at virtdomain.com to be sent to the appropriate realdomain.com user.

Read "man virtual" again.
All that you need is to specify

  virtdomain.com -
  virtdomain.com realdomain.com

in virtual map.

>
> main.cf says not to list virtual domains in the $mydestination
> variable, but is this the only way to accomplish what I want
> done?
>
> Thanks,
>
> Barton