OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
Re: Alias domain

From: mouss (usebsdfree.fr)
Date: Thu Apr 06 2006 - 15:07:37 CDT


Luiz Boaretto wrote:
> Hi,
>
> I'm user of qmail/vpopmail/mysql and I migrating from qmail to postfix.
>
> I have one question to init the migration.
>
> Question: "link domain to another domain"
>
> In vpopmail, I use "vaddaliasdomain" program.
>
> I need this:
>
> domain1.com (main domain)
> domain2.com (alias of domain1)
> domain3.com (alias of domain1)
>
> When userdomain1.com is created, userdomain2.com and userdomain3.com
> is automatically alias of userdomain1.com.
> When user2domain1.com is created, user2domain2.com and
> user2domain3.com is automatically alias of user2domain1.com
>
>
> Using MySQL, is this possible? And if so, how?
>

yes, use virtual_alias_maps. make sure to only return a valid result if
the user really exists.