Hi again,

On Thu, Apr 30, 2015 at 08:05:25AM +1100, Jérôme Alet wrote:
>
> On Wed, Apr 29, 2015 at 06:12:45PM +0000, Viktor Dukhovni wrote:
> >
> > See http://www.postfix.org/ADDRESS_REWRITING_README.html
>
> I'll read this again then, and try to better understand it.

Thanks to a second reading of your link I think I've just found a
solution which, while not perfectly matching our original needs, may be
acceptable :

In Backend2's main.cf :

--- CUT ---
fallback_transport = relay:[Server1-IP]
local_recipient_maps =
--- CUT ---

In Backend2's virtual-ldap.cf (used in virtual_maps), I've modified the
LDAP filter to only return migrated users, instead of all users in our
LDAP tree.

No change on Server1 besides the transport map for each migrated user.

This way mails received on Server1 for non migrated users still go to
Backend1, but go to Backend2 for migrated users.

Whenever an user using Backend2 as his outgoing SMTP server sends an
email to a migrated user, the mail is locally delivered to Backend2
(uid found with the new LDAP filter)

Whenever an user using Backend2 as his outgoing SMTP server sends an
email to a non migrated user, the mail is first forwarded to Server1.

>From there, we should be able to continue.

Thanks again for your time and effort, bearing with me...

bye

--
Jérôme Alet - <jerome.a...@univ-nc.nc> - Direction du Système d'Information
      Université de la Nouvelle-Calédonie - BPR4 - 98851 NOUMEA CEDEX
   Tél : +687 290081                                  Fax : +687 254829

Reply via email to