LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   sendmail & /etc/mail/aliases (https://www.linuxquestions.org/questions/linux-software-2/sendmail-and-etc-mail-aliases-31166/)

adam_boz 09-25-2002 03:07 AM

sendmail & /etc/mail/aliases
 
Hi all. I have just compiled and installed sendmail. I am having problems running "sendmail -v -bi" (and newaliases, which I think is what that really means). I get this error:
Cannot rebuild aliases: no database format defined
Cannot create database for alias file /etc/mail/aliases

I have installed db, and it seems like that is working (if db has anything to do with it). Does anybody have any suggestions?

Thanks in advance

-Adam

ooh yeah... here's my /etc/mail/aliases file:

postmaster: root
MAILER-DAEMON: root

unSpawn 09-26-2002 12:54 PM

Did you know we have an LFS forum?
Did you include database formats when you built sendmail?

adam_boz 09-26-2002 06:36 PM

Yes, i know there is an lfs forum, but i figured this topic was general enough to be in the software section. I am not sure if I included the formats... here's how I built it (straight from the BLFS instructions)

cat > devtools/Site/site.config.m4 << "EOF"
define(`confMANGRP',`root')
define(`confMANOWN',`root')
define(`confSBINGRP',`root')
define(`confUBINGRP',`root')
define(`confUBINOWN',`root')
EOF
cd sendmail &&
sh Build &&
cd ../cf/cf &&
cp generic-linux.mc sendmail.mc &&
mkdir /etc/mail &&
sh Build sendmail.mc &&
sh Build install-cf &&
cd ../../ &&
sh Build install

I don't see anything about databases... Did i skip something?

unSpawn 09-27-2002 07:19 AM

Uhm, No, I mean, if you did build *sendmail* yourself, did you configure it to use one or more of the database types to use?
I haven't got LFS, and I didn't read its docs, but if you installed for instance db3 then in devtools/Site/site.config.m4 you could do:
APPENDDEF(`confINCDIRS',`-I/usr/include/db3')
define(`confMAPDEF', `-DNEWDB')

The sendmail docs at sendmail.org should also point at installing necessary database formats for use with sendmail.

adam_boz 09-27-2002 10:44 AM

Thanks unSpawn... I'll check that out. Usually when the instructions are complicated in LFS, i just kindof blindly follow them, with the hope of deciphering them later. Looks like this is one case where i have to decipher NOW.

ps- Maybe you're right.... you can move the thread to the lfs forum if you want.

unSpawn 09-27-2002 12:31 PM

Well, hope it gets you there... About moving, only moderators (mcleodnine or rshaw) or jeremy can do that. I'd suggest you start up a new thread in LFS when necessary.


All times are GMT -5. The time now is 04:51 AM.