From owner-freebsd-questions@FreeBSD.ORG Mon Jun 11 07:56:03 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id A312D16A468 for ; Mon, 11 Jun 2007 07:56:03 +0000 (UTC) (envelope-from toomas.aas@raad.tartu.ee) Received: from kuller.raad.tartu.ee (kuller.raad.tartu.ee [194.126.106.100]) by mx1.freebsd.org (Postfix) with ESMTP id 5C4B113C43E for ; Mon, 11 Jun 2007 07:56:03 +0000 (UTC) (envelope-from toomas.aas@raad.tartu.ee) Received: from localhost (localhost [127.0.0.1]) by kuller.raad.tartu.ee (Postfix) with ESMTP id 27B97B81D; Mon, 11 Jun 2007 10:25:56 +0300 (EEST) X-Virus-Scanned: amavisd-new at post.raad.tartu.ee Received: from kuller.raad.tartu.ee ([127.0.0.1]) by localhost (kuller.raad.tartu.ee [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id QlgnqTbCR7V5; Mon, 11 Jun 2007 10:25:54 +0300 (EEST) Received: from raad.tartu.ee (lv.raad.tartu.ee [194.126.106.110]) by kuller.raad.tartu.ee (Postfix) with ESMTP id 28007B819; Mon, 11 Jun 2007 10:25:54 +0300 (EEST) Received: from INFO/SpoolDir by raad.tartu.ee (Mercury 1.48); 11 Jun 07 10:25:54 +0300 Received: from SpoolDir by INFO (Mercury 1.48); 11 Jun 07 10:25:41 +0300 Received: from [172.26.1.3] (172.26.1.3) by raad.tartu.ee (Mercury 1.48) with ESMTP; 11 Jun 07 10:25:40 +0300 Message-ID: <466CF8F3.9080605@raad.tartu.ee> Date: Mon, 11 Jun 2007 10:25:39 +0300 From: Toomas Aas User-Agent: Thunderbird 1.5.0.10 (Windows/20070221) MIME-Version: 1.0 To: Bjorn Boulder References: <424129.14768.qm@web57509.mail.re1.yahoo.com> In-Reply-To: <424129.14768.qm@web57509.mail.re1.yahoo.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: [FreeBSD][Newb] How I use sendmail to send 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: Mon, 11 Jun 2007 07:56:03 -0000 Bjorn Boulder wrote: > Here is what I want: > > 1. I want to send mail > 2. I don't want to receive mail from the outside > 3. I do want to receive mail from the box itself. The default Sendmail configuration on FreeBSD should be sufficient for what you want to do. You just need to start Sendmail the right way. Make sure you have the following in /etc/rc.conf: sendmail_enable="NO" Then give this command: /etc/rc.d/sendmail start Now sendmail should start up, listening on loopback interface only. You can verify this with command: sockstat -4 Among the output you should see this line: root sendmail 562 4 tcp4 127.0.0.1:25 *:* Then try telnet localhost 25 and make sure you get connected. Additionally try telnet yourserver 25 from another host and make sure you don't get connected. I have one web server (FreeBSD 5.5) with sendmail set up this way. -- Toomas Aas