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 01-05-2004, 11:39 AM   #1
sysxi
LQ Newbie
 
Registered: Jan 2004
Distribution: Redhat Fedora / Solaris 10
Posts: 25

Rep: Reputation: 15
Question sendmail does not start


Hello,

I am having troubles with sendmail which was working fine till my last reboot.

I am working on Red Hat Linux 8.0 3.2-7 with sendmail-8.12.5-7 rpm.

According the boot.log, sendmail is not starting :
Jan 5 17:10:10 localhost xinetd: xinetd startup succeeded
Jan 5 17:10:13 localhost sendmail:
Jan 5 17:10:13 localhost sendmail:
Jan 5 17:10:13 localhost sendmail: sendmail startup failed
Jan 5 17:10:13 localhost sendmail: sm-client startup succeeded

And in the processes list, I have the following line :

smmsp 664 1 0 17:10 ? 00:00:00 sendmail: Queue runner@01:00:00 for /var/spool/clientmqueue

In /var/spool/clientmqueue remains about 20 messages waiting to be sent.


When I try the below command, I get as follows :

[root@localhost /]# /usr/sbin/sendmail -bd -os
554 5.0.0 No local mailer defined
554 5.0.0 QueueDirectory (Q) option must be set
[root@localhost /]#


I do have a fair understanding about SMTP but I am new with sendmail.
And I am not sure about what is ok or not in the config files.
For instance my /etc/mail/sendmail.cf is empty. Is that normal ?
And my /etc/sysconfig/sendmail has only two lines :

DAEMON=yes
QUEUE=1h

I tried to asl about sendmail status as follows :
[root@localhost /]# /etc/rc.d/init.d/sendmail status
sendmail (pid 664) is running...
[root@localhost /]# /etc/rc.d/init.d/sendmail stop
Shutting down sendmail: [ OK ]
Shutting down sm-client: [FAILED]
[root@localhost /]# /etc/rc.d/init.d/sendmail start
Starting sendmail: 554 5.0.0 No local mailer defined
554 5.0.0 QueueDirectory (Q) option must be set
[FAILED]
Starting sm-client: [ OK ]

Any idea/teaching are welcome while I am checking the spartan sendmail.org's FAQ.

(and I can not use postfix or others...)

Thank you for the help.
 
Old 01-05-2004, 12:02 PM   #2
mrhyde
Member
 
Registered: Jul 2003
Location: Europe
Posts: 198

Rep: Reputation: 30
edit the "/etc/sysconfig/network" file and enter you hostname. then edit the "/etc/hosts" file to resolve that hostname to IP address. I am a qmail administrator but have some sendmail servers (inherited) on my clients sites, this is a problem with newly installed system that aren't in dns. With regard to teaching sendmail, this subject is way beyond the scope of this forum. Red Hat have some excellent documentation on their site on networking services configuration. Here is documentation from sendmail.org.
http://www.sendmail.org/m4/readme.html

Last edited by mrhyde; 01-05-2004 at 12:45 PM.
 
Old 01-05-2004, 12:24 PM   #3
stickman
Senior Member
 
Registered: Sep 2002
Location: Nashville, TN
Posts: 1,552

Rep: Reputation: 53
Re: sendmail does not start

Quote:
Originally posted by sysxi
For instance my /etc/mail/sendmail.cf is empty. Is that normal ?
And my /etc/sysconfig/sendmail has only two lines :
An empty CF file is not normal. What config changes were made before your last reboot that might impact the sendmail configuration?
 
Old 01-05-2004, 12:38 PM   #4
sysxi
LQ Newbie
 
Registered: Jan 2004
Distribution: Redhat Fedora / Solaris 10
Posts: 25

Original Poster
Rep: Reputation: 15
Thank you for both answers I received. Indeed, the sendmail.cf was not good (why? I don't know). However, we restored a previous version and it worked nice and smooth right after the new change.

Thank you again for the help.
 
  


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
couldn't able to start sendmail emailssent Linux - Networking 2 02-16-2005 09:07 AM
sendmail won't start, db error cvanbrederode Linux - Software 1 10-14-2004 03:04 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
How to start and stop sendmail? AMDPwred Linux - General 4 03-12-2002 11:48 AM

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

All times are GMT -5. The time now is 01:06 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