Unable to start sendmail due to permission issues (533 Views)
Reply
Occasional Contributor
Posts: 4
Registered: ‎07-04-2011
Message 1 of 6 (533 Views)

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

Honored Contributor
Posts: 4,874
Registered: ‎09-20-2002
Message 2 of 6 (523 Views)

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 ***
Occasional Contributor
Posts: 4
Registered: ‎07-04-2011
Message 3 of 6 (522 Views)

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:/#

Honored Contributor
Posts: 6,271
Registered: ‎12-02-2001
Message 4 of 6 (518 Views)

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
Honored Contributor
Posts: 4,874
Registered: ‎09-20-2002
Message 5 of 6 (517 Views)

Re: Unable to start sendmail due to permission issues

Sorry, never used that - have you checked the man-pages?
*** Say 'Thanks' with Kudos ***
Occasional Contributor
Posts: 4
Registered: ‎07-04-2011
Message 6 of 6 (514 Views)

Re: Unable to start sendmail due to permission issues

thanks sorry kinda new to sendmail

The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation.