1828478 Members
2783 Online
109978 Solutions
New Discussion

sendmail troubles

 
SOLVED
Go to solution
Rick Garland
Honored Contributor

sendmail troubles

Hi all:

Fedora Core 3 is my OS.

I am trying to get sendmail up and running. I have set the DS relay and all but when I start sendmail (service sendmail start) it complains with the following;
[root@mysys mail]# service sendmail start
Starting sendmail: [ OK ]
Starting sm-client: /etc/mail/submit.cf: line 545: fileclass: cannot open '/etc/mail/trusted-users': Group writable directory
[FAILED]


Any ideas?
Thanks
9 REPLIES 9
Steven E. Protter
Exalted Contributor

Re: sendmail troubles

/etc/mail needs to not be world writable.

That is not the cause of the problem though.

You really don't need the sm-client at all. It doesn't do anything for you.

I'd take steps so it doesn't run.

service sendmail status

If its good, you are good.

sendmail -v -d8 -d38 someone@some.net

Type some text

.



Just to make sure the mail goes okay.

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
Rick Garland
Honored Contributor

Re: sendmail troubles

Gone through and checked all perms. No world write.

Have gone through sendmail.cf and commented the trusted-users and local-host-names. OK. The sm-client is not starting.

I can sendmail to myself. But not problem is the aliases. Says it is world write but I look and is not (both aliases and aliases.db).

URGGG...
Stuart Browne
Honored Contributor

Re: sendmail troubles

What are the permissions on the following two directories:

/etc
/etc/mail

Make sure neither of them are group-writeable.

Then make sure the file '/etc/mail/trusted-users' is also only 644 or 600.

That should clear that error up.

From my system:
drwxr-xr-x 100 root root 8192 May 7 09:38 /etc
drwxr-xr-x 3 root root 4096 May 5 18:31 /etc/mail
-rw-r--r-- 1 root root 127 Oct 29 2003 /etc/mail/trusted-users
One long-haired git at your service...
Gopi Sekar
Honored Contributor

Re: sendmail troubles


just to ensure nothing is missed, execute the following

chown -R root:root /etc/mail
chmod 644 /etc/mail/*
chmod 755 /etc/mail

Hope this helps,
Gopi
Never Never Never Giveup
Rick Garland
Honored Contributor

Re: sendmail troubles

Everything mentioned here has already been checked and is correct as stated.

More ideas, please?

Steven E. Protter
Exalted Contributor
Solution

Re: sendmail troubles

put set -x into the sm-client startup script.

start and stop sendmail

service sendmail restart

Collect and post/analyze the data.

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
Rick Garland
Honored Contributor

Re: sendmail troubles

It appears that the issue has been resolved.

One message that was appearing is that the / is world writable. I didn't put much stock in this message because I didn't change the / permissions and this is the permissions of the default install. (Fedora Core 3)

To be honest I was somewhat heistant to make that change. I did make the change, from the / directory I did "chmod 755 .."

The sendmail stuff seems to work now.

Will this cause me some grief? Now or later?

Steven E. Protter
Exalted Contributor

Re: sendmail troubles

FC 3 ships very secure. There should not be permission issues on / directory.

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
Rick Garland
Honored Contributor

Re: sendmail troubles

I will download new iso images.
Mine are setting incorrect perms

Thanks!