Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 09-25-2008, 12:51 AM   #1
LQ Newbie
Registered: Mar 2008
Posts: 6

Rep: Reputation: 0
Angry Fetchmail and sendmail refused connection to localhost port 25m red hat 5

Im trying to move Exchange server users email to sendmail mailbox's

In the migration process Ive tried to configure fetchmail to connect to IMAP process on exchange server ( on the local domain) and place mails in local users mailbox on Redhat Enterpise 5 Linux server.

Although RHEL5 server connects to MS SBS 2003 exchange server OK I cant deliver to sendmail mailbox.

fetchmail: connection to localhost:smtp [::1/25] failed: Connection refused.
fetchmail: SMTP connect to localhost failed

Even Telnet localhost 25 is refused on the rhel server

telnet localhost 25
Trying ::1...
telnet: connect to address ::1: Connection refused
telnet: Unable to connect to remote host: Connection refused

However if I telnet to either IP adress on the local host it works

telnet 25
Connected to (
Escape character is '^]'.
220 ESMTP Sendmail 8.13.8/8.13.8; Thu, 25 Sep 2008 06:41:24 +0100

telnet 25
Connected to (
Escape character is '^]'.
220 ESMTP Sendmail 8.13.8/8.13.8; Thu, 25 Sep 2008 06:42:24 +0100

I have tried turning off firewall, adding the IP adress of the exchange server into /etc/mail/access as a RELAY Ive even copied back original , and wiped my local /etc/hosts file,but no change

All other parts of sendmail work, Send mail out to internet Receive mail back from internet send local mail, Masquarade, All accounts on RHEL5 are able send to local users and internet domain accounts.

Someone help me with some more suggestions on stuff to check please !

This ones getting me anoyed
Old 09-25-2008, 01:07 AM   #2
LQ Newbie
Registered: Mar 2008
Posts: 6

Original Poster
Rep: Reputation: 0
ah ...slightly embarassing !

I addeed localhost to /etc/hosts and it all worked OK



Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
port 25 connection refused even from localhost?? Ed1952 Red Hat 2 11-15-2005 08:24 AM
Connection to localhost refused?!? a_priebe47 Slackware 4 09-01-2004 09:05 PM
"connection refused" on port 993, when not coming from localhost spam4scott Linux - Networking 2 07-14-2003 06:35 AM
Telnet Connection refused in red hat 9.0 bhkrp Linux - Software 2 07-05-2003 06:30 PM
sendmail Deferred: Connection refused by localhost.localdomain. 360 Linux - Software 6 03-31-2003 01:07 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:12 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration