From owner-freebsd-questions@FreeBSD.ORG Mon Jun 11 05:15:07 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 9E33B16A46D for ; Mon, 11 Jun 2007 05:15:07 +0000 (UTC) (envelope-from bornboulder77@yahoo.com) Received: from n2.bullet.mail.re4.yahoo.com (n2.bullet.mail.re4.yahoo.com [206.190.56.21]) by mx1.freebsd.org (Postfix) with SMTP id 61C4313C45A for ; Mon, 11 Jun 2007 05:15:07 +0000 (UTC) (envelope-from bornboulder77@yahoo.com) Received: from [68.142.237.87] by n2.bullet.re4.yahoo.com with NNFMP; 11 Jun 2007 05:02:13 -0000 Received: from [66.196.101.133] by t3.bullet.re3.yahoo.com with NNFMP; 11 Jun 2007 05:02:13 -0000 Received: from [127.0.0.1] by rrr4.mail.re1.yahoo.com with NNFMP; 11 Jun 2007 05:02:13 -0000 X-Yahoo-Newman-Property: ymail-5 X-Yahoo-Newman-Id: 881606.66850.bm@rrr4.mail.re1.yahoo.com Received: (qmail 59965 invoked by uid 60001); 11 Jun 2007 05:02:13 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:Date:From:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-ID; b=fjM1ZPcdnCmHS07mnPkCVdcw76s4nP4avjIOJZg6Frwx+HK1wT9NyIq6oq8n35TvPctLYn19Y+tvyk90BnYorBYDix3Ux0vsNUXuFZPUSyIC4HxX1QpO8vdCjvViYp4mLFrdl22URcGDnTqA6XlR8Akd8Bw8Q5XH7l01Fa2JQQI=; X-YMail-OSG: y8UBO3IVM1kP2zWG8DN0eHin0YUkJ1kC_go1EXX8rLdKR0RNJeZjvWOyGchxRLU_5tOntQrGPXAoDVLfG6cgIdZl Received: from [76.211.254.121] by web57513.mail.re1.yahoo.com via HTTP; Sun, 10 Jun 2007 22:02:13 PDT Date: Sun, 10 Jun 2007 22:02:13 -0700 (PDT) From: Bjorn Boulder To: Doug Hardie In-Reply-To: <4FF0C5BA-2DCC-4335-B340-9B0FA4393608@lafn.org> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Message-ID: <695341.59766.qm@web57513.mail.re1.yahoo.com> 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 05:15:07 -0000 ok, I'll look at that readme. And.... I nosed around on the box for clues about sendmail.cf It looks like the previous sysadmin ignored sendmail.cf I see this: bash jake oracle /etc/mail 14 $ pwd /etc/mail bash jake oracle /etc/mail 15 $ bash jake oracle /etc/mail 15 $ bash jake oracle /etc/mail 15 $ ls -latr total 582 -rw-r--r-- 1 root wheel 569 Nov 4 2004 virtusertable.sample -r--r--r-- 1 root wheel 40449 Nov 4 2004 submit.cf -rw-r--r-- 1 root wheel 57796 Nov 4 2004 sendmail.cf -rw-r--r-- 1 root wheel 243 Nov 4 2004 mailertable.sample -rw-r--r-- 1 root wheel 400 Nov 4 2004 mailer.conf -r--r--r-- 1 root wheel 5588 Nov 4 2004 helpfile -r--r--r-- 1 root wheel 40449 Nov 4 2004 freebsd.submit.cf -rw-r--r-- 1 root wheel 57796 Nov 4 2004 freebsd.cf -rw-r--r-- 1 root wheel 1606 Nov 4 2004 aliases -rw-r--r-- 1 root wheel 407 Nov 4 2004 access.sample -rw-r--r-- 1 root wheel 2896 Nov 4 2004 README -rw-r--r-- 1 root wheel 6809 Nov 4 2004 Makefile -rw-r----- 1 root wheel 65536 Oct 31 2005 aliases.db -rw-r--r-- 1 root wheel 421 Aug 21 2006 motel411.sh -rw-r--r-- 1 root wheel 40400 Aug 21 2006 motel411.com.submit.cf -rw-r--r-- 1 root wheel 57747 Aug 21 2006 motel411.com.cf -r--r--r-- 1 root wheel 894 Aug 21 2006 motel411.com.submit.mc -rw-r--r-- 1 root wheel 4113 Aug 21 2006 motel411.com.mc -r--r--r-- 1 root wheel 894 Aug 21 2006 freebsd.submit.mc -rw-r--r-- 1 root wheel 4113 Aug 21 2006 freebsd.mc -rw-r--r-- 1 root wheel 52 Aug 21 2006 local-host-names -rw-r--r-- 1 root wheel 267 Aug 21 2006 virtusertable drwxr-xr-x 2 root wheel 1024 Aug 21 2006 ./ -rw-r----- 1 root wheel 65536 Aug 21 2006 virtusertable.db drwxr-xr-x 17 root wheel 2048 Nov 11 2006 ../ bash jake oracle /etc/mail 16 $ bash jake oracle /etc/mail 16 $ bash jake oracle /etc/mail 16 $ It looks like administrative activity was happening on Aug 21 2006 I looked at motel411.sh... bash jake oracle /etc/mail 16 $ bash jake oracle /etc/mail 16 $ cat motel411.sh #! /bin/sh cp freebsd.mc motel411.com.mc /usr/bin/m4 -D_CF_DIR_=/usr/share/sendmail/cf/ /usr/share/sendmail/cf/m4/cf.m4 motel411.com.mc > motel411.com.cf cp freebsd.submit.mc motel411.com.submit.mc /usr/bin/m4 -D_CF_DIR_=/usr/share/sendmail/cf/ /usr/share/sendmail/cf/m4/cf.m4 motel411.com.submit.mc > motel411.com.submit.cf /usr/sbin/makemap hash virtusertable.db < virtusertable chmod 0640 virtusertable.db bash jake oracle /etc/mail 17 $ bash jake oracle /etc/mail 17 $ bash jake oracle /etc/mail 17 $ I'll search google for info about these files: freebsd.mc freebsd.submit.mc virtusertable virtusertable.db And I'll read that readme: /usr/share/sendmail/cf/readme -b --- Doug Hardie wrote: > > 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. > > ____________________________________________________________________________________ Got a little couch potato? Check out fun summer activities for kids. http://search.yahoo.com/search?fr=oni_on_mail&p=summer+activities+for+kids&cs=bz