Package: postfix-ldap
Version: 3.1.4-7
Severity: minor

Dear Maintainer,

when using `postmap -q m...@domain.tld ldap:lookupfile.cf` and lookupfile.cf is 
in the current directory the
settings inside are ignored and creates an error message saying that no 
connection to the ldap server on localhost
can be established (even when in that file an explicit `server_host` is 
specified):

```
postmap: warning: dict_ldap_connect: Unable to bind to server 
ldap://localhost:389 with dn empty or implicit: -1 (Can't contact LDAP server)
postmap: fatal: table ldap:ldap_relay_recipient_maps.cf: query error: Transport 
endpoint is not connected
```

The same command works as expected when a relative or absolute path is 
specified for the lookup file eg.:
 - ldap:./lookupfile.cf
 - ldap:../lookupfile.cf
 - ldap:/etc/postfix/lookupfile.cf

This pretends that there is an error in the lookup file but in reality postmap 
is just ignoring the settings.
So I suggest that this behaviour will be mentioned in the man pages or an 
appropriate warning is given when only 
the file name and no relative/absolute path is given. The current man pages 
only says for the paremter file_name:
`The name of the lookup table source file when rebuilding a database.`

Thanks in advance

-- System Information:
Debian Release: 9.0
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 4.9.0-3-amd64 (SMP w/1 CPU core)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages postfix-ldap depends on:
ii  libc6          2.24-11+deb9u1
ii  libldap-2.4-2  2.4.44+dfsg-5
ii  postfix        3.1.4-7

postfix-ldap recommends no packages.

postfix-ldap suggests no packages.

-- no debconf information

Reply via email to