Linux - NewbieThis 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
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.
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.
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 :
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.
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
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.