Cutting sendmail out of the loop

Robert Bonomi bonomi at
Mon Sep 5 08:59:36 UTC 2011

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

More information about the freebsd-questions mailing list