I have Debian 5 box (Lenny) with configured sendmail and LDAP_routing feature. This box is placed between Internet and my final mail server (MS Exchange). LDAP_route feture was used to validate recipients addresses against Exchange server and bounce messages sended to non-existing users. All have worked fine until I have updated this box to Debian 7 (Wheezy).
Now running "sendmail -bt" and issuing command "/map ldapmra [email protected]" returns:
ADDRESS TEST MODE (ruleset 3 NOT automatically invoked)
Enter <ruleset> <address>
> /map ldapmra [email protected]
map_lookup: ldapmra ([email protected]) Error getting LDAP results in map ldapmra: Operations error
no match (75)
while previously it returned (for valid address)
ADDRESS TEST MODE (ruleset 3 NOT automatically invoked)
Enter <ruleset> <address>
> /map ldapmra [email protected]
map_lookup: ldapmra ([email protected]) returns [email protected] (0)
or (for invalid address)
> /map ldapmra [email protected]
map_lookup: ldapmra ([email protected]) no match (68)
In my sendmail.mc file I have following lines:
FEATURE(`ldap_routing',, `ldap -1 -T<TMPF> -v mail -k proxyAddresses=SMTP:%0', `bounce')dnl
LDAPROUTE_DOMAIN(`mydomain.com')dnl
define(`confLDAP_DEFAULT_SPEC', `-p 389 -h "myexchangeserver.mydomain.com" -d "CN=sendmail,CN=Users,DC=mydomain,DC=com" -M simple -P /etc/mail/ldap-secret -b "DC=mydomain,DC=com"')dnl
(to compile this file I have to replace new ldap_routing.m4 file (from sendmail 8.14.4) with version from old system (from sendmail 8.14.3)
What is wrong with my system? How can I restore previous behavior?
Any sugestions will be apreciated.
echo "/map ldapmra [email protected]" | sendmail -d38.20 -bt