Bug 56809 - /etc/mail/Makefile userdb.db target incorrect
/etc/mail/Makefile userdb.db target incorrect
Status: CLOSED RAWHIDE
Product: Red Hat Linux
Classification: Retired
Component: sendmail (Show other bugs)
7.2
i386 Linux
medium Severity medium
: ---
: ---
Assigned To: Florian La Roche
David Lawrence
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2001-11-27 22:59 EST by Randy Russell
Modified: 2007-04-18 12:38 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2001-11-27 23:00:02 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:


Attachments (Terms of Use)

  None (edit)
Description Randy Russell 2001-11-27 22:59:57 EST
Description of Problem:
/etc/mail/Makefile contains

userdb.db : userdb
        @makemap -f hash $@ < $<

This is incorrect:  userdb uses a btree, not a hash (see 
/usr/share/doc/sendmail/doc/op/op.ps, page 71 to confirm.)  Consequently,
the Makefile should read:

userdb.db : userdb
        @makemap -f btree $@ < $<

Building userdb.db incorrectly as a hash breaks sendmail:  outbound mail
will not work for any users, regardless of whether they are in userdb or
not.

Version-Release number of selected component (if applicable):


How Reproducible:
100 percent

Steps to Reproduce:
1.  cd /etc/mail 
2.  echo "baabaa:mailname  foofoo" > userdb
3.  make userdb.db
4.  service sendmail restart
5.  echo "heehee" | mail root
6.  tail /var/log/maillog

Actual Results:
Nov 27 22:58:43 localhost sendmail[2050]: fAS3whZ02050:
db_open(/etc/mail/userdb.db): Invalid argument
Nov 27 22:58:43 localhost sendmail[2050]: fAS3whZ02050: deferred:
udbexpand: Invalid argument

Expected Results:


Additional Information:
Comment 1 Florian La Roche 2001-12-07 15:47:06 EST
fixed in 8.11.6-4 or newer as part of rawhide.

Thanks,

Florian La Roche

Note You need to log in before you can comment on or make changes to this bug.