Operating System - HP-UX
1834934 Members
2741 Online
110071 Solutions
New Discussion

Error with sendmail cannot open /etc/mail/sendmail.cw:

 
Santiago Flores
Advisor

Error with sendmail cannot open /etc/mail/sendmail.cw:

Hello.

I have two rp7400 with HP-UX 11.11 in Cluster.
I can use sendmail in the first server but in the second one i get the next error message:

cluster02:/etc->sendmail -v my_email@any.com

/etc/mail/sendmail.cf: line 0: WARNING: World writable directory /etc
/etc/mail/sendmail.cf: line 691: fileclass: cannot open /etc/mail/sendmail.cw: World writable directory

I looked for the process but it was not runnig, so i tryed to start it with the command
/sbin/init.d/sendmail start

But it does not start

Before this I compared the first node of the cluster file's

/etc/mail/sendmail.cf
/etc/mail/sendmail.cw

with the same files on the second node, i found differences only in the node name and the sendmail daemon process id .

Also I read the /var/admin/syslog/mail.log file and i found that the second node has had the same problem since it was installed.

I hope your answers

Thanks....
Santiago Flores
7 REPLIES 7
Steven E. Protter
Exalted Contributor

Re: Error with sendmail cannot open /etc/mail/sendmail.cw:

Can you upload the error message please.

What does /etc/nsswtich.conf file look at.

On the security standpoint, the directory /etc/mail should not be world writable.

There should be error messages in /var/admin/syslog/syslog.log when the sendmail daemon doesn't start, you should look there and post them up.

Same problem on both boxes means its probably related to network configuration.

Seeing the errors would really help in this case.

P
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
Uday_S_Ankolekar
Honored Contributor

Re: Error with sendmail cannot open /etc/mail/sendmail.cw:

Check the permission of /etc/mail directory and sendmail.* files in that directory.

Looks like a permission issue.
Match the permission on both the nodes on cluster

-USA..
Good Luck..
Santiago Flores
Advisor

Re: Error with sendmail cannot open /etc/mail/sendmail.cw:

THE ERROR MESSAGE IS

/etc/mail/sendmail.cf: line 0: WARNING: World writable directory /etc
/etc/mail/sendmail.cf: line 691: fileclass: cannot open /etc/mail/sendmail.cw: World writable directory

The /etc/mail/* files have the same permissions in both servers but one can run sendmail and the other cannot.
Santiago Flores
Jeff Schussele
Honored Contributor

Re: Error with sendmail cannot open /etc/mail/sendmail.cw:

Hi Santiago,


What the error is complaining about is the perms on /etc

/etc should be
dr-xr-xr-x (555) bin:bin

It's a security threat for /etc to be world writable as there's nothing in there that comman users need to write. It's all config type stuff that ONLY root should be able to write.

Suspect that if both systems have perms on /etc the same, then you have diff sendmail vers & the newer is the complainer.
Sendmail has been steadily hardening itself thru the years.

Rgds,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
W.C. Epperson
Trusted Contributor

Re: Error with sendmail cannot open /etc/mail/sendmail.cw:

Jeff is on the mark. This paranoia was built into sendmail as of version 8.9. It can be overridden with the DontBlameSendmail directive in sendmail.cf. See http://www.sendmail.org/tips/DontBlameSendmail.html
"I have great faith in fools; self-confidence, my friends call it." --Poe
Mark Greene_1
Honored Contributor

Re: Error with sendmail cannot open /etc/mail/sendmail.cw:

/etc/mail/sendmail.cw should have read-only permissions for owner, group, and all (444) and have both owner and group set to bin.

The /etc/mail directory should have read-execute permissions across the board (555), and also have both owner and group set to bin.

HTH
mark
the future will be a lot like now, only later
tliddle
New Member

Re: Error with sendmail cannot open /etc/mail/sendmail.cw:

I had the same problem and after looking at all of your replies, I was able to fix the error as /etc had the wrong permissions... dang sendmail... ;)

Thank you all for responding to the first request for help - it helped me to and I'm greatful for your assistance.

Have a wonderful day!

Tom
///FINS TO THE RIGHT///