Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 16 Mar 2005 16:14:28 -0800
From:      Gary Kline <kline@sage.thought.org>
To:        Vince <jhary@unsane.co.uk>
Cc:        'FreeBSD Mailing List' <freebsd-questions@freebsd.org>
Subject:   Re: "Connection refused"
Message-ID:  <20050317001428.GB89665@thought.org>
In-Reply-To: <200503162233.j2GMX83U059959@unsane.co.uk>
References:  <20050316064715.GA85186@thought.org> <200503162233.j2GMX83U059959@unsane.co.uk>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050317001428.GB89665>