OSEC

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

From: Alexandre Chapellon (a.chapellonequipe.cyberscope.fr)
Date: Tue Mar 06 2007 - 16:08:30 CST


On Tue, 6 Mar 2007 20:51:24 +0100, Magnus Bäck <magnusdsek.lth.se> wrote:
> On Tuesday, March 06, 2007 at 14:03 CET,
> Alexandre Chapellon <a.chapellonequipe.cyberscope.fr> wrote:
>
>> I have a working setup of postfix with virtual domains and domain alias.
>
>> Until now everything was stored in flat files (hash lookups) and I
>> recently moved to an LDAP backend where I store my virtual domains,
>> mailboxes and local aliases. I would like use LDAP for domains aliases
>> too, meaning that every existing address in a "main" domain (eg:
>> user1domain.com <mailto:user1domain.com>) should be redirected to the
>> same localpart in the alias domain (eg user1domain.net
>> <mailto:user1domain.net>).
>> With Flat files I acheived this behaviour by using
>> "virtual_alias_domains = hash:/myfile/with/alias_maps"
>>
>> and /myfile/with/alias_maps was something like:
>> domain.com domain.net
>
> You must not do that. It breaks recipient validation and makes you a
> backscatter source.

Thank you for this advice. Anyway I have a front SMTP Relay wich uses relay_recipient_maps
and so it should do the job... Right?
>
>> Does anybody knows how to make it work with LDAP (or even mysql would
>> maybe help me)
>
> The answer depends on your schema. The lookup keys Postfix uses and the
> answer it expects are the same no matter what type of lookup table you
> have.

Thank I'm gonna test that :)
 
>
> --
> Magnus Bäck
> magnusdsek.lth.se
--
cordialement,

Alexandre Chapellon
Cyberscope / Hosting Platform