Mon 30 Apr 2012
Fix ldap_route `null’ in sendmail 8.14.4
Posted by lynxman under devops, Linux, ops, ubuntu
No Comments
I’ve got a sendmail setup with ldap_routing, it’s very convenient if you’ve got a distributed sendmail environment, in my case I’ve just got ldap_routing for mail hosts and not for addresses, so it’s expressed in the following form in sendmail.mc:
FEATURE(`ldap_routing',`ldap -T<TMPF> -k (mailacceptinggeneralid=%0) -v maildrophost',`null',`')dnl
When upgrading my sendmail platform to the new Ubuntu 12.04 LTS (Precise Pangolin) I’ve found the following error:
readcf: config K line, map ldapmra: no map class
This is due to a change in behaviour in ldap_routing.m4 in 8.14.4, it’ll try to automatically add -T<TMPF> which breaks the special `null’ behaviour.
The way recommended to fix this is to replace ldap_routing.m4 with the version from 8.14.3 which is available here.
In my case (Ubuntu) I just had to replace the file located at /usr/share/sendmail/cf/feature/ldap_routing.m4, then process sendmail.mc again and everything went back to normal :)