Operating System - HP-UX
1752341 Members
5974 Online
108787 Solutions
New Discussion юеВ

Re: Unable to start sendmail due to permission issues

 
sysad4
Occasional Contributor

Unable to start sendmail due to permission issues

Hi Everyone,

 

I am having problems starting my sendmail.

 

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

For more information see /var/adm/syslog/mail.log

syslog contents:

 

# tail  /var/adm/syslog/mail.log
Sep 27 16:30:01  sendmail[18540]: NOQUEUE: SYSERR(root): /etc/mail/sendmail.cf: line 740: fileclass: cannot open '/etc/mail/sendmail.cw': World writable directory
Sep 27 16:31:00  sendmail[18554]: NOQUEUE: SYSERR(root): /etc/mail/sendmail.cf: line 740: fileclass: cannot open '/etc/mail/sendmail.cw': World writable directory

 

And my file permissions:

 

# ls -ld /etc/mail/sendmail.cw /etc/mail/ /etc/
dr-xr-xr-x  37 bin        bin           8192 Sep 27 11:10 /etc/
dr-xr-xr-x   2 root       sys           8192 Sep 27 10:14 /etc/mail/
-rwxr-xr-x   1 bin        bin            685 Mar 28  2012 /etc/mail/sendmail.cw

 

 

Would you guys know what could be the culprit here and how to have a permanent fix for this?

 

 

 

TIA

5 REPLIES 5
V. Nyga
Honored Contributor

Re: Unable to start sendmail due to permission issues

it says:
World writable directory
Have you already tried to open permissions for 'world'?
'chmod 777 /etc/mail/sendmail.cw'
maybe also:
'chmod 777 /etc/mail'
Just test it ...

V.
*** Say 'Thanks' with Kudos ***
sysad4
Occasional Contributor

Re: Unable to start sendmail due to permission issues

okay I was just able to solve it.

 

Now my problem is after successfully starting the sendmail service the mailx command just hangs

 

myserver:/# mailx -s "TEST" name@domainmail.com







(Interrupt -- one more to kill letter)
myserver:/#

Matti_Kurkela
Honored Contributor

Re: Unable to start sendmail due to permission issues

The mailx command is not hanging - it is waiting for you to type (or pipe in) the content of the mail message!

 

Type something, then press Control-D to send the message and end the mailx command.

MK
V. Nyga
Honored Contributor

Re: Unable to start sendmail due to permission issues

Sorry, never used that - have you checked the man-pages?
*** Say 'Thanks' with Kudos ***
sysad4
Occasional Contributor

Re: Unable to start sendmail due to permission issues

thanks sorry kinda new to sendmail