Jump to content

Recommended Posts

sendmail not starting

 

decided to install sendmail on my fedora 9 so I can use a mail form.

 

here's what I did:

 

1. yum install sendmail sendmail-cf

 

[root@host etc]# service sendmail start

Starting sendmail: 451 4.0.0 /etc/mail/sendmail.cf: line 91: fileclass: cannot open '/etc/mail/local-host-names': World writable directory

451 4.0.0 /etc/mail/sendmail.cf: line 598: fileclass: cannot open '/etc/mail/trusted-users': World writable directory

[FAILED]

 

2.  [root@host etc]# chmod u=rwx,g=,o= /etc/mail/trusted-users

[root@host etc]# chmod u=rwx,g=,o= /etc/mail/local-host-names

 

[root@host etc]# service sendmail start

Starting sendmail: 451 4.0.0 /etc/mail/sendmail.cf: line 91: fileclass: cannot open '/etc/mail/local-host-names': World writable directory

451 4.0.0 /etc/mail/sendmail.cf: line 598: fileclass: cannot open '/etc/mail/trusted-users': World writable directory

                                                          [FAILED]

 

so,

 

[root@host mail]# ls -la

total 208

drwxr-xr-x   2 root root  4096 2008-09-19 12:06 .

drwxr-xr-x 137 root root 12288 2008-09-19 12:06 ..

-rw-r--r--   1 root root   469 2008-03-29 05:27 access

-rw-r-----   1 root root 12288 2008-09-19 12:06 access.db

-rw-r--r--   1 root root   233 2008-03-29 05:27 domaintable

-rw-r-----   1 root root 12288 2008-09-19 12:06 domaintable.db

-r--r--r--   1 root root  5584 2008-03-29 05:27 helpfile

-rwx------   1 root root    64 2008-03-29 05:27 local-host-names

-rw-r--r--   1 root root   997 2008-03-29 05:27 mailertable

-rw-r-----   1 root root 12288 2008-09-19 12:06 mailertable.db

-rw-r--r--   1 root root  1048 2008-03-29 05:27 Makefile

-rw-r--r--   1 root root 58624 2008-03-29 05:27 sendmail.cf

-rw-r--r--   1 root root  7205 2008-03-29 05:27 sendmail.mc

-r--r--r--   1 root root 41706 2008-03-29 05:27 submit.cf

-rw-r--r--   1 root root   941 2008-03-29 05:27 submit.mc

-rwx------   1 root root   127 2008-03-29 05:27 trusted-users

-rw-r--r--   1 root root  1847 2008-03-29 05:27 virtusertable

-rw-r-----   1 root root 12288 2008-09-19 12:06 virtusertable.db

[root@host mail]#

 

As you can see the error message is not true. those files are certainly NOT world writeable.

 

Help?

 

 

Link to comment
https://forums.phpfreaks.com/topic/124993-sendmail-error/
Share on other sites

I'd try:

 

chmod 644 /etc/mail/local-host-names

chmod 644 /etc/mail/trusted-users

 

-steve

 

P.S. I use postfix which I much prefer over sendmail.

 

 

I did

2.  [root@host etc]# chmod u=rwx,g=,o= /etc/mail/trusted-users

[root@host etc]# chmod u=rwx,g=,o= /etc/mail/local-host-names

 

would have thought that was the solution... but I guess postfix it is.

I love postfix, but this server is my development server, not my hosting one...  so I didn't wanna do that but oh well...

 

you would think that yum via livna it woulda just worked. go figure.

 

Link to comment
https://forums.phpfreaks.com/topic/124993-sendmail-error/#findComment-645985
Share on other sites

I'd try:

 

chmod 644 /etc/mail/local-host-names

chmod 644 /etc/mail/trusted-users

 

I did

2.  [root@host etc]# chmod u=rwx,g=,o= /etc/mail/trusted-users

[root@host etc]# chmod u=rwx,g=,o= /etc/mail/local-host-names

 

Not the same thing. It looks to me like sendmail can't read trusted-users or local-host-names as it might not be running as root or there could be selinux stuff going on.

 

-steve

Link to comment
https://forums.phpfreaks.com/topic/124993-sendmail-error/#findComment-646937
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.