LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 03-09-2011, 09:13 AM   #1
ramecare
Member
 
Registered: Feb 2011
Posts: 179

Rep: Reputation: 0
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.
 
Old 03-09-2011, 11:19 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,224
Blog Entries: 1

Rep: Reputation: 2076Reputation: 2076Reputation: 2076Reputation: 2076Reputation: 2076Reputation: 2076Reputation: 2076Reputation: 2076Reputation: 2076Reputation: 2076Reputation: 2076
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
 
Old 03-10-2011, 12:23 AM   #3
ramecare
Member
 
Registered: Feb 2011
Posts: 179

Original Poster
Rep: Reputation: 0
l checked but still iam getting the same above error
 
Old 03-10-2011, 12:56 AM   #4
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,224
Blog Entries: 1

Rep: Reputation: 2076Reputation: 2076Reputation: 2076Reputation: 2076Reputation: 2076Reputation: 2076Reputation: 2076Reputation: 2076Reputation: 2076Reputation: 2076Reputation: 2076
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.
Old 03-10-2011, 03:15 AM   #5
Jenish_uk
LQ Newbie
 
Registered: Oct 2010
Posts: 25

Rep: Reputation: 0
I think you should upgrade to Postfix mail server is possible.

Cheers,
Jenish
 
Old 03-10-2011, 04:48 AM   #6
Noway2
Senior Member
 
Registered: Jul 2007
Distribution: Gentoo
Posts: 2,125

Rep: Reputation: 781Reputation: 781Reputation: 781Reputation: 781Reputation: 781Reputation: 781Reputation: 781
@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.
 
Old 03-10-2011, 11:48 PM   #7
ramecare
Member
 
Registered: Feb 2011
Posts: 179

Original Poster
Rep: Reputation: 0
[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 ~]#
 
Old 03-11-2011, 12:13 AM   #8
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,224
Blog Entries: 1

Rep: Reputation: 2076Reputation: 2076Reputation: 2076Reputation: 2076Reputation: 2076Reputation: 2076Reputation: 2076Reputation: 2076Reputation: 2076Reputation: 2076Reputation: 2076
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:
Code:
chmod 755 /
to fix it.

Cheers
 
Old 03-11-2011, 10:49 PM   #9
ramecare
Member
 
Registered: Feb 2011
Posts: 179

Original Poster
Rep: Reputation: 0
Problem solved,Thank u very much for helping me.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
mail server migration: howto deliver locally AND forward mail to new server pedrobl Linux - Server 1 01-21-2011 11:12 PM
mail server problem newbiebd Linux - Server 4 09-05-2008 04:45 AM
Mail server problem bit128_linux Linux - Software 5 12-23-2005 03:38 AM
problem receiving pop3 mail from postfix mail server GEN_Electric Linux - Software 2 02-14-2005 02:43 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 12:31 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration