Re: "Connection refused"

[ Available lists | Index of freebsd-questions | Month of Mar 2005 | Week of 17 Mar 2005 | Raw email | View thread | Wrap long lines | Reply | Tag ]
From
Gary Kline <kline@sage.thought.org>
Date
17 Mar 2005 00:14:31
Subject
Re: "Connection refused"
Message-ID
20050317001428.GB89665@thought.org

In reply to
References to

[ Hide this part ]
On Wed, Mar 16, 2005 at 10:33:10PM -0000, Vince wrote:
> > >
> >
> > This is strange; I just allowed telnet in /etc/inetd.conf and
> > reinitialized; from here on sage/ns1, this.
>
> No need to enable telnet in inetd.conf if you're just using it to test
> a tcp connection to another host, that's only if you want to be able to
> log on to the host from another machine using telnet.
>
> >
> > telnet tao 25
> > Trying 10.0.0.247...
> > telnet: connect to address 10.0.0.247: Connection refused
> > telnet: Unable to connect to remote host
> >
> > Could I be missing something in rc.conf?
> >
>
> Hmm you should get a basic connection, on tao whats the output of
> sockstat -4 |grep :25
> I get
> root sendmail 651 3 tcp4 *:25 *:*
>
> i.e. is sendmail actualy running ? if yes, is it listening on any ip other
> than 127.0.0.1 ? (mine is listening on *)


root sendmail 13287 3 tcp4 *:25 *:*

So it's the same... .


> If still yes then do you have a firewall or tcpwrappers blocking access ?
>
> Assuming base sendmail (not ports) what is the output of
> grep sendmail /etc/rc.conf
> (should be sendmail_enable="YES" unless you are using sendmail from ports)
>


Ah, so it was the _enable="NO" that was causing the trouble.
I just got mail flowing to tao by using the rc.conf from
a different server that accepted mail from ns1.thought.org.
I just asked the list some questions about my mods to
/etc/rc.conf on my home server; you've answered my question
while I was answering other email. :-)

Just to be sure I'll turn off the sendmail_enable, restart,
and see it the connection is refused.


live and learn...

gary



>

--
Gary Kline kline@thought.org www.thought.org Public service Unix


Elapsed time: 0.081 seconds