Quoting wie...@porcupine.org:

Per olof Ljungmark:
Hi all,

Hopefully I can explain this good enough for someone to understand and
perhaps even suggest a solution.

Our email system is built from a LDAP directory that contains all the
necessary information about our users. A box receives mail from the MX's
and routes it according to the information in the directory.

If the mail is for a user present in the directory it gets delivered to
the mail server, if it is for an external address it is delivered to the
outgoing box etc., everything dandy.

Now we face a setup where we have users present in the same tree as our
normal mail users, but with addresses external to us. They must have the
"mail" attribute that we normally use for delivery to our mail server.
We cannot separate them to a different tree because it is actually a mix
of internal and external users for a different purpose than mail routing.

Use a transport map.

    internalu...@example.com -> internal delivery agent or internal host
    externalu...@example.com -> external host

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

        Wietse

Yes, but the problem seems to be that the address is rewritten to uid@mail.server before the transport maps comes into play.

When em...@example.com is rewritten to userID@mail.server we would have to have one transport switch for each user that need the special treatment. However, there are several solutions I've been thinking of that I did not try yet, one would be to move the rewriting to the mail server, another is clever LDAP filters.

//per

Reply via email to