LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices



Reply
 
Search this Thread
Old 03-27-2003, 04:02 PM   #1
360
Member
 
Registered: Jun 2001
Distribution: FC4
Posts: 136

Rep: Reputation: 15
sendmail Deferred: Connection refused


Running standard RH 8.0
Road Runner Cable modem.
The router is configured to forward all traffic to my dedicated ip address on the box.

Sendmail accepts connections locally but not from the internet.

I can ssh into the box.

When I run a test locally, all is well:
sendmail -v me@mydomain.com < /dev/null

When I run a test from another server over the internet, I get:
sendmail -v me@mydomain.com < /dev/null
Deferred: Connection refused by mail.mydomain.com.

I have done all I know to do.

I have also changed the iptables file in /etc/rc.d/init.d to iptables.original, thinking it would turn the it off after restart. If there is a better way to turn iptables off, let me know.

Please reply with any suggestions.
Thanks.

Last edited by 360; 03-31-2003 at 01:52 PM.
 
Old 03-27-2003, 04:13 PM   #2
Hube
Member
 
Registered: Mar 2003
Location: Ann Arbor - US
Distribution: RH 8.0
Posts: 55

Rep: Reputation: 15
Is it listening on the correct port? I had a similar problem recently with courier-imap, I thought that having it listen on 127.0.0.1 was correct, in reality I wanted it listening on 0, i.e listen to everything.... Just a thought?
 
Old 03-27-2003, 07:07 PM   #3
360
Member
 
Registered: Jun 2001
Distribution: FC4
Posts: 136

Original Poster
Rep: Reputation: 15
Thanks for the reply but I don't think that's the case.

[root@bounce root]# netstat -nl
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State
tcp 0 0 127.0.0.1:32768 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:110 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:111 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:6000 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:21 0.0.0.0:* LISTEN
tcp 0 0 68.165.177.77:53 0.0.0.0:* LISTEN
tcp 0 0 127.0.0.1:53 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:25 0.0.0.0:* LISTEN
 
Old 03-27-2003, 09:20 PM   #4
Hube
Member
 
Registered: Mar 2003
Location: Ann Arbor - US
Distribution: RH 8.0
Posts: 55

Rep: Reputation: 15
Ok, that looks similar to mine, I don't use sendmail. I use qmail, with qmail you have to setup your rules to make sure that your machine can't be used as a relay, I would imagine that sendmail has something similar that blocks you from using this port to send email unless it's to a local host. Ypu'll have to dig around, I'm sure there's plenty of material out there.

Sorry I can't help more.

Hube
 
Old 03-31-2003, 01:21 PM   #5
360
Member
 
Registered: Jun 2001
Distribution: FC4
Posts: 136

Original Poster
Rep: Reputation: 15
I re-installed RH 8 with no firewall.
Still having the same problems.
 
Old 03-31-2003, 01:51 PM   #6
360
Member
 
Registered: Jun 2001
Distribution: FC4
Posts: 136

Original Poster
Rep: Reputation: 15
Port scan shows that port 25 is off:
There are no logs to speak of.
I checked /etc/services and smtp is not commented out.

So how can I open this port?

Thanks.

[root@ns1 root]# nmap -sT -O 68.165.177.77

Starting nmap V. 2.54BETA22 ( www.insecure.org/nmap/ )
Interesting ports on h-68-165-177-77.LSANCA54.covad.net (68.165.177.77):
(The 1536 ports scanned but not shown below are in state: closed)
Port State Service
22/tcp open ssh
53/tcp open domain
80/tcp open http
110/tcp open pop-3
443/tcp open https
445/tcp filtered microsoft-ds
 
Old 03-31-2003, 02:07 PM   #7
360
Member
 
Registered: Jun 2001
Distribution: FC4
Posts: 136

Original Poster
Rep: Reputation: 15
I got it working.

Had to change sendmail.cf line.

From: O DaemonPortOptions=Port=smtp,Address=127.0.0.1, Name=MTA
to: O DaemonPortOptions=Port=smtp, Name=MTA

Thanks.
 
  


Reply


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
sendmail using localhost.localdomain joe.biz Linux - Software 1 10-27-2005 06:47 PM
sendmail: stat=Deferred: Connection timed out with email.mydomain.com intranet_man Linux - Software 1 07-19-2005 12:04 PM
Connection to localhost refused?!? a_priebe47 Slackware 4 09-01-2004 10:05 PM
sendmail and @localhost.localdomain deadlock Linux - Networking 4 12-17-2003 09:08 AM
Pine: Deferred: Connection refused .... katana Linux - General 4 08-09-2001 10:07 AM


All times are GMT -5. The time now is 03:18 AM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration