Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 859
  • Last Modified:

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 mx4.hotmail.com  so then tried to send to itself  i.e myaccount@dev.domain.com  to myaccount@dev.domain.com. This sits in the mail queue with a status of  "Deferred: Connection refused by dev.domain.com"  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 .
 
OUTPUT FROM MAILLOGS's Below :-
07:08 INTA-DEV-MAIL-02 sendmail[18628]: m91C78jO018628: from=<intalocadmuser@dev.domain.com>, size=522, class=0, nrcpts=1, msgid=<1222862828.18625@dev.domain.com>, proto=ESMTP, daemon=MTA, relay=mail-02.dev.domain.com [127.0.0.1]
Oct  1 13:07:08 INTA-DEV-MAIL-02 sendmail[18627]: m91C78nj018627: to=intalocadmuser@dev.domain.com, ctladdr=intalocadmuser@dev.domain.com (0/0), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30394, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (m91C78jO018628 Message accepted for delivery)
Oct  1 13:09:14 INTA-DEV-MAIL-02 sendmail[18630]: m91C78jO018628: to=<intalocadmuser@dev.domain.com>, delay=00:02:06, xdelay=00:02:06, mailer=esmtp, pri=120522, relay=dev.domain.com. [192.168.30.1], dsn=4.0.0, stat=Deferred: Connection refused by dev.domain.com.
0
ccfcfc
Asked:
ccfcfc
  • 2
  • 2
1 Solution
 
jar3817Commented:
What's your /etc/mail/sendmail.mc file look like on the machine that isn't working? Also, now does it compare to the box that is working?
0
 
ccfcfcAuthor Commented:
The  /etc/mail/sendmail.mc  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 ?
0
 
ccfcfcAuthor Commented:
See messages from Mail Queue : strange message  "No route to host" and " connection refused by.." this is itself refusign itself .

intalocadmuser@dev.intamac.com intalocadmuser@dev.intamac.com 1.15 kB Deferred: dev.intamac.com.: No route to host
  qfm91H3w2o019193 Wed, 1 Oct 2008 18:03:58  Mail Delivery Subsystem <MAILER-DAEMON> <intalocadmuser@dev.intamac.com> 2.83 kB Deferred: Connection refused by dev.intamac.com.
0
 
jar3817Commented:
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
0

Featured Post

Fill in the form and get your FREE NFR key NOW!

Veeam is happy to provide a FREE NFR server license to certified engineers, trainers, and bloggers.  It allows for the non‑production use of Veeam Agent for Microsoft Windows. This license is valid for five workstations and two servers.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now