2 msgRemote backup Postfix server
7 msgchose interface for outgoing mail
2 msgIllegal address syntax ... in MAIL command: <...
1 msgMail Infrastructure and Zertificon
1 msgsasl password
6 msgpostfix TLS (configuration/user) problem
7 msgVirtual Alias Domain
3 msgcopy of email
2 msgDNS Caching?
5 msgUsing mysql for mynetworks
5 msgBlocking e-mail from a domain, to a particular ...
5 msgprevent open relay
15 msgcannot get mail from outside to my smtp server

Error connecting Postfix to LDAP
\ Altino Sampaio (12 Mar 2008)
. \ Brian Evans (12 Mar 2008)
. \ Victor Duchovni (12 Mar 2008)
. . \ Altino Sampaio (12 Mar 2008)
. \ (Lou Picciano) (12 Mar 2008)
. . \ Victor Duchovni (12 Mar 2008)

5 msgConfig ok for TLS/SASL/Client Cert via port 587?
7 msgmail flow architecture
3 msgvirtual forward + deliver
1 msgRe: RESOLVED: Using Canonical Maps as an Overri...
14 msgdual mail server
3 msghow to specify different outgoing IP
Subject:Error connecting Postfix to LDAP
Group:Postfix-users
From:Altino Sampaio
Date:12 Mar 2008


 
Hello to all,

I need help, please!

I have instaled these packages on Ubuntu Server 6.06 (2.6.15-51-server), using command "apt-get":
- Postfix 2.4.5
- postfix-ldap 2.4.5
- slapd 2.2.26
- libldap-2.2-7 2.2.26

I built a file named accounts.cf, whith the contents:

bind_dn = cn=postfix,ou=servicos,ou=geral,dc=example,dc=com
bind_pw = secret
search_base = ou=email,dc=example,dc=com
domain = dc=example,dc=com
server_host = 127.0.0.1
server_port = 389
bind = yes
timeout = 20
version = 3
#query_filter = (|(mail=%s))
query_filter = (&(objectClass=CourierMailAccount)(mail=%s))
result_attribute = mail
scope= sub

I have LDAP service working because I can use it with other network services (for authentication)!
I also have a file "teste", with "user" text inside.

However, when I execute the command "postmap -q - ldap:accounts.cf < teste" (placed in directory /etc/postfix) I received this response:
"postmap: warning: dict_ldap_lookup: accounts.cf: Search base '' not found: 32: No such object"

It contacts LDAP service, but does not specificate any attribute (mail).

I tried another way, compiling and installing postfix from scratch. Nothing works.
It seems that postfix simply does not work with ldap.

Can someone help me out?


Really, I'm getting so frustrated that I'm considering install qmail!!!

Best regards,
Altino



© 2004-2008 readlist.com