Package: postfix-ldap Version: 3.1.4-4 Severity: grave Justification: renders package unusable
Hi, I just upgraded one of my system from jessie to strech. This system was using postfix with ldap lookup table. >From /var/log/dpkg.log, postfix-ldap has been upgraded from 2.11.3-1 to 3.1.4-4 on 2017-04-06 I just discovered that, after the upgrade, ldap was not working anymore. I got in my log lots of such messages: Apr 7 16:22:01 chaman postfix/pickup[25203]: 9711A1FD73: uid=104 from=<logcheck> Apr 7 16:22:01 chaman postfix/cleanup[32362]: warning: ldap:/etc/postfix/ldap-canonical.cf is unavailable. unsupported dictionary type: ldap Apr 7 16:22:01 chaman postfix/cleanup[32362]: warning: ldap:/etc/postfix/ldap-canonical.cf lookup error for "XXX@YYY" Apr 7 16:22:01 chaman postfix/cleanup[32362]: warning: 9711A1FD73: canonical_maps map lookup problem for XXX@YYY -- message not accepted, try again later Apr 7 16:22:01 chaman postfix/pickup[25203]: warning: maildrop/3FACF20B26: error writing 9711A1FD73: queue file write error I manually fixes the problem by executing these commands: # . /usr/share/postfix/postinst.functions # delmap ldap # addmap ldap Etckeeper show me the differences: root@chaman:/etc# git diff diff --git a/postfix/dynamicmaps.cf b/postfix/dynamicmaps.cf index d953c54..c3bac41 100644 --- a/postfix/dynamicmaps.cf +++ b/postfix/dynamicmaps.cf @@ -4,4 +4,4 @@ #==== ================================ ============= ============ tcp /usr/lib/postfix/dict_tcp.so dict_tcp_open sqlite /usr/lib/postfix/dict_sqlite.so dict_sqlite_open -ldap /usr/lib/postfix/dict_ldap.so dict_ldap_open +ldap postfix-ldap.so dict_ldap_open => It seems that the postfix ldap plugin change its library name but the debian configure script does not fix it. Reinstalling the package (apt-get install --reinstall) or reconfiguring it (dpkg-reconfigure) do not help. As I read 'addmap', the dynamicmaps.cf file is not modified if 'ldap' is found in the first column (even if the next informations are now wrong). This bug needs to be fixed before the release, else postfix-ldap would be unusable for any upgraded system. Side note: it seems that this bug is larger. As shown before, my dynamicmaps.cf also have two other entries (tcp and sqlite) refering to non-existant files on my system: # ls /usr/lib/postfix/ configure-instance.sh libpostfix-dns.so libpostfix-master.so libpostfix-util.so postfix_groups.pl postfix-ldap.so.1.0.1 postfix-sqlite.so.1.0.1 libmilter.a libpostfix-global.so libpostfix-tls.so libxsasl.a postfix-ldap.so postfix-sqlite.so sbin /usr/lib/postfix/dict_sqlite.so should probably be replaced by postfix-sqlite.so but I've no clues for /usr/lib/postfix/dict_tcp.so... Regards Vincent -- System Information: Debian Release: 9.0 APT prefers stable-updates APT policy: (500, 'stable-updates'), (500, 'unstable'), (500, 'testing'), (200, 'stable'), (1, 'experimental') Architecture: amd64 (x86_64) Foreign Architectures: i386, armel, mipsel Kernel: Linux 4.7.0-1-amd64 (SMP w/8 CPU cores) Locale: LANG=fr_FR.utf8, LC_CTYPE=fr_FR.utf8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Init: systemd (via /run/systemd/system)