From owner-freebsd-questions@FreeBSD.ORG Wed Jan 14 15:19:06 2009 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 BC67510656C6 for ; Wed, 14 Jan 2009 15:19:06 +0000 (UTC) (envelope-from smithi@nimnet.asn.au) Received: from sola.nimnet.asn.au (paqi.nimnet.asn.au [220.233.188.227]) by mx1.freebsd.org (Postfix) with ESMTP id 390458FC18 for ; Wed, 14 Jan 2009 15:19:05 +0000 (UTC) (envelope-from smithi@nimnet.asn.au) Received: from localhost (localhost [127.0.0.1]) by sola.nimnet.asn.au (8.14.2/8.14.2) with ESMTP id n0EFJ3BQ011141; Thu, 15 Jan 2009 02:19:04 +1100 (EST) (envelope-from smithi@nimnet.asn.au) Date: Thu, 15 Jan 2009 02:19:03 +1100 (EST) From: Ian Smith To: Pieter Donche In-Reply-To: <20090114120027.071B11065714@hub.freebsd.org> Message-ID: <20090115014052.B21590@sola.nimnet.asn.au> References: <20090114120027.071B11065714@hub.freebsd.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Cc: freebsd-questions@freebsd.org Subject: Re: FreeBSD 7, how to recieve internet mail X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 14 Jan 2009 15:19:07 -0000 On Wed, 14 Jan 2009 10:56:30 +0100 (CET) Pieter Donche wrote: > On FreeBSD 7, out of the box, one can send mail to internet destinations > and can send mail locally from one user to another user on the same > FreeeBSD machine > > But it can't receive mail from internet as it appears .. > > A sendmail is running > freebsd7box># ps -jaxw | grep sendmail > smmsp 26649 1 26649 26649 0 Is ?? 0:00.00 sendmail: Queue runner@00:30:00 for /var/spool/clientmqueue (sendmail) > root 26651 1 26651 26651 0 Ss ?? 0:00.04 sendmail: accepting connections (sendmail) > > The machine is listening on port 25 > freebsd7box># netstat -na | grep 25 > tcp4 0 0 127.0.0.1.25 *.* LISTEN sendmail is only listening on localhost. > But telnettting the freebsd box with its own ip address at port 25 > from the root account of the box > freebsd7box># telnet 143.129.75.1 25 > Trying 143.129.75.1... > telnet: connect to address 143.129.75.1: Connection refused sendmail is not listening on that address. eg here, when quiet: % netstat -an | grep 25 tcp4 0 0 *.25 *.* LISTEN % sockstat -4 | grep :25 root sendmail 781 3 tcp4 *:25 *:* > The only thing that works is > freebsd7box># telnet localhost 25 > Trying 127.0.0.1... > Connected to localhost. > Escape character is '^]'. > ... That'd be right; it needs to be also listening on an external interface address to receive mail from outside this box .. > How do I make the FreeBSD7 box accept connections to port 25 from all of the > internet ?? % grep sendmail /etc/rc.conf sendmail_enable="YES" cheers, Ian