On Fri, Feb 11, 2011 at 01:35:51PM +0100, Matteo Cazzador wrote:

> Hello i've a new question about two postfix server with the same mail 
> domain for different users.
> Example
>
> server a -> a...@example.com
>                     a...@example.com
>
>
> server b ->b...@example.com
>                   b...@example.com
>
> this is my question, is it possibile to receive to the correct mail  to the 
> correct server  without use  $myhostname in mydestination or 
> virtual_mailbox_domains
>     /etc/postfix/virtual

All MX hosts for the domain need to accept mail for both users. All
the users need to route to the right destination. If you don't want
to rewrite (alias), you can use per-user transport table entries to
select the right transport:nexthop pair. This works best when none
of the MX hosts are the final host where the mailbox is located,
otherwise you need different transport tables on each host.

Your allergy to rewriting is I believe unwarranted, generally it is
best to in-fact rewrite the two users to addresses in two different
domains that are each routed to the right destination via per-domain
transport entries. In some cases you can rewrite back the primary
logical address of the user in [sl]mtp_generic_maps as mail is sent
to the destination mailstore via SMTP or LMTP.

-- 
        Viktor.

Reply via email to