Operating System - HP-UX
1827237 Members
2348 Online
109716 Solutions
New Discussion

Re: sendmail daemon startup problems

 
SOLVED
Go to solution
jpcast_real
Regular Advisor

sendmail daemon startup problems


Hello ,

Recently I have installed the most recent sendmail patch in my hp-ux 11.11 server . I do not know if this has been the cause of the problem but sendmails fails during the startup .


Here is the error I get....
Can you help me ????

Thanks in advance


Dartanan:/root> /sbin/init.d/sendmail start
/etc/mail/sendmail.cf: line 0: cannot open: Permission denied
451 /etc/mail/sendmail.cf: line 0: cannot open: Permission denied
Dartanan:/root> ll -d /etc/mail
drwxrw-rw- 2 bin bin 8192 Sep 6 14:49 /etc/mail
Dartanan:/root> ll /etc/mail
total 320
-rw-r--r-- 1 root bin 907 Feb 20 2004 aliases
-rw-r--r-- 1 root bin 24576 Jul 27 17:26 aliases.db
-rw-r--r-- 1 bin bin 10222 Nov 14 2000 mailcap
-rwxrwxrwx 1 bin bin 94289 May 12 17:48 sendmail.cf
-rw-r--r-- 1 bin bin 703 Jan 27 2004 sendmail.cw
-rw-r--r-- 1 bin bin 1012 Nov 14 2000 service.switch


# PHNE_29774 1.0 sendmail(1m) 8.9.3 patch
Here rests one who was not what he wanted and didn't want what he was
9 REPLIES 9
Geoff Wild
Honored Contributor

Re: sendmail daemon startup problems

sendmail.cf should be 644

Also, are the contents okay?

Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
jpcast_real
Regular Advisor

Re: sendmail daemon startup problems

I have tried with several permissions combinations but it seems that the error is not there.

Dartanan:/etc/mail> ll
total 320
-rw-r--r-- 1 root bin 907 Feb 20 2004 aliases
-rw-r--r-- 1 root bin 24576 Jul 27 17:26 aliases.db
-rw-r--r-- 1 bin bin 10222 Nov 14 2000 mailcap
-rw-r--r-- 1 bin bin 94289 May 12 17:48 sendmail.cf
-rw-r--r-- 1 bin bin 703 Jan 27 2004 sendmail.cw
-rw-r--r-- 1 bin bin 1012 Nov 14 2000 service.switch
Dartanan:/etc/mail> /sbin/init.d/sendmail start
/etc/mail/sendmail.cf: line 0: cannot open: Permission denied
451 /etc/mail/sendmail.cf: line 0: cannot open: Permission denied
Dartanan:/etc/mail>
Here rests one who was not what he wanted and didn't want what he was
Muthukumar_5
Honored Contributor

Re: sendmail daemon startup problems

Check the /sbin/init.d/sendmail script with debugging mode by inserting in the script of "
set -x"

Try to check the contents of sendmail.cf file.
Give the error with debub informations and sendmail.cf file inforamtions.
Easy to suggest when don't know about the problem!
jpcast_real
Regular Advisor

Re: sendmail daemon startup problems

I did it at the begining and the problem occurs when the newaliases command is executed .
Here rests one who was not what he wanted and didn't want what he was
john korterman
Honored Contributor
jpcast_real
Regular Advisor

Re: sendmail daemon startup problems

The answer is the same:


Dartanan:/etc/mail> /sbin/init.d/sendmail start
/etc/mail/sendmail.cf: line 691: fileclass: cannot open /etc/mail/sendmail.cw: World writa
ble directory
451 /etc/mail/sendmail.cf: line 691: fileclass: cannot open /etc/mail/sendmail.cw: World w
ritable directory
Dartanan:/etc/mail> ll /etc/mail
total 480
-rw-r--r-- 1 root bin 907 Feb 20 2004 aliases
-rw-r--r-- 1 root bin 907 Feb 20 2004 aliases.old
-rw-r--r-- 1 bin bin 10222 Nov 14 2000 mailcap
-rw-r--r-- 1 bin bin 94333 May 12 17:49 sendmail.cf
-rw-r--r-- 1 bin bin 94289 May 12 17:48 sendmail.cf.old
-rwxrwxrwx 1 bin bin 703 Jan 27 2004 sendmail.cw
-rw-r--r-- 1 bin bin 1012 Nov 14 2000 service.switch
Dartanan:/etc/mail> ll -d /etc/mail
drwxr-xr-x 2 bin bin 8192 Sep 6 17:53 /etc/mail
Here rests one who was not what he wanted and didn't want what he was
john korterman
Honored Contributor
Solution

Re: sendmail daemon startup problems

hi,
it says that there is a word writable directory, it could parhaps also be /etc. Please check the dirs.

regards,
John K.
it would be nice if you always got a second chance
jpcast_real
Regular Advisor

Re: sendmail daemon startup problems

thanks everyone for the help. Sometimes you are too near the trees to see the forest .

/etc permissions were wrong . I tried to change /etc/mail directory permissions but I forgot looking at the /etc permissions.
Here rests one who was not what he wanted and didn't want what he was
Vijayasekar Rajsekar
Frequent Advisor

Re: sendmail daemon startup problems

I am having the same problem in HP-UX 11.2 as seen below:
root@triras1#/usr/sbin/newaliases
/etc/mail/sendmail.cf: line 698: fileclass: cannot open '/etc/mail/sendmail.cw': Group writable directory
WARNING: Group writable directory /

Directory listings:
root@triras1#ls -altr
total 352
-r--r--r-- 1 bin bin 100793 Sep 3 2003 sendmail.cf
-rw-r----- 1 bin bin 879 Sep 3 2003 aliases
-r--r--r-- 1 bin bin 10221 Sep 3 2003 mailcap
-rw-r----- 1 root mail 24576 Jun 27 2005 aliases.db
-r--r--r-- 1 bin bin 707 Jul 12 2005 sendmail.cw
dr-xr-xr-x 31 bin bin 8192 Jan 19 15:06 ..
drwxr-xr-x 2 root sys 8192 Jan 23 17:59 .
---------------------------------------------
root@triras1#cd /
root@triras1#ls -ld etc
dr-xr-xr-x 31 bin bin 8192 Jan 19 15:06 etc
root@triras1#ls -ld /etc
dr-xr-xr-x 31 bin bin 8192 Jan 19 15:06 /etc

Also how do I access the technical document S1100003137 in HP knowledge base? Pls. help