Solved

help sendmail stopped working

Posted on 2000-03-16
4
217 Views
Last Modified: 2010-03-18
Recently we had to run fcsk on one of your drives and now sendmail does not seem to want to run.

When i try to telnet to port 25 it says connection refused, when I try and get the status this is what I get:

students.canadorec.on.ca: [~/sendmail-8.9.3] {36} /etc/rc.d/init.d/sendmail status
sendmail dead but subsys locked

any ideas how to fix it or where to look, is there a log file somewhere?
0
Comment
Question by:tsingy
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
4 Comments
 

Expert Comment

by:owld
ID: 2626518
Just do it:
#rm /var/lock/subsys/sendmail
#rm /var/run/sendmail.pid
#/etc/rc.d/init.d/sendmail restart

Hope this help.
0
 
LVL 40

Expert Comment

by:jlevie
ID: 2626531
Why don't you just try runing sendmail from the command line and see what it complains about (and tell me what it says). Try "/usr/lib/sendmail -bd -q1h". Also you want to check the syslog messages in /var/log/messages for errors.
0
 
LVL 2

Accepted Solution

by:
mapc earned 200 total points
ID: 2631918
First check in /var/log/maillog (it's generally in linux)
Otherwise edit /etc/syslog.conf and add there:
mail.debug /var/log/maillog
touch /var/log/maillog
(or mail.info)
if it's solaris, then change log to adm.
Then kill -1 pid-of-syslog
After that try /etc/init.d/sendmail stop
/etc/init.d/sendmail start for solaris
of /etc/rc.d/init.d/sendmail stop
/etc/rc.d/init.d/sendmail start on linux like redhat.
Then, go back to /var/log/maillog and see what it says.
Perhaps some of the files is damaged.
It will give you some clue.
and, do what owld said, it doesn't hurt.
0
 
LVL 1

Expert Comment

by:Sokka
ID: 2646251
This could be due to file corruption:-

1. put ps aux to see the staus of the process(telnetd) SW S- Sleeping and W- swapped out
2. if telnetd daemon is not there just check mingetty are running
3.then try to restart the telnetd process
0

Featured Post

Are You Using the Best Web Development Editor?

The worlds of web hosting and web development are constantly evolving. Every year we see design trends change, coding standards adapt and new frameworks/CMS created. With such a quick pace of change it’s easy to get lost trying to keep up.

See if your editor made the list.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I have seen several blogs and forum entries elsewhere state that because NTFS volumes do not support linux ownership or permissions, they cannot be used for anonymous ftp upload through the vsftpd program.   IT can be done and here's how to get i…
Note: for this to work properly you need to use a Cross-Over network cable. 1. Connect both servers S1 and S2 on the second network slots respectively. Note that you can use the 1st slots but usually these would be occupied by the Service Provide…
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't wor…
In this video, viewers are given an introduction to using the Windows 10 Snipping Tool, how to quickly locate it when it's needed and also how make it always available with a single click of a mouse button, by pinning it to the Desktop Task Bar. Int…

622 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question