LinuxQuestions.org
Review your favorite Linux distribution.
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 03-26-2015, 04:30 AM   #1
ggrein
LQ Newbie
 
Registered: Mar 2015
Posts: 11

Rep: Reputation: Disabled
Sendmail problem on RH6


I'm running sendmail on several RH6 servers but on one server I didn't manage to make it work. The configuration is the same on all servers. Nevertheless sendmail does not send emails to the smtp server fro this server.
In the maillog I see such entries:
sm-msp-queue[18476]: t2O0F1IO006630: to=root, ctladdr=root (0/0), delay=2+08:34:17, xdelay=00:00:00, mailer=relay, pri=5700416, relay=[127.0.0.1], dsn=4.0.0, stat=Deferred: Connection timed out with [127.0.0.1]
A lot of error mails are queued in /var/spool/clientmqueue/.
For me it looks like sendmail does not recognize the smtp settings.

Any ideas what the problem could be?
Thanks
Guenter
 
Old 03-26-2015, 05:27 AM   #2
wpeckham
LQ Guru
 
Registered: Apr 2010
Location: Continental USA
Distribution: Debian, Ubuntu, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, VSIDO, tinycore, Q4OS,Manjaro
Posts: 5,623

Rep: Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695
first cut

Check your /etc/hosts file. Make sure that there are entries for ipv4 localhost and ipv4 local server hostname at least.
Check your netstat report and see that it is listening on port 25 at address 127.0.0.1
Code:
netstat -an|grep LISTEN|grep -v ING
Let us know what you discover.
 
Old 03-26-2015, 06:15 AM   #3
ggrein
LQ Newbie
 
Registered: Mar 2015
Posts: 11

Original Poster
Rep: Reputation: Disabled
The /etc/hosts is
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6

It is listening on port 25:
tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN
 
Old 03-26-2015, 08:15 PM   #4
wpeckham
LQ Guru
 
Registered: Apr 2010
Location: Continental USA
Distribution: Debian, Ubuntu, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, VSIDO, tinycore, Q4OS,Manjaro
Posts: 5,623

Rep: Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695
Hmmm

That looks fine for a client machine. The SMTP server, are you using it for a SMARTHOST or RELAY, or is it the target mail server for the TO: accounts?
 
Old 03-27-2015, 04:04 AM   #5
ggrein
LQ Newbie
 
Registered: Mar 2015
Posts: 11

Original Poster
Rep: Reputation: Disabled
It's the target mail server for outgoing mails
 
Old 03-27-2015, 06:23 AM   #6
wpeckham
LQ Guru
 
Registered: Apr 2010
Location: Continental USA
Distribution: Debian, Ubuntu, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, VSIDO, tinycore, Q4OS,Manjaro
Posts: 5,623

Rep: Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695
another cut.

So, you are send mail form box #1 to email accounts that are on box #2 and NOT to (for example) gmail or yahoo accounts.

I assume, then, that Box #2 is the email server for your domain and is the target of your MX record. Check that /etc/resolv.conf is the same on box #1 as on the other boxes. Perhaps it is not quite getting DNS lookups right, and has not figured out where the mail for your domain should go.

We need not look at the listener on box #2, because it IS receiving mail from your other hosts. Unless there is something there BLOCKING box #1, the issue is more likely to be directly on box #1.

You might want to copy the sendmail.cf from some other box where email works, and this box #1 where it does not, to a safe location and run diff against them. If they differ, it may pay to know why.

Check the access database in /etc/mail on box #2, and make sure that mail is allowed from box #1. It would be silly, but sufficient to cause the issue, if all other hosts were allowed to send it mail but not this one.
 
Old 03-27-2015, 06:49 AM   #7
ggrein
LQ Newbie
 
Registered: Mar 2015
Posts: 11

Original Poster
Rep: Reputation: Disabled
/etc/resolv.conf are the same on every box. The sendmail.cf is also exactly the same.
I will get in touch with the admins of box #2 for checking about any blocking.
Thanks so far.
Btw, I will be off for ~1 week due to Easter holidays.
 
Old 03-27-2015, 08:43 AM   #8
ggrein
LQ Newbie
 
Registered: Mar 2015
Posts: 11

Original Poster
Rep: Reputation: Disabled
The admins of box #2 confirmed there is no blocking.
 
Old 03-27-2015, 01:08 PM   #9
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,624

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
you do know that"RH6" is very old and has been unsupported for a very long time

RH6 was released LAST CENTURY !! "26 April 1999"

it predates windows XP
 
Old 03-28-2015, 07:00 AM   #10
wpeckham
LQ Guru
 
Registered: Apr 2010
Location: Continental USA
Distribution: Debian, Ubuntu, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, VSIDO, tinycore, Q4OS,Manjaro
Posts: 5,623

Rep: Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695
An aside

John,
I think he means RHEL6, which is in current support.


Ggrein,
Can you send an email from one account on this box to another successfully? Perhaps we have been looking too far out and the problem is closer.
 
Old 03-28-2015, 12:15 PM   #11
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,624

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
well there is a rather BIG difference in
RH6 and RHEL 6.x
 
Old 04-07-2015, 01:23 AM   #12
ggrein
LQ Newbie
 
Registered: Mar 2015
Posts: 11

Original Poster
Rep: Reputation: Disabled
Dear all,
I managed to fix this problem myself. It was a stupid newbie error. Iptables blocked all mail traffic.
Thanks a lot for all your time and help.
Guenter
 
  


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
samba 3 on rh6.2? aurelio26 Red Hat 3 03-25-2005 10:47 PM
RH6.2 sendmail j-me Linux - Software 0 07-28-2004 12:17 PM
RH6.1 XF86Config chrisharkness Linux - General 22 11-20-2002 05:07 PM
RH6.2 on Pentium IV Paul_assheton Linux - Distributions 0 05-23-2002 02:18 AM
RH6.1->RH7.2 Upgrade DNS Update Problem Grum Linux - Networking 0 05-13-2002 06:50 PM

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

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