From owner-freebsd-questions@FreeBSD.ORG Fri Aug 31 01:04: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 91CFA16A418 for ; Fri, 31 Aug 2007 01:04:04 +0000 (UTC) (envelope-from xrayv19@yahoo.com) Received: from web58114.mail.re3.yahoo.com (web58114.mail.re3.yahoo.com [68.142.236.137]) by mx1.freebsd.org (Postfix) with SMTP id 485CF13C465 for ; Fri, 31 Aug 2007 01:04:04 +0000 (UTC) (envelope-from xrayv19@yahoo.com) Received: (qmail 21522 invoked by uid 60001); 31 Aug 2007 01:03:29 -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=X0BlzTawLEWcqwZ9hYLoZQEnkjP8TDukOEAw1UU5bClWBwOUYGPyWYgbiQfTQIEOw2dp/Tdqc2/Ta2ChAal9FopI+O5g2Z7TczlJFpJduFZAhvTQBrSPeJ2jtpdXDYLH6lKpckedpwQUEHr5s3FZ6vKUSMPm2ZyXVcNXPhy6Gp8=; X-YMail-OSG: YTitN0wVM1m8nyplqNmJ3EGsumv7pUJ7xKHdxTqSn5JF0xnIZR4Q9xyJxjJoaR55crkR9Zxbd_CAjp5QRWC7Ae8CuumE7pBuEcI- Received: from [131.191.82.223] by web58114.mail.re3.yahoo.com via HTTP; Thu, 30 Aug 2007 18:03:29 PDT Date: Thu, 30 Aug 2007 18:03:29 -0700 (PDT) From: L Goodwin To: Giorgos Keramidas In-Reply-To: <20070831004319.GA91203@kobe.laptop> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Message-ID: <581127.21315.qm@web58114.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 01:04:04 -0000 --- Giorgos Keramidas wrote: > On 2007-08-30 17:01, L Goodwin > wrote: > >--- Chuck Swiger wrote: > >> Please see the fine Handbook: > >> > http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/mail.html > >> > >> Although, it is entirely reasonable to consider > >> using Postfix instead. > > > > Chuck, I'd prefer to have the script handle the > mailing so I can test > > the script (with email send) manually, independent > of cron. > > > > Still looking for specifics on setting this up and > a bourne shell > > script example that sends an email. Thanks! > > Hmmm, why? > > A specialized MTA which does only one thing (send > outgoing email), > comforms to SMTP-related standards, supports > authentication mechanisms, > and more importantly does _only_ this job and does > it _correctly_ is > always going to be better than a local 'hack', like > a script. > > Both Sendmail (part of the base system) and Postfix > (suggested by > Chuck), can do this and a lot more. > > Why do you have to "send mail with a bourne shell > script", but _avoid_ > the tools and practices supported by the system > already? > > - Giorgos Um... I just want to pass an email message (complete with From, To, Subject and message body) to a mail handler (sendmail), as I stated in the original post. Anyway, Chuck kindly provided sample code. The only thing I'd like to do differently is to not use a temp file to store the message. Otherwise, I'm happy. ____________________________________________________________________________________ Fussy? Opinionated? Impossible to please? Perfect. Join Yahoo!'s user panel and lay it on us. http://surveylink.yahoo.com/gmrs/yahoo_panel_invite.asp?a=7