telnet to mail server from outside does not get 220, telnet from inside works

Josh Carroll josh.carroll at gmail.com
Mon May 12 15:43:56 UTC 2008


On Mon, May 12, 2008 at 10:04 AM, brad davison
<demonichandextensions at hotmail.com> wrote:
>
>  Is there something I need to configure in telnetd or sendmail to allow 'outside' IP addresses to telnet to the mail server and get a 220 response?
>
>  When I 'telnet localhost 25' i get:
>
>  email# telnet localhost 25
>  Trying ::1...
>  Connected to localhost.xxxxxxxxx.com.
>  Escape character is '^]'.
>  220 email.xxxxxxxxx.com ESMTP Sendmail 8.13.8/8.13.8; Mon, 12 May 2008 10:01:39 -0400 (EDT)
>
>
>
>  But if I try the same thing from 'outside' the firewall I get:
>
>  %telnet email.xxxxxxxxxxxx.com 25
>  Trying 67.x.x.x...
>  Connected to email.xxxxxxxxxxx.com.
>  Escape character is '^]'.
>  Connection closed by foreign host.

That looks like TCP wrappers dropping the connection. Have you checked
/etc/hosts.{allow,deny}? man 5 hosts_access for details.

Josh


More information about the freebsd-questions mailing list