Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 5 Sep 2011 03:58:55 -0500 (CDT)
From:      Robert Bonomi <bonomi@mail.r-bonomi.com>
To:        freebsd-questions@freebsd.org
Subject:   Re: Cutting sendmail out of the loop
Message-ID:  <201109050858.p858wtY4007045@mail.r-bonomi.com>
In-Reply-To: <201109042144.PAA05877@lariat.net>

Next in thread | Previous in thread | Raw E-Mail | Index | Archive | Help

> Date: Sun, 04 Sep 2011 15:44:45 -0600
> From: Brett Glass <brett@lariat.net>
> 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.





Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?201109050858.p858wtY4007045>