OSEC

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

From: mouss (moussnetoyen.net)
Date: Tue Apr 01 2008 - 17:12:33 CDT


Dan Farrell wrote:
> On Tue, 01 Apr 2008 21:04:38 +0200
> mouss <moussnetoyen.net> wrote:
>
>
>> maximatt wrote:
>>
>>> hi....
>>>
>>> i have a domain "prueba.org" that is the real domain, but i want to
>>> accept " pp.prueba.org" domain...
>>> in other words, if i have "toto1prueba.org" account (virtual), i
>>> want to accept "toto1pp.prueba.org", and these mail delivered to
>>> "toto1prueba.org" mailbox...
>>>
>>> i tryed to use "relocated_maps" and others parameters, but i could
>>> do them yet...
>>>
>>>
>> add pp.prueba.org to virtual_alias_domains and add
>>
>> toto1pp.prueba.org toto1prueba.org
>>
>> to virtual_alias_maps and that's it. use a script to generate the
>> virtual aliases or use sql/ldap.
>>
>> don't use wildcard aliases because they rebak recipient validation.
>> generate per user entries, and only for valid users.
>>
>>
>
> wouldn't this be a good time to use masquerad_domains, gurus?
>

OP doesn't want to hide the domain.

The real issue here is recipient validation, not rewrite. rewrite is
easily implemented with a wildcard alias but this breaks recipient
validation.

if the domain was local (in mydestination), adding pp.example.com to
mydestination is enough. but for other domains, the list of valid
recipients is needed.