Tim Tyler wrote:
>
> Postfix users,
>
>   I see a number of examples on how to configure Postfix as a gateway
> for multiple domains.  However, I would like to configure Postfix for
> one domain that splits users to different smtp servers depending upon
> their ldap group.  Does anyone have an example of how I could split
> addresses coming into a domain to go out in multiple directions?
>
>   For Instance, If I have stud...@example.com
> <mailto:stud...@example.com> and st...@example.com
> <mailto:st...@example.com> I would like to validate their accounts
> against their ldap gidNumber field and then relay them to the
> appropriate mail server. 
>
>  
>
You want a a transport_maps lookup.
See http://www.postfix.org/ADDRESS_REWRITING_README.html#transport for
details.
(Also http://www.postfix.org/STANDARD_CONFIGURATION_README.html)

Since these have unique results, you should create another map file and
do not try to reuse another.

Note: using LDAP is certainly allowed, just make sure the source is
highly available.
Recommend a local, replicated LDAP server for such a purpose

You may wish to dump these to a hashed file via script if you do not
want to store the relay server in the LDAP.

Brian

Reply via email to