- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Mail : Connection refused by [127.0.0.1]
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-04-2008 06:54 AM
тАО03-04-2008 06:54 AM
Mar 3 23:56:13 spct2-12 sendmail[16395]: m244uCkA016395: to=CVGcpu@perf.dcd.convergys.com, ctladdr=adm (3/4), delay=00:00:01, xdelay=00:00:00, mailer=relay, pri=67738, relay=[127.0.0.1] [127.0.0.1], dsn=4.0.0, stat=Deferred: Connection refused by [127.0.0.1]
Other mail seems to be going through fine from the servers...
What do we have setup wrong for this ??
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-04-2008 07:00 AM
тАО03-04-2008 07:00 AM
Solution- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-04-2008 07:07 AM - last edited on тАО01-10-2021 03:45 PM by Ramya_Heera
тАО03-04-2008 07:07 AM - last edited on тАО01-10-2021 03:45 PM by Ramya_Heera
Re: Mail : Connection refused by [127.0.0.1]
Sendmail should normally display the hostname in addition to the IP address, e.g. "Connection refused by localhost [127.0.0.1]".
127.0.0.1 is the standard loopback address: each server should be able to use it to reach its own services.
The loopback address should be associated with the name "localhost" in /etc/hosts. Every DNS server should also have this information. See RFC 1912, chapter 4.1:
Is your /etc/nsswitch.conf configured to only try DNS? Or has the "localhost" line been deleted from /etc/hosts?
MK
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-04-2008 07:19 AM
тАО03-04-2008 07:19 AM
Re: Mail : Connection refused by [127.0.0.1]
DAEMON_OPTIONS(`Port=smtp,Addr=127.0.0.1, Name=MTA')dnl
dnl DAEMON_OPTIONS(`Port=submission, Name=MSA, M=Ea')dnl
dnl DAEMON_OPTIONS(`Port=smtps, Name=TLSMTA, M=s')dnl
dnl DAEMON_OPTIONS(`port=smtp,Addr=::1, Name=MTA-v6, Family=inet6')dnl
dnl DAEMON_OPTIONS(`Name=MTA-v4, Family=inet, Name=MTA-v6, Family=inet6')
# telnet localhost 25
Trying 127.0.0.1...
telnet: connect to address 127.0.0.1: Connection refused
telnet: Unable to connect to remote host: Connection refused
# cat /etc/nsswitch.conf
passwd: files ldap
shadow: files ldap
group: files ldap
hosts: files dns
bootparams: files
ethers: files
netmasks: files
networks: files
protocols: files
rpc: files
services: files
netgroup: files
publickey: files
automount: files
aliases: files
# cat /etc/hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 localhost.localdomain localhost
10.25.88.57 spct2-12.spc.speechport.net spct2-12
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-04-2008 07:26 AM
тАО03-04-2008 07:26 AM
Re: Mail : Connection refused by [127.0.0.1]
Working server:
$ netstat -a | grep LISTEN |grep smtp
tcp 0 0 spcdist1:smtp *:* LISTEN
Non-Working:
# netstat -a | grep LISTEN |grep smtp
#
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-04-2008 10:33 AM
тАО03-04-2008 10:33 AM
Re: Mail : Connection refused by [127.0.0.1]
sendmail.cf file coming with RH7.2 only listens on loopback interface. u can see that in netstat -an
it looks like this
tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN
I Commented following option and restarted the sendmail daemon.
O DaemonPortOptions=Port=smtp,Addr=127.0.0.1, Name=MTA
Then after restarting the daemon using netstat -an.
the output changed to
tcp 0 0 0.0.0.0:25 0.0.0.0:* LISTEN
My mail now works
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-04-2008 10:58 AM
тАО03-04-2008 10:58 AM