From: jan on
Hi,

> Do not list weitan.org in mydestination. It should be a relay
> destination. Therefore, use relay_domains and relay_recipient_maps
> as explained in ADDRESS_CLASS_README and STANDARD_CONFIGURATION_README.

> Use virtual_alias_maps (NOT VIRTUAL ALIAS DOMAINS) to deliver that
> one user locally.
>
> jan(a)example.com jan(a)localhost
Everything works now.

But now i need some advice to make this server the primary mail server.

if i change the mx record to the new system, i get:
'mail loops back to myself' errors.

now i need somethings like a relay_domain_transport_map

if i use
mailbox_transport = smtp:[old.example.com]
and
mailbox_transport_maps
i get an infinite loop for local delivery

perhaps the simply transport-file is the key for this problem?

can i simply add this in transport?

jan(a)example.com local
@example.com old.example.com

From: Wietse Venema on
jan(a)weitan.org:
[ Charset ISO-8859-1 unsupported, converting... ]
> Hi,
>
> > Do not list weitan.org in mydestination. It should be a relay
> > destination. Therefore, use relay_domains and relay_recipient_maps
> > as explained in ADDRESS_CLASS_README and STANDARD_CONFIGURATION_README.
>
> > Use virtual_alias_maps (NOT VIRTUAL ALIAS DOMAINS) to deliver that
> > one user locally.
> >
> > jan(a)example.com jan(a)localhost
> Everything works now.
>
> But now i need some advice to make this server the primary mail server.

This is a standard configuration. Use MX records to send mail to
Postfix, use transport_maps to sendmail to the "mailbox" machine.

http://www.postfix.org/STANDARD_CONFIGURATION_README.html

Look for mail gateway.

Wietse