Setting up a Postfix MTA to use ldap and I am getting an error when testing:

 

 

The  command and the results:

 

postmap -vq "EMAILADDRESS" ldap:/etc/postfix/ldap-aliases.cf

postmap: name_mask: all

postmap: inet_addr_local: configured 2 IPv4 addresses

postmap: inet_addr_local: configured 2 IPv6 addresses

postmap: dict_ldap_open: Using LDAP source /etc/postfix/ldap-aliases.cf

postmap: cfg_get_str: /etc/postfix/ldap-aliases.cf: server_host = LDAP
SERVER

postmap: cfg_get_int: /etc/postfix/ldap-aliases.cf: server_port = 389

postmap: cfg_get_int: /etc/postfix/ldap-aliases.cf: version = 3

postmap: cfg_get_str: /etc/postfix/ldap-aliases.cf: scope = sub

postmap: cfg_get_str: /etc/postfix/ldap-aliases.cf: search_base = "SEARCH
BASE"

postmap: cfg_get_int: /etc/postfix/ldap-aliases.cf: timeout = 10

postmap: cfg_get_str: /etc/postfix/ldap-aliases.cf: query_filter = (mail=%s)

postmap: cfg_get_str: /etc/postfix/ldap-aliases.cf: result_format = <NULL>

postmap: cfg_get_str: /etc/postfix/ldap-aliases.cf: result_filter = %s

postmap: cfg_get_str: /etc/postfix/ldap-aliases.cf: domain =

postmap: cfg_get_str: /etc/postfix/ldap-aliases.cf:
terminal_result_attribute =

postmap: cfg_get_str: /etc/postfix/ldap-aliases.cf: leaf_result_attribute =

postmap: cfg_get_str: /etc/postfix/ldap-aliases.cf: result_attribute =
maildrop

postmap: cfg_get_str: /etc/postfix/ldap-aliases.cf: special_result_attribute
=

postmap: cfg_get_str: /etc/postfix/ldap-aliases.cf: bind = yes

postmap: cfg_get_str: /etc/postfix/ldap-aliases.cf: bind_dn =

postmap: cfg_get_str: /etc/postfix/ldap-aliases.cf: bind_pw =

postmap: cfg_get_bool: /etc/postfix/ldap-aliases.cf: cache = off

postmap: cfg_get_int: /etc/postfix/ldap-aliases.cf: cache_expiry = -1

postmap: cfg_get_int: /etc/postfix/ldap-aliases.cf: cache_size = -1

postmap: cfg_get_int: /etc/postfix/ldap-aliases.cf: recursion_limit = 1000

postmap: cfg_get_int: /etc/postfix/ldap-aliases.cf: expansion_limit = 0

postmap: cfg_get_int: /etc/postfix/ldap-aliases.cf: size_limit = 0

postmap: cfg_get_int: /etc/postfix/ldap-aliases.cf: dereference = 0

postmap: cfg_get_bool: /etc/postfix/ldap-aliases.cf: chase_referrals = off

postmap: cfg_get_bool: /etc/postfix/ldap-aliases.cf: start_tls = off

postmap: cfg_get_bool: /etc/postfix/ldap-aliases.cf: tls_require_cert = off

postmap: cfg_get_str: /etc/postfix/ldap-aliases.cf: tls_ca_cert_file =

postmap: cfg_get_str: /etc/postfix/ldap-aliases.cf: tls_ca_cert_dir =

postmap: cfg_get_str: /etc/postfix/ldap-aliases.cf: tls_cert =

postmap: cfg_get_str: /etc/postfix/ldap-aliases.cf: tls_key =

postmap: cfg_get_str: /etc/postfix/ldap-aliases.cf: tls_random_file =

postmap: cfg_get_str: /etc/postfix/ldap-aliases.cf: tls_cipher_suite =

postmap: cfg_get_int: /etc/postfix/ldap-aliases.cf: debuglevel = 0

postmap: dict_open: ldap:/etc/postfix/ldap-aliases.cf

postmap: dict_ldap_lookup: In dict_ldap_lookup

postmap: dict_ldap_lookup: No existing connection for LDAP source
/etc/postfix/ldap-aliases.cf, reopening

postmap: dict_ldap_connect: Connecting to server ldap://LDAP SERVER

postmap: dict_ldap_connect: Actual Protocol version used is 3.

postmap: dict_ldap_connect: Binding to server ldap:// with dn empty or
implicit

postmap: dict_ldap_connect: Successful bind to server ldap://LDAP SERVER
with dn empty or implicit

postmap: dict_ldap_connect: Cached connection handle for LDAP source
/etc/postfix/ldap-aliases.cf

postmap: dict_ldap_lookup: /etc/postfix/ldap-aliases.cf: Searching with
filter (mail=EMAIL ADDRESS)

postmap: warning: dict_ldap_lookup: Search error 1: Operations error

postmap: fatal: table ldap:/etc/postfix/ldap-aliases.cf: query error:
Success

 

 

And the ldap-aliases.cf config:

 

server_host = SERVER NAME

#server_port = 389

search_base = "SEARCH BASE"

version = 3

#bind_dn = "cn=post fix ldap,LOCATION"

#bind_pw = ********

query_filter = (mail=%s)

#result_attribute = mail

#domain = DOMAIN NAME

debuglevel = 0

 

 

I did do an ldapsearch using the search base in the config as well as the
user and pass with success. This operations error is giving me very little
to work from. Is there something missing here or at least a way to get more
error info?

 

 

Thank you,

 

Josh Bonneville

Senior IT Administrator

Information Services | Purdue University Northwest

*:219-989-2043 | *:[email protected]

 

Attachment: smime.p7s
Description: S/MIME cryptographic signature

Reply via email to