From owner-freebsd-questions@FreeBSD.ORG Mon Jun 11 04:45:43 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 0561916A46C for ; Mon, 11 Jun 2007 04:45:43 +0000 (UTC) (envelope-from bc979@lafn.org) Received: from zoot.lafn.org (zoot.lafn.ORG [206.117.18.6]) by mx1.freebsd.org (Postfix) with ESMTP id C0A7513C448 for ; Mon, 11 Jun 2007 04:45:42 +0000 (UTC) (envelope-from bc979@lafn.org) Received: from [10.0.1.2] (pool-71-109-147-73.lsanca.dsl-w.verizon.net [71.109.147.73]) (authenticated bits=0) by zoot.lafn.org (8.13.6/8.13.4) with ESMTP id l5B4je7T010791 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NO); Sun, 10 Jun 2007 21:45:41 -0700 (PDT) (envelope-from bc979@lafn.org) In-Reply-To: <144363.77113.qm@web57505.mail.re1.yahoo.com> References: <144363.77113.qm@web57505.mail.re1.yahoo.com> Mime-Version: 1.0 (Apple Message framework v752.3) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <4FF0C5BA-2DCC-4335-B340-9B0FA4393608@lafn.org> Content-Transfer-Encoding: 7bit From: Doug Hardie Date: Sun, 10 Jun 2007 21:45:48 -0700 To: Bjorn Boulder X-Mailer: Apple Mail (2.752.3) X-Virus-Scanned: ClamAV 0.88.7/3398/Sun Jun 10 08:08:42 2007 on zoot.lafn.org X-Virus-Status: Clean 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 04:45:43 -0000 On Jun 10, 2007, at 21:25, Bjorn Boulder wrote: > Doug, Mats > > Your advice is on the money; thanks. > > I see this: > > Jun 10 05:43:40 jake sendmail[15068]: l5AAhekD015068: > to=bornboulder77@yahoo.com, ctladdr=oracle > (1004/1005), > delay=00:00:00, xdelay=00:00:00, mailer=relay, > pri=30062, > relay=[127.0.0.1] [127.0.0.1], dsn=4.0.0, > stat=Deferred: Connection > refused by [127.0.0.1] > > Your tip along with that given by Mats suggests that > I need to learn about /etc/mail/sendmail.cf > > It appears that the box cannot send mail to itself: > > Jun 10 03:05:44 jake sendmail[14546]: l5A84ObZ014546: > to=postmaster, > delay=00:00:00, xdelay=00:00:00, mailer=relay, > pri=154501, > relay=[127.0.0.1], dsn=4.0.0, stat=Deferred: > Connection refused by > [127.0.0.1] > > Jun 10 03:05:44 jake sendmail[14546]: l5485I55093939: > to=root, > ctladdr=root (0/0), delay=6+00:00:26, xdelay=00:00:00, > mailer=relay, > pri=691450, relay=[127.0.0.1], dsn=4.0.0, > stat=Deferred: Connection > refused by [127.0.0.1] > > Jun 10 03:05:44 jake sendmail[14546]: l5485I55093939: > l5A84Oba014546: > sender notify: Cannot send message for 5 days > > Jun 10 03:05:44 jake sendmail[14546]: l5A84Oba014546: > to=root, > delay=00:00:00, xdelay=00:00:00, mailer=relay, > pri=152806, > relay=[127.0.0.1], dsn=4.0.0, stat=Deferred: > Connection refused by > [127.0.0.1] > > Currently, my main assumption is that > /etc/mail/sendmail.cf > is the primary administrative interface for e-mail. That is correct, but you don't want to directly mess with sendmail.cf. You really want to use the mc file and then make to build the cf file. Its much easier and more readable. See /usr/ share/sendmail/cf/readme for more details. The cf files are in another directory from there named cf. You will also want to use sendmail -bv email-address to have sendmail show you how and where it will deliver for the address: email-address. That is a useful tool.