OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
Re: virtual users in two different servers

From: Magnus Bäck (magnusdsek.lth.se)
Date: Wed Apr 18 2007 - 15:40:52 CDT


On Wednesday, April 18, 2007 at 22:28 CEST,
     Camilo Echeverry <camilingmail.com> wrote:

> I'm using Postfix with OpenLDAP for a single domain in two servers.
> using virtual relay
>
> Currently I'm using a proxy (in a third server) to determine which
> server stores which mailbox
>
> The proxy looks for a ldap entry mailboxTransport attribute present in
> each user eg:
>
> mailTransport = smtp: server1.domain.com
>
> then redirects the mail to the corresponding server
>
> I want to know if there is a way to suppress this proxy.

Make the domain a relay domain on the gateway server and use the
transport table to selectively route users to different servers. Don't
forget to implement recipient validation via relay_recipient_maps.

http://www.postfix.org/postconf.5.html#transport_maps
http://www.postfix.org/transport.5.html
http://www.postfix.org/ldap_table.5.html

An alternative is to use virtual aliasing to rewrite each recipient
address to the name of the server that hosts that user.

> tried to use the same transport schema but receive this error:
> status=bounced (mail for 200.115.102.161 loops back to myself)

More information is needed to diagnose the error. DEBUG_README
contains instructions on how to provide good error reports.

http://www.postfix.org/DEBUG_README.html#mail

[...]

--
Magnus Bäck
magnusdsek.lth.se