Am 17.08.2013 18:49, schrieb Robert Schetterer via postfix-users:
gugg mal

http://o-o-s.de/2007-04-30/postfix-ldap-abfragen-gegen-das-windows-2003-active-directory
Die Python Variante von dem Skript hat funktioniert.
http://www.lanbugs.de/howtos/linux/python-version-von-getadsmtp-pl/


Mittlerweile klappt es auch mit ldapsearch
ldapsearch -LLL -H ldap://gc1.example.local:3268,ldap://gc2.example.com:3268 -E pr=1000/noprompt -b 'dc=example,dc=local' -D 'EXAMPLE\Username' -w 'YourSecretPassword' "(& (mailnickname=*) (| (&(objectCategory=person)(objectClass=user)(!(homeMDB=*))(!(msExchHomeServerName=*)))(&(objectCategory=person)(objectClass=user)(|(homeMDB=*)(msExchHomeServerName=*)))(&(objectCategory=person)(objectClass=contact))(objectCategory=group)(objectCategory=publicFolder)(objectClass=msExchDynamicDistributionList) ))" |grep "mail:"| tr "[A-Z]" "[a-z]" | awk -F" " '{/^mail:/; print $2," OK";}' > /etc/postfix/relay_recipients_exchange


Grüße,
Thomas Antony
_______________________________________________
postfix-users mailing list
[email protected]
http://de.postfix.org/cgi-bin/mailman/listinfo/postfix-users

Antwort per Email an