[SUMMARY]sendmail8.8 and berkeley newdb db1.85

2007-12-25 11:48:00

thanks a lot .

I got several help mail , here it is:

-----------------------

>from Rudi Boerner

>owner must be root, no bin

thank Rudi Boerner . the aliases file surely owned by root

----------------------

>from Claus Assmann

>Make sure /etc and /etc/mail are only writable by root.

>sendmail is setuid root?

thank Claus Assmann. you hit the nail on the head.

---------------------

>from srau@nortom.com

>notice that at least in your email etc/mail/aliases and etc/mail/

>sendmail.pid don't begin with a /. Do a grep for etc in your

>sendmail.cf and make sure you have the full paths, starting with

>the /.

thank srau . they are surely begin with the /.

----------------------

>from Nadya Williams

>Do you have /etc/aliases, which is a link to /etc/mail/aliases ?

>I recall I had errors until I got the link set (sendmail 8.8.7)

thank Nadya Williams. but /etc/aliases doesn't have any use.

-----------------------

>and from Travis Choma

>if you got any answers throw them over here i got the exact same

>problem...

thank Travis Choma . you made me feel not alone.

at last I first put the related file/directory in following mode .

drwxr-xr-x root sys /etc

drwxr-xr-x bin mail /etc/mail

rw------- root other aliases

rw------- root other sendmail.pid

then , touched the aliases.db file , and ran newaliases command, then

sendmail deamon . all runs like a charm .

--------------

my original question:

Hi, gurus:

Recently I installed berkeley newdb db 1.85 , and sendmail8.8.8 with

berkeley newdb and ndbm defined.

But when I run _newaliases_ , it prompt :

newaliases: cannot open /etc/mail/aliases: Permission denied

I am running this command with root privilege and the file

/etc/mail/aliases is right there.

One day ago when I installed the sendmail with only ndbm

defined, all works just fine , the newaliases command got the

aliases.dir and aliases.pag dbm file.

And I also know the well-known bug about sendmail , that is you must

first

touch a aliases dbm file ( aliases.dir aliases.pag or aliases.db) , then

run the newaliases command to get the really db file . but this is not

my case.

Moreover , when I run the sendmail deamon with the command line :

sendmail -bd -q1h

i get such error messages :

NOQUEUE: SYSERR(root): hash map "Alias0": unsafe map file

etc/mail/aliases: Permission denied

Nov 20 18:23:05 testeam sendmail[360]: NOQUEUE: SYSERR(root): dbm map

"Alias0": unsafe map file /etc/mail/aliases: No such file or directory

Nov 20 18:23:05 testeam sendmail[359]: unable to write

etc/mail/sendmail.pid

The deamon is keep running , but you can't send mail.

I think the deamon even unable to write /etc/mail/sendmail.pid, it must

be some security issue take effect. but what's it ?

I will appriciate your help .

Comments

Got something to say?

You must be logged in to post a comment.