From owner-freebsd-questions@FreeBSD.ORG Mon May 12 15:43:56 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 14476106566B for ; Mon, 12 May 2008 15:43:56 +0000 (UTC) (envelope-from josh.carroll@gmail.com) Received: from ti-out-0910.google.com (ti-out-0910.google.com [209.85.142.189]) by mx1.freebsd.org (Postfix) with ESMTP id 9C90E8FC18 for ; Mon, 12 May 2008 15:43:55 +0000 (UTC) (envelope-from josh.carroll@gmail.com) Received: by ti-out-0910.google.com with SMTP id d27so871979tid.3 for ; Mon, 12 May 2008 08:43:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=9n75Qkh6fynBxKs9jzrjn2JO+FXGe8xUVzgKVrX+leY=; b=dD625uP4N3XI1DRJKuZDgdL6PSIF1Ndq0SyJAYN1K780KOdcJHlOte9HBbvSk/f90rAKPCYH5IwnaAL2DV4ukMI6VWBgvxwrqJ9rGDT6N3C2cnEzxAmHB3cL1gngI4l5me84osPfVWroHlBGoayVfEB7kBAZcVjcWNeSps0o9RU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=wkJAUctF44h7zcGyDgHXys07KqHAsy82d7V+/WAKveTULf4ZlVZUfEcIzYVmyFNl405KFTRMUG2mGXFbJ95Q4F9xd4Zav7OlRYgbMzqL6jDXgCfSvTgCBlIO1i1TqB01GICy7yvOmbZH6tkEY9m6ZFIV6nZNZyP2U8Og2zFS4Kg= Received: by 10.150.83.22 with SMTP id g22mr8360588ybb.152.1210607032503; Mon, 12 May 2008 08:43:52 -0700 (PDT) Received: by 10.150.140.14 with HTTP; Mon, 12 May 2008 08:43:52 -0700 (PDT) Message-ID: <8cb6106e0805120843n1bdc16b3k4f35bfcb00eb81ac@mail.gmail.com> Date: Mon, 12 May 2008 11:43:52 -0400 From: "Josh Carroll" To: "brad davison" In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: Cc: freebsd-questions@freebsd.org Subject: Re: telnet to mail server from outside does not get 220, telnet from inside works X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: josh.carroll@gmail.com List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 May 2008 15:43:56 -0000 On Mon, May 12, 2008 at 10:04 AM, brad davison 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