*BSD News Article 46168


Return to BSD News archive

Path: sserve!newshost.anu.edu.au!harbinger.cc.monash.edu.au!simtel!news.sprintlink.net!howland.reston.ans.net!xlink.net!zib-berlin.de!news.tu-chemnitz.de!irz401!uriah.heep!bonnie.heep!not-for-mail
From: j@bonnie.heep.sax.de (J Wunsch)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: Sendmail and User Database (UDB)
Date: 29 Jun 1995 12:07:15 +0200
Organization: Private U**x site, Dresden.
Lines: 47
Message-ID: <3stu0j$b2p@bonnie.tcd-dresden.de>
References: <3sr5pa$jo6@gandalf.pic.net>
Reply-To: joerg_wunsch@uriah.heep.sax.de
NNTP-Posting-Host: 192.109.108.139
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit

<mglaris@pic.net> wrote:

>I have recompiled sendmail (v 8.6.9) under FreeBSD v2.0.  The flags
>for activating the user database option were set in conf.h.  In my
>sendmail.cf file, i have set the OU option to:
>
>OU /etc/spwd.db
>
>the file /etc/spwd.db was created by the program pwd_mkdb.  When I
>run sendmail, i get the following message in my maillog file:
>
>dbopen(/etc/spwd.db): Inappropriate file type of format
...
>Apparently, the sendmail parogram will use a user database for user 
>authentication.

Apparently, the sendmail program will not use a user database for user
authentication (and i cannot think of any occasion where it would even
perform user authentication itself).  This is from
/usr/src/usr.sbin/sendmail/cf/README:


+--------------------------------+
| USING USERDB TO MAP FULL NAMES |
+--------------------------------+

The user database was not originally intended for mapping full names
to login names (e.g., Eric.Allman => eric), but some people are using
it that way.  (I would recommend that you set up aliases for this
purpose instead -- since you can specify multiple alias files, this
is fairly easy.)  The intent was to locate the default maildrop at
a site, but allow you to override this by sending to a specific host.

If you decide to set up the user database in this fashion, it is
imperative that you also specify FEATURE(notsticky) -- otherwise,
e-mail sent to Full.Name@local.host.name will be rejected.

To build the internal form of the user databae, use:

        makemap btree /usr/data/base.db < /usr/data/base.txt


-- 
cheers, J"org                      private:   joerg_wunsch@uriah.heep.sax.de
                                   http://www.sax.de/~joerg/

Never trust an operating system you don't have sources for. ;-)