| Linux - Server This forum is for the discussion of Linux Software used in a server related context. |
| 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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
08-29-2009, 02:18 AM
|
#1
|
|
LQ Newbie
Registered: Aug 2009
Posts: 13
Rep:
|
Sendmail fails to receive emails
My config is RedHat 6.1 Sendmail 8.9.3. The problem is that when RedHat starts with the text base login, Sendmail doesnt receive emails but if you were to start RedHat with the graphical login screen, Sendmail works as it should.
I disable the graphical login in the inittab file, by changing the line
id:5:initdefault: change 5 to 3
Sendmail doesnt receive emails when changed to 3. Anyone have any idea on what is going on.
|
|
|
|
08-29-2009, 01:05 PM
|
#2
|
|
Guru
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 10,391
|
Are you sure that sendmail is set to start at runlevel 3?
Run
Code:
ps -ef|grep sendmail
to see if it's running.
Btw RH 6.1 is quite old. Why are you still running this?
|
|
|
|
08-29-2009, 06:47 PM
|
#3
|
|
LQ Newbie
Registered: Aug 2009
Posts: 13
Original Poster
Rep:
|
Yes it is, do a
chkconfig --list | grep mail
0 off 1 0ff 2 on 3 on 4 on 5 on 6 off
ps -ef|grep sendmail
rejecting connections
Last edited by countryuser; 08-29-2009 at 06:48 PM.
|
|
|
|
08-30-2009, 03:31 PM
|
#4
|
|
Guru
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 10,391
|
Does ps show sendmail running? What is the output of
netstat -tanpl|grep 25
You can use telnet to see why it rejects mail.
Also take a look at the logs to see if you find anything.
|
|
|
|
08-31-2009, 04:32 AM
|
#5
|
|
LQ Newbie
Registered: Aug 2009
Posts: 13
Original Poster
Rep:
|
I'm using putty from another box to access server and su root for these commands
output for ps
[root@www /]# ps
PID TTY TIME CMD
9212 pts/0 00:00:00 login
9226 pts/0 00:00:00 su
9227 pts/0 00:00:00 bash
9244 pts/0 00:00:00 ps
output for netstat -tanpl|grep 25
[root@www /]# netstat -tanpl|grep 25
(Not all processes could be identified, non-owned process info
will not be shown, you would have to be root to see it all.)
output for telnet mail.domain.ext 25
Trying ???.???.???.???...
telnet: Unable to connect to remote host: Connection refused
Last edited by countryuser; 08-31-2009 at 04:35 AM.
|
|
|
|
08-31-2009, 04:50 AM
|
#6
|
|
Guru
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 10,391
|
You should run the commands as root.
Also you should use the link to the smtp commands via telnet as a reference to your case. You should replace mail.domain.ext with the name of your mail server.
|
|
|
|
09-01-2009, 02:21 AM
|
#7
|
|
LQ Newbie
Registered: Aug 2009
Posts: 13
Original Poster
Rep:
|
I was logged in as root ([root@www /]) and run those commands, I even logged in a the actual server as root and the same was returned. As for the telnet command I used my mail server name and that is what was returned. The question marks ? are my ip number.
How is slackware run as a server, never looked at it. I'm thinking Debian (Lenny) to upgrade to when time permits.
Last edited by countryuser; 09-01-2009 at 02:24 AM.
|
|
|
|
09-01-2009, 02:46 AM
|
#8
|
|
Guru
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 10,391
|
Quote:
netstat -tanpl|grep 25
(Not all processes could be identified, non-owned process info
will not be shown, you would have to be root to see it all.)
|
If you were root, then how does this happens?
Are you sure that sendmail is working on runlevel 5 and not on runlevel 3? Did you try to restart it once on rc3?
What are the logs (/var/log/messages, /var/log/maillog etc) saying?
|
|
|
|
11-03-2009, 04:55 PM
|
#9
|
|
LQ Newbie
Registered: Aug 2009
Posts: 13
Original Poster
Rep:
|
Thanks for your help Bathory. I have been incapacitated for a while but I took your advice and upgraded from RedHat 6.1 to Debian Lenny. A much newer server software. Very easy to install, thanks to Falco Timmes documentation.
Thanks once again for your help
Regards
Countryuser
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 09:08 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|