|
Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com |
From: Jevos, Peter (Peter.Jevos
oriflame.com)
Date: Tue Apr 08 2008 - 03:13:20 CDT
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hi ,
I'm new in the LDAP lookup queries and I'm quite confused with all these
attributes and staff like that.
My postfix works like gateway and it forwards emails to MS Exchange so i
have to do LDAP lookup to our MS domain controller
I've prepared my relay-recipents.cf file and it seems good and
meaningful
#cat relay-recipients.cf
server_host = dc.example.com
server_port = 3268
search_base = dc=example dc=com
query_filter = proxyaddresses = smtp:%s
result_attribute = mail
scope = sub
bind_dn = CN=my_user,OU=Global,OU=Recipients,DC=domain,DC=com
bind_pw = my_password
when I do :
postmap -q my_address
domain.com ldap:/etc/postfix/relay-recipients.cf
postmap: warning: dict_ldap_lookup: Search error -7: Bad search filter
I tried to use Chris Covington's script from
http://www-personal.umich.edu/~malth/gaptuning/postfix/
With these credentials:
$dc1="dc.example.com ";
# Enter the LDAP container for your userbase.
$hqbase="DC=domain,DC=com";
# Enter the username & password for a valid user in your Active
Directory
$user="CN=my_user,OU=Global,OU=Recipients,DC=domain,DC=com";
$passwd="my_pwd";
And it returned pretty nice list of proxyaddresses. ( but I can't use
this script in our environmnet )
So How can I use these values into my relay-recipients.cf file ?
Thx
Br
pet
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]