using OpenLDAP's ldapsearch, how to get mailaddresses from Exchange (at least the first 1000 entries.. AD has a searchlimit using ldap://) ldapsearch -H ldaps://:389/ -x -D -W \ -b proxyaddresses Someone found this via google btw, so go google for more rather than ask me :-)