Simpler Navigation for Servers and Operating Systems - Please Update Your Bookmarks
Completed: a much simpler Servers and Operating Systems section of the Community. We combined many of the older boards, so you won't have to click through so many levels to get at the information you need. Check the consolidated boards here as many sub-forums are now single boards.
If you have bookmarked forums or discussion boards in Servers and Operating Systems, we suggest you check and update them as needed.
cancel
Showing results for 
Search instead for 
Did you mean: 

E-mail config in HP

DareDevil_1
Advisor

E-mail config in HP

hi,

am not able to start the sendmail server, getting the following error,

# /sbin/init.d/sendmail start
/etc/mail/sendmail.cf: line 698: fileclass: cannot open '/etc/mail/sendmail.cw': World writable directory
451 4.0.0 /etc/mail/sendmail.cf: line 698: fileclass: cannot open '/etc/mail/sendmail.cw': World writable directory

Please suggest.
11 REPLIES
F Verschuren
Esteemed Contributor

Re: E-mail config in HP

can you post :
cat /etc/mail/sendmail.cw
and please a atachment of /etc/mail/sendmail.cf

There is properly a tyo someware in one of them
F Verschuren
Esteemed Contributor

Re: E-mail config in HP

if sendmail.cw does not exist you can create one by:

echo localhost > /etc/mail/sendmail.cw
hostname >> /etc/mail/sendmail.cw
Richard Hepworth
Esteemed Contributor

Re: E-mail config in HP

Hi,

/etc/mail should have 555 perms otherwise sendmail won't start.

chmod 555 /etc/mail

regards,

Richard
DareDevil_1
Advisor

Re: E-mail config in HP

hi,

thanks a lot for all ur immeidiate response, /etc/mail has the perm 555.Attached the sendmail.cw and sendmail.cf files.
Richard Hepworth
Esteemed Contributor

Re: E-mail config in HP

Hi,

Can you post output of ls -la /etc/mail and ls -ld /var

thanks

Richard
Dennis Handly
Acclaimed Contributor

Re: E-mail config in HP

>Attached the sendmail.cw and sendmail.cf files.

What are the permissions of these two files? They can't be group writable.
It seems that is the comment on line 698 of sendmail.cf.
DareDevil_1
Advisor

Re: E-mail config in HP

# ls -al /etc/mail
total 560
dr-xr-xr-x 2 bin bin 8192 Jan 17 2007 .
drwxrwxrwx 31 bin bin 8192 Dec 29 18:36 ..
-r-xr-xr-x 1 bin bin 879 Sep 3 2003 aliases
-r-xr-xr-x 1 bin bin 24576 Jan 12 2007 aliases.db
-r-xr-xr-x 1 bin bin 10221 Sep 3 2003 mailcap
-r-xr-xr-x 1 bin bin 100866 Dec 31 15:24 sendmail.cf
-r-xr-xr-x 1 bin bin 100804 Aug 16 2005 sendmail.cf.16aug05
-r-xr-xr-x 1 bin bin 703 Dec 31 15:22 sendmail.cw


# ls -ld /var
dr-xr-xr-x 28 bin bin 8192 Jun 1 2007 /var
F Verschuren
Esteemed Contributor

Re: E-mail config in HP

after the creation of sendmail.cw please do a
chmod 444 /etc/mail/sendmail.c*
after that sandmail wil run again....
Richard Hepworth
Esteemed Contributor

Re: E-mail config in HP

Your problem is because /etc has 777 permissions. try setting it back to default:

chmod 555 /etc

regards,

Richard
Steven E. Protter
Exalted Contributor

Re: E-mail config in HP

Shalom,

Its definitely the directory permissions. Also the file /etc/mail/sendmail.cw needs to be readable at the least.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
DareDevil_1
Advisor

Re: E-mail config in HP

hi,

thanks a lot for all ur suggestions. changing the permission of /etc to 555 worked.