Red Hat Bugzilla – Bug 119297
Bad: sendmail -bv root segfaults when sendmail uses aliases from LDAP
Last modified: 2007-11-30 17:07:01 EST
From Bugzilla Helper:
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; .NET
Description of problem:
Sendmail cannot use alias from LDAP, when the sendmail.cf file
uses ldap -k in AliasFile. The identical sendmail.cf under redhat9
with sendmail-8.12.8 performs ldap alias lookups without problems.
Digging into the problem, it appears that if sendmail is built
again libsasl and not libsasl2, the problem goes away.
Also -DSASL was specified instead of -DSASL=2
There seems to be some bug in libsasl2 that prevents ldap lookups.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Edit you sendmail.cf AliasFile to read aliases from LDAP.ie.
AliasFile=/etc/aliases,ldap: -k "(&(objectclass=mailRecipient)(cn=%
0))" -v mail
2. Restart sendmail.
3. Run sendmail -bv <ldapuser>. Segmentation fault occurs. sendmail -
bv email@example.com does not cause segfault.
4. This requires an ldap server of coruse.
Actual Results: Segmentation Fault.
Expected Results: firstname.lastname@example.org....deliverable: mail relay, host
mailhub.realhost.com, user User.Name@realhost.com
The problem is there in sendmail-8.12.10-1 (WS3)
but not in sendmail-8.12.8-4 (redhat9)
The difference seems to be that the WS3 version uses sasl2, and
When recompiled against sasl instead of sasl2 the problem goes away.
Pleas have a look at
This package will be in the next update.