From owner-freebsd-questions@FreeBSD.ORG Fri Aug 31 00:44:03 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 2E52316A46E for ; Fri, 31 Aug 2007 00:44:03 +0000 (UTC) (envelope-from keramida@ceid.upatras.gr) Received: from igloo.linux.gr (igloo.linux.gr [62.1.205.36]) by mx1.freebsd.org (Postfix) with ESMTP id 97B1A13C474 for ; Fri, 31 Aug 2007 00:44:02 +0000 (UTC) (envelope-from keramida@ceid.upatras.gr) Received: from kobe.laptop (dialup127.ach.sch.gr [81.186.70.127]) (authenticated bits=128) by igloo.linux.gr (8.14.1/8.14.1/Debian-8) with ESMTP id l7V0hQvk021569 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Fri, 31 Aug 2007 03:43:35 +0300 Received: from kobe.laptop (kobe.laptop [127.0.0.1]) by kobe.laptop (8.14.1/8.14.1) with ESMTP id l7V0hKxt027840; Fri, 31 Aug 2007 03:43:21 +0300 (EEST) (envelope-from keramida@ceid.upatras.gr) Received: (from keramida@localhost) by kobe.laptop (8.14.1/8.14.1/Submit) id l7V0hKfq027833; Fri, 31 Aug 2007 03:43:20 +0300 (EEST) (envelope-from keramida@ceid.upatras.gr) Date: Fri, 31 Aug 2007 03:43:19 +0300 From: Giorgos Keramidas To: L Goodwin Message-ID: <20070831004319.GA91203@kobe.laptop> References: <551986.10942.qm@web58113.mail.re3.yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <551986.10942.qm@web58113.mail.re3.yahoo.com> X-Hellug-MailScanner: Found to be clean X-Hellug-MailScanner-SpamCheck: not spam, SpamAssassin (not cached, score=-3.867, required 5, autolearn=not spam, ALL_TRUSTED -1.80, AWL 0.53, BAYES_00 -2.60) X-Hellug-MailScanner-From: keramida@ceid.upatras.gr X-Spam-Status: No 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 00:44:03 -0000 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