Linux - Server This forum is for the discussion of Linux Software used in a server related context. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
03-09-2011, 09:13 AM
|
#1
|
Member
Registered: Feb 2011
Posts: 179
Rep:
|
Mail Server problem
Hello,
[root@itsupport ~]# service sendmail restart
Shutting down sm-client: [FAILED]
Shutting down sendmail: [FAILED]
Starting sendmail: 451 4.0.0 /etc/mail/sendmail.cf: line 91: fileclass: cannot open '/etc/mail/local-host-names': Group writable directory
451 4.0.0 /etc/mail/sendmail.cf: line 588: fileclass: cannot open '/etc/mail/trusted-users': Group writable directory
[FAILED]
Starting sm-client: /etc/mail/submit.cf: line 544: fileclass: cannot open '/etc/mail/trusted-users': Group writable directory
Iam getting this error while iam starting the sendmail service & also i have checked and changed the permission for the file /etc/mail/trusted-users,/etc/mail/sendmail.cf not working can any one give solution for this.
Thank you,
Ram kannan.
Last edited by ramecare; 03-09-2011 at 09:15 AM.
|
|
|
03-09-2011, 11:19 AM
|
#2
|
LQ Guru
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,224
|
Hi,
Make sure that /etc and /etc/mail directories are not group/world writable and the same goes for files under /etc/mail
If you don't want to change permissions you can have a look at the DontBlameSendmail option.
Regards
|
|
|
03-10-2011, 12:23 AM
|
#3
|
Member
Registered: Feb 2011
Posts: 179
Original Poster
Rep:
|
l checked but still iam getting the same above error
|
|
|
03-10-2011, 12:56 AM
|
#4
|
LQ Guru
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,224
|
Hi,
Could you post the output of:
Code:
ls -ld /
ls -ld /etc
ls -ld /etc/mail
ls -l /etc/mal
|
|
1 members found this post helpful.
|
03-10-2011, 03:15 AM
|
#5
|
LQ Newbie
Registered: Oct 2010
Posts: 25
Rep:
|
I think you should upgrade to Postfix mail server is possible.
Cheers,
Jenish
|
|
|
03-10-2011, 04:48 AM
|
#6
|
Senior Member
Registered: Jul 2007
Distribution: Gentoo
Posts: 2,125
|
@Jenish_UK, Postfix would be another option with its own advantages and disadvantages, however, it is not what the OP is asking about. The situation described suggests that there is a permissions problem that is preventing Sendmail from working. Learning from this experience, i.e. finding the problem and the resolution will be instructive to the OP in ways that go beyond the immediate problem.
Ramecare, please follow Bathory's advice and examine the output of those commands. If you do not see the problem as a result, please post the output.
|
|
|
03-10-2011, 11:48 PM
|
#7
|
Member
Registered: Feb 2011
Posts: 179
Original Poster
Rep:
|
[root@itsupport ~]# ls -ld /
drwxrwxr-x+ 29 root root 4096 Mar 11 09:24 /
[root@itsupport ~]# ls -ld /etc
drwxr-xr-x 110 root root 12288 Mar 11 09:25 /etc
[root@itsupport ~]# ls -ld /etc/mail
drwxr-xr-x 2 root root 4096 Mar 9 19:45 /etc/mail
[root@itsupport ~]# ls -l /etc/mail
total 264
-rw-r--r-- 1 root root 355 Mar 15 2007 access
-rw-r----- 1 root root 12288 Mar 9 18:37 access.db
-rwxrwxrwx 1 root root 354 Mar 9 18:36 access.rpmsave
-rw-r--r-- 1 root root 0 Mar 15 2007 domaintable
-rw-r----- 1 root root 12288 Mar 9 18:37 domaintable.db
-rw-r--r-- 1 root root 5521 Mar 15 2007 helpfile
-rw-r--r-- 1 root root 64 Mar 15 2007 local-host-names
-rwxrwxrwx 1 root root 64 Mar 9 18:36 local-host-names.rpmsave
-rw-r--r-- 1 root root 0 Mar 15 2007 mailertable
-rw-r----- 1 root root 12288 Mar 9 18:37 mailertable.db
-rw-r--r-- 1 root root 1048 Mar 15 2007 Makefile
-rwxrwxrwx 1 root root 0 Mar 9 18:35 relay-domains
-rw-r--r-- 1 root root 58194 Mar 9 18:37 sendmail.cf
-rwxrwxrwx 1 root root 58160 Mar 9 18:30 sendmail.cf.rpmsave
-rw-r--r-- 1 root root 7209 Mar 15 2007 sendmail.mc
-rwxrwxrwx 1 root root 7215 Mar 9 18:08 sendmail.mc.rpmsave
-r--r--r-- 1 root root 41275 Mar 15 2007 submit.cf
-rw-r--r-- 1 root root 940 Mar 15 2007 submit.mc
-rw-r--r-- 1 root root 127 Mar 15 2007 trusted-users
-rw-r--r-- 1 root root 0 Mar 15 2007 virtusertable
-rw-r----- 1 root root 12288 Mar 9 18:37 virtusertable.db
-rwxrwxrwx 1 root root 1 Mar 9 18:35 virtusertable.rpmsave
[root@itsupport ~]#
|
|
|
03-11-2011, 12:13 AM
|
#8
|
LQ Guru
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,224
|
Quote:
[root@itsupport ~]# ls -ld /
drwxrwxr-x+ 29 root root 4096 Mar 11 09:24 /
[root@itsupport ~]# ls -ld /etc
drwxr-xr-x 110 root root 12288 Mar 11 09:25 /etc
[root@itsupport ~]# ls -ld /etc/mail
drwxr-xr-x 2 root root 4096 Mar 9 19:45 /etc/mail
|
So it's / that has wrong permissions. Run:
to fix it.
Cheers
|
|
|
03-11-2011, 10:49 PM
|
#9
|
Member
Registered: Feb 2011
Posts: 179
Original Poster
Rep:
|
Problem solved,Thank u very much for helping me.
|
|
|
All times are GMT -5. The time now is 12:31 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|