From: Noel Jones on
On 3/16/2010 7:41 AM, Oleksii Krykun wrote:
> 2010/3/16 Noel Jones<njones(a)megan.vbhcs.org>:
>>>> Make the virtual aliases explicit.
>>>>
>>>> ----8<----
>>>> user1(a)domain2 user1(a)domain1
>>>> user2(a)domain2 user2(a)domain1
>>>> user3(a)domain1 user3(a)domain2
>>>> user4(a)domain1 user4(a)domain2
>>>> ---->8----
>>
>> Yes, this is the correct solution.
>
> In future both domain users will migrate to one of them.
> I think to use explicit aliasing in one direction and global aliasing
> in another.
> Is it bad?

Don't use wildcard or global rewrites in virtual_alias_maps or
canonical_maps. They defeat recipient validation, which will
clog your queue with undeliverable messages and will get you
blacklisted as a backscatter source.

-- Noel Jones

From: Ansgar Wiechers on
On 2010-03-16 Oleksii Krykun wrote:
> 2010/3/16 Ansgar Wiechers <lists(a)planetcobalt.net>
>> On 2010-03-16 Oleksii Krykun wrote:
>>> I set up two domain aliases:
>>> @domain1 @domain2
>>> and
>>> @domain2 @domain1
>>
>> This makes you a backscatterer, because Postfix will accept all mail
>> for both domain1 and domain2 and create bounces if both local
>> delivery and forwarding to the other domain fails.
>
> I don't see any difference between one or two domains here.

I didn't say there were any. It's bad either way. Don't do it.

Regards
Ansgar Wiechers
--
"Abstractions save us time working, but they don't save us time learning."
--Joel Spolsky