Post edited 1:25 pm – April 25, 2011 by scott_the_musician
First things first – your site is outstanding! Like many others, I'm finding this comprehensive guide to be *very* well thought out, and easy to follow. I am certain that the directors (and users) at my workplace will feel the same way. Great stuff!
Secondly, I'm essentially having some trouble connecting my postfix and to my LDAP server. My LDAP system is running on Mac OS X Workgroup manager, and since this is built on OpenLDAP v3, I imagine it would be fairly straightforward.
Here's three areas that aren't functioning properly:
a) firstly, when I run
telnet localhost smtp
Connected to localhost.localdomain (127.0.0.1).
Escape character is '^]'.
…. and then it just sits there (i used to get the "220 mail.mycompany.com.au ESMTP Postfix" line, but not anymore. Typing commands does nothing, all i can do is quit Telnet.
b) telnet localhost imap
Trying 127.0.0.1…
Connected to localhost.localdomain (127.0.0.1).
Escape character is '^]'.
* OK Dovecot ready.
. login <network username> <network password>
. NO Authentication failed.
c) postmap -q user@mycompany.com.au ldap:/etc/postfix/ldap-users.cf
Segmentation Fault
–
I know that OpenDirectory is functioning fine on the server end (other Mac clients are bound to it).. and I am sure that my DNS + hosts are setup and functioning OK. If it helps, my mac clients have not needed any usernames/passwords to bind themselves to the OpenDirectory server in the past.
–
My /etc/postfix/ldap-users.cf looks like this:
server_host = fileserv.mycompany.com.au
search_base = dc=fileserv,dc=mycompany,dc=com,dc=au
version = 3
query_filter = (%(objectclass=person)(mail=%s))
result_attribute = uid
result_format = %s/Maildir/
(for the record, i've also tried result_attribute = UniqueID (- this is the name of the OSX OpenDirectory field – but to no avail. I've also tried adding CN=users to search_base).
–
/etc/dovecot-ldap.conf:
hosts = fileserv.mycompany.com.au
base = dc=fileserv,dc=mycompany,dc=com,dc=au
ldap_version = 3
pass_filter = (&(objectclass=person)(UniqueID=%u))
–
Any thoughts would be great?