LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 08-29-2009, 02:18 AM   #1
countryuser
LQ Newbie
 
Registered: Aug 2009
Posts: 13
Blog Entries: 1

Rep: Reputation: 0
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.
 
Old 08-29-2009, 01:05 PM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,165
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
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?
 
Old 08-29-2009, 06:47 PM   #3
countryuser
LQ Newbie
 
Registered: Aug 2009
Posts: 13

Original Poster
Blog Entries: 1

Rep: Reputation: 0
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.
 
Old 08-30-2009, 03:31 PM   #4
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,165
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
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.
 
Old 08-31-2009, 04:32 AM   #5
countryuser
LQ Newbie
 
Registered: Aug 2009
Posts: 13

Original Poster
Blog Entries: 1

Rep: Reputation: 0
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.
 
Old 08-31-2009, 04:50 AM   #6
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,165
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
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.
 
Old 09-01-2009, 02:21 AM   #7
countryuser
LQ Newbie
 
Registered: Aug 2009
Posts: 13

Original Poster
Blog Entries: 1

Rep: Reputation: 0
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.
 
Old 09-01-2009, 02:46 AM   #8
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,165
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
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?
 
Old 11-03-2009, 04:55 PM   #9
countryuser
LQ Newbie
 
Registered: Aug 2009
Posts: 13

Original Poster
Blog Entries: 1

Rep: Reputation: 0
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
 
  


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
how to receive emails with exim4 amimusa Debian 0 04-06-2007 08:49 PM
can receive emails but cannot send it? rhxk Linux - General 6 03-06-2007 04:24 PM
Cannot receive emails from outside world consistgd Linux - Software 3 11-21-2006 05:45 PM
Cannot receive inbound external emails with Sendmail jimwillsher Linux - Newbie 12 02-09-2004 12:50 PM
Can't send or Receive Emails amohime Linux - Networking 4 04-11-2003 02:42 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 05:40 AM.

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