From: (no name) (no email)
Date: Wed Feb 01 2006 - 05:01:39 EST
We are trying to configure Postfix create mailboxes for each user that are users on our Windows Active Directory.
So that when an email enters, if a user does not already have a mailbox, postfix (through LDAP) queries Active Directory to check if a user exists (using either "mail" attribute, or the sAMAccountName, or whatever you suggest) and then if user exists on AD, creates a mailbox on postfix.
All mail would reside on the Postfix server, and would NOT be relayed to an exchange server.
Adding another problem, our domain name: example.org does not match our active directory domain: schooldomain.local
Which is why we were looking at perhaps stripping the first part of the user account i.e. email to: would be queried against the sAMAccountName: or the mail attribute
We can successfully perform an LDAP bind against AD, but postfix reports "User unknown in local recipient table" (local_recipent_maps=aliases ldap/etc/ldap/ldapmaps.cf)
ldapmaps.cf attached
--------------------------------------
server_host = server1.schooldomain.local
server2.schooldomain.local
server3.schooldomain.local
server_port = 389
search_base = OU=StaffUsers,,dc=schooldomain,dc=LOCAL
query_filter = (mail=%s)
bind_dn = CN=PostfixBind,OU=Users,DC=schooldomain,DC=LOCAL
bind_pw = postfixpassword
version = 3
result_attribute = (mail)
--------------------------------------
Any help appreciated
James
|
|
|