From owner-freebsd-questions@FreeBSD.ORG Fri Aug 31 22:31:04 2007 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 7E24716A417 for ; Fri, 31 Aug 2007 22:31:04 +0000 (UTC) (envelope-from xrayv19@yahoo.com) Received: from web58105.mail.re3.yahoo.com (web58105.mail.re3.yahoo.com [68.142.236.128]) by mx1.freebsd.org (Postfix) with SMTP id 4982013C4DE for ; Fri, 31 Aug 2007 22:31:04 +0000 (UTC) (envelope-from xrayv19@yahoo.com) Received: (qmail 59992 invoked by uid 60001); 31 Aug 2007 22:31:01 -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=RE6SDPNDcIxv/l8XDk6F2NTifO8NmxJkqlWhFNUtUqECYSAt240Wv1v7W5G7flpdF6r/m721QVvkHp+bUJe2mz+rZiTGYkh1Hw9RBHlJg/1Vrvtbw1F80Kj2gbf0j4ieNCd+WByVxmL4b4USuvHvJpoJrEyQnUgqQkXtl9+Mua8=; X-YMail-OSG: lMlDa2EVM1kFkTzyaoR1yu2tsd.XoYQh8ySjiEigPn7Ie4IAWDgQC_ocVfvyaEofEY48zus.tg1ca..3a1v3xGVZYw5GM2m3vSR1 Received: from [131.191.82.223] by web58105.mail.re3.yahoo.com via HTTP; Fri, 31 Aug 2007 15:30:59 PDT Date: Fri, 31 Aug 2007 15:30:59 -0700 (PDT) From: L Goodwin To: Bill Moran In-Reply-To: <20070831110403.408c3dfe.wmoran@potentialtech.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Message-ID: <96575.75131.qm@web58105.mail.re3.yahoo.com> Cc: freebsd-questions@freebsd.org Subject: Re: Configuring FreeBSD 6.2 to use sendmail for sending only 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: Fri, 31 Aug 2007 22:31:04 -0000 --- Bill Moran wrote: > In response to L Goodwin : > > > > --- Bill Moran wrote: > > > > > L Goodwin wrote: > > > > > > > > Chuck, I'd prefer to have the script handle > the > > > > mailing so I can test the script (with email > > > send) > > > > manually, independent of cron. > > > > > > Why? What is your reason for overcomplicating > this > > > task by refusing > > > to use the facilities built into the system? > > > > > > > Still looking for specifics on setting this up > and > > > a > > > > bourne shell script example that sends an > email. > > > > Thanks! > > > > > > Use mail(1). That's what it's there for. > > Huh? I want to use cron to run the script, but > want > > more control over when and where email gets sent. > The > > business reasons are sound. Anyway, a script that > > sends email is not complicated, so how can I be > > overcomplicating anything? > > Two lines of code vs. 1 line is overcomplicated. > > While your description of the reasons is somewhat > vague, I still feel > that cron's internal mailer can handle the chore. > What control over > who gets the mail do you need that can't be > accomplished either by > setting an env variable in the crontab, or by adding > aliases to > sendmail's config? > > > Also, recent posts to freebsd-questions on the > subject > > of sending email from cron seemed to favor having > the > > script handle the mailing instead of cron. > > I haven't seen those mails, and can't comment on > them. > > > Anyway, I > > do not want the client to receive an email if the > > backup fails. > > Then don't send the mail to the client, just change > who it goes to: > MAILTO=someone_not_the_client@somedomain.com > > > Bill, I'm just trying to figure stuff out here. > I'm > > sorry if my ignorance offends you. > > I don't know how others feel about it, but I'd > prefer > > not to get negative, condescending replies to my > > sincerely aimed questions. After all, this is a > forum > > for questions, isn't it? > > Please don't mistake terseness for "condescending". > I didn't feel I > was being condescending, and did not intend to be. > What I did was: > a) Comment that I feel you're taking the wrong > approach to solving > your problem. > b) Give you a direct answer. > > What more could you ask for? I apologize if my > language implied a > negative tone. It was not intended that way. Apology accepted. Sorry if I overreacted -- the last few days have been less fruitful than I'd hoped. ____________________________________________________________________________________ Shape Yahoo! in your own image. Join our Network Research Panel today! http://surveylink.yahoo.com/gmrs/yahoo_panel_invite.asp?a=7