Sendmail - messages seem to be getting state : Deferred: Connection refused by "host name"

Running  : Redhat Enterprise Linux 4ES using Sendmail to send out emails. Every time send an email out it seems to get rejected by the destiantion i.e  so then tried to send to itself  i.e  to This sits in the mail queue with a status of  "Deferred: Connection refused by"  whcih says to me that it is the configuration of sendmail.
I have 2 servers running same version of RedHat and sendmail is configured the same, the other one seems to work happily enough in that, email get sent out .
07:08 INTA-DEV-MAIL-02 sendmail[18628]: m91C78jO018628: from=<>, size=522, class=0, nrcpts=1, msgid=<>, proto=ESMTP, daemon=MTA, []
Oct  1 13:07:08 INTA-DEV-MAIL-02 sendmail[18627]: m91C78nj018627:, (0/0), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30394, relay=[] [], dsn=2.0.0, stat=Sent (m91C78jO018628 Message accepted for delivery)
Oct  1 13:09:14 INTA-DEV-MAIL-02 sendmail[18630]: m91C78jO018628: to=<>, delay=00:02:06, xdelay=00:02:06, mailer=esmtp, pri=120522, [], dsn=4.0.0, stat=Deferred: Connection refused by
Who is Participating?
jar3817Connect With a Mentor Commented:
what about the networking setup between the two machines? Are they in the same subnet, with the same nameservers?

Check the IPs:
/sbin/ip addr

Check the routing table:
/sbin/ip route list

Check the nameservers:
cat /etc/resolv.conf
What's your /etc/mail/ file look like on the machine that isn't working? Also, now does it compare to the box that is working?
ccfcfcAuthor Commented:
The  /etc/mail/  are both exactly the same except this  Feature FEATURE('smarttable')dnl  is NOT in the file on the machine that is NOT working. SO I guess what exactly is this, can I manually just enter it into the file ?
COuld this be the difference ?
ccfcfcAuthor Commented:
See messages from Mail Queue : strange message  "No route to host" and " connection refused by.." this is itself refusign itself . 1.15 kB Deferred: No route to host
  qfm91H3w2o019193 Wed, 1 Oct 2008 18:03:58  Mail Delivery Subsystem <MAILER-DAEMON> <> 2.83 kB Deferred: Connection refused by
All Courses

From novice to tech pro — start learning today.