From owner-freebsd-questions@FreeBSD.ORG Mon Sep 5 08:59:36 2011 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 11AE71065674 for ; Mon, 5 Sep 2011 08:59:36 +0000 (UTC) (envelope-from bonomi@mail.r-bonomi.com) Received: from mail.r-bonomi.com (mx-out.r-bonomi.com [204.87.227.120]) by mx1.freebsd.org (Postfix) with ESMTP id B52538FC14 for ; Mon, 5 Sep 2011 08:59:35 +0000 (UTC) Received: (from bonomi@localhost) by mail.r-bonomi.com (8.14.4/rdb1) id p858wtY4007045 for freebsd-questions@freebsd.org; Mon, 5 Sep 2011 03:58:55 -0500 (CDT) Date: Mon, 5 Sep 2011 03:58:55 -0500 (CDT) From: Robert Bonomi Message-Id: <201109050858.p858wtY4007045@mail.r-bonomi.com> To: freebsd-questions@freebsd.org In-Reply-To: <201109042144.PAA05877@lariat.net> Subject: Re: Cutting sendmail out of the loop 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, 05 Sep 2011 08:59:36 -0000 > Date: Sun, 04 Sep 2011 15:44:45 -0600 > From: Brett Glass > Subject: Re: Cutting sendmail out of the loop > > Johan: > > Actually, since the system I'm building is meant to be very secure and > appliance-like, it doesn't ever need to get mail "out of the system." And > it has limited memory, so it shouldn't be running a mail daemon. At most, > it needs a mail system that can ONLY mail locally, solely for the purpose > of satisfying programs that want to send users status via mail. (The mail > files will be trimmed by newsyslog, so they can't consume infinite > space.) Even the Dragonfly mail daemon would be overkill. How about a simple _shell_script_ that simply finds the addressee in the command-line parameters, and appends the content from stdin to that addressee's mailbox? If you want to get fancy, you add calls to lockfile to prevent potentially intermixed output.