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: Magnus Bäck (magnusdsek.lth.se)
Date: Thu Apr 06 2006 - 15:04:49 CDT


On Thursday, April 06, 2006 at 19:24 CEST,
     Luiz Boaretto <luizv3i.com.br> wrote:

> 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

virtual(5) describes how catch-all aliases can be used in that manner,
but doing so breaks recipient validation so you must not use it.
Explicit mappings userexample.com -> userexample.net for all users
is the proper solution.

> Using MySQL, is this possible? And if so, how?

It certainly is possible, but the exact solution depends on your schema.

--
Magnus Bäck
magnusdsek.lth.se