LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-22-2008, 02:49 PM   #1
dhupke
LQ Newbie
 
Registered: Jun 2007
Posts: 19

Rep: Reputation: 0
Sendmail will not start on Slackware 10.2


I'm unable to get sendmail started on my Slackware 10.2 box. Sendmail process was running, but now for some reason it's defunct.

Here's what I get when I try to start sendmail:

/etc/rc.d/rc.sendmail start

Starting sendmail MTA daemon: /usr/sbin/sendmail -L sm-mta -bd -q25m
451 4.0.0 /etc/mail/sendmail.cf: line 86: fileclass: cannot open '/etc/mail/loca l-host-names': Group writable directory
451 4.0.0 /etc/mail/sendmail.cf: line 585: fileclass: cannot open '/etc/mail/tru sted-users': Group writable directory
Starting sendmail MSP queue runner: /usr/sbin/sendmail -L sm-msp-queue -Ac -q25m

I've compared directory permissions to another Slackware box and everyhthing looks the same to me...

Any help would be appreciated.
 
Old 08-22-2008, 03:03 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
I've had a similar issue the other day, and even after
taking group-writeable away from /etc sendmail was still
giving the same error. I ended up with an upgradepkg --reinstall
which seemed to fix the complaints. Very odd. And that
was with Slack 12.1, btw, not 10.2 ...
 
Old 08-22-2008, 03:55 PM   #3
dhupke
LQ Newbie
 
Registered: Jun 2007
Posts: 19

Original Poster
Rep: Reputation: 0
After I posted this I realized that I was looking at the wrong box. The Slackware box I'm having trouble with is v.11.0, running Sendmail v.8.13.8.

Problem is, I'm a total Noobie and don't know the correct syntax of the command upgradepkg --reinstall ??? What is the location of the sendmail package that I need to upgrade if it was initially installed with Slackware 11?

thanks for any help.
 
Old 08-22-2008, 03:59 PM   #4
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
It would be on the CD1. But you may want to check for fixes online,
Slack11 is a tad old ... http://www.slackware.com/getslack

Find the closest mirror, go to patches, packages and grab anything
you know to have installed ...



Cheers,
Tink
 
Old 08-22-2008, 04:03 PM   #5
dhupke
LQ Newbie
 
Registered: Jun 2007
Posts: 19

Original Poster
Rep: Reputation: 0
when I run upgradepkg do I need to specify the old sendmail.tgz file or just the one I'm upgrading to?

thanks
 
Old 08-22-2008, 04:10 PM   #6
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
The latter ...

upgradepkg needs to be pointed at the file you want
to use for the upgrade-process.
 
Old 08-25-2008, 07:31 AM   #7
dhupke
LQ Newbie
 
Registered: Jun 2007
Posts: 19

Original Poster
Rep: Reputation: 0
That took care of the problem... Thanks a bunch.

Dave
 
Old 08-25-2008, 12:56 PM   #8
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Glad it fixed it - but I'd rather understand WHY this happens :}


Cheers,
Tink
 
Old 08-25-2008, 02:11 PM   #9
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
/etc/mail should be owned by root:root by default and it should have permissions 755 or -rwx-r-xr-x

The remaining default files should have these permissions:

Code:
-rw-r--r--  1 root root   486 May 13  2003 Makefile
-rw-r-----  1 root root     0 Jun  1  2002 access
-rw-r-----  1 root root   12K May  4  2003 access.db
-rw-r--r--  1 root root   701 May 14 06:16 aliases
-rw-r-----  1 root smmsp  12K May  4  2003 aliases.db
-rw-r--r--  1 root root     0 May  4  2003 domaintable
-rw-r-----  1 root root   12K May  4  2003 domaintable.db
-rw-r--r--  1 root root  5.5K Sep 30  2006 helpfile
-rw-r--r--  1 root root    45 May  4  2003 local-host-names
-rw-r--r--  1 root root     0 May  4  2003 mailertable
-rw-r-----  1 root root   12K May  4  2003 mailertable.db
-rw-r--r--  1 root root   57K Sep 17  2003 sendmail.cf
-rw-r--r--  1 root root   59K Sep 30  2006 sendmail.cf.new
-rw-r--r--  1 root root   728 Aug 24 23:10 statistics
-rw-r--r--  1 root root   38K Sep 17  2003 submit.cf
-rw-r--r--  1 root root   41K Sep 30  2006 submit.cf.new
-rw-r--r--  1 root root    63 May  4  2003 trusted-users
-rw-r--r--  1 root root     0 May  4  2003 virtusertable
-rw-r-----  1 root root   12K May  4  2003 virtusertable.db
I tested this by changing /etc/mail to 775 and got exact error described above, changed back to 755 and all was well. You may want to double check next this time occurs. The error to me indicates exactly what is described.

Now it's time to drop sendmail and install/configure Postfix instead
 
Old 08-25-2008, 03:27 PM   #10
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Well the thing is that on my system it made no difference. The perms
were as expected, and it kept swearing at me even after I had made
/etc have no perms for group. After a re-install the problem went
away, oddly enough.

But I second the postfix notion, it's much nicer to configure, and
far less cryptic in its errors :}
 
Old 08-25-2008, 03:28 PM   #11
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
Quote:
Originally Posted by Tinkster View Post
Well the thing is that on my system it made no difference. The perms
were as expected, and it kept swearing at me even after I had made
/etc have no perms for group. After a re-install the problem went
away, oddly enough.
Now's a good time to quit smoking crack!

Quote:
Originally Posted by Tinkster View Post
But I second the postfix notion, it's much nicer to configure, and
far less cryptic in its errors :}
Yes, yes it is.
 
Old 08-25-2008, 03:38 PM   #12
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Quote:
Originally Posted by trickykid View Post
Now's a good time to quit smoking crack! ;)
I gave that up when you were still shitting your nappies, kid ;D
 
Old 08-25-2008, 06:17 PM   #13
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,141

Rep: Reputation: 168Reputation: 168
This could be because sendmail checks all of the directories in that path, including "/". You should have the following permissions for the error to stop:
Code:
ls -ld / /etc /etc/mail
drwxr-xr-x 21 root root 4096 2008-08-06 06:26 /
drwxr-xr-x 63 root root 4096 2008-08-24 05:02 /etc
drwxr-xr-x  4 root root 4096 2008-08-16 12:03 /etc/mail
I've had that error before when an incorrectly packaged application made "/" 0775 instead of 0755.
 
Old 08-25-2008, 06:47 PM   #14
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Unnnf ... :D Should have checked that, huh ..
 
  


Reply



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
sendmail will not start unkie888 Linux - Software 1 03-31-2008 06:44 AM
couldn't able to start sendmail emailssent Linux - Networking 2 02-16-2005 09:07 AM
sendmail does not start sysxi Linux - Newbie 3 01-05-2004 12:38 PM
How to start with sendmail? rlc Linux - Software 6 03-09-2003 10:22 AM
Sendmail is so slow to start! echid Linux - Software 3 05-03-2002 04:58 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:32 PM.

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