From owner-freebsd-questions@FreeBSD.ORG Sun Sep 4 21:58:39 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 58DF0106564A for ; Sun, 4 Sep 2011 21:58:39 +0000 (UTC) (envelope-from brett@lariat.net) Received: from lariat.net (lariat.net [66.119.58.2]) by mx1.freebsd.org (Postfix) with ESMTP id D65CE8FC0C for ; Sun, 4 Sep 2011 21:58:38 +0000 (UTC) Received: from WildRover.lariat.net (IDENT:ppp1000.lariat.net@lariat.net [66.119.58.2]) by lariat.net (8.9.3/8.9.3) with ESMTP id PAA05877; Sun, 4 Sep 2011 15:44:43 -0600 (MDT) Message-Id: <201109042144.PAA05877@lariat.net> X-Mailer: QUALCOMM Windows Eudora Version 7.1.0.9 Date: Sun, 04 Sep 2011 15:44:45 -0600 To: Johan Hendriks From: Brett Glass In-Reply-To: <4E63E11C.4040408@gmail.com> References: <201109041801.MAA04495@lariat.net> <4E63E11C.4040408@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Cc: freebsd-questions@freebsd.org 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: Sun, 04 Sep 2011 21:58:39 -0000 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. I've tried putting mail.local(8) in as the "sendmail" program in mailer.conf, but it turns out that there are problems with command line options. Not only doesn't mail.local(8) understand all of the fancy options that Sendmail accepts; it doesn't even understand some of the simpler ones that are emitted by mail(8)! For example, mail(8) uses the -i option when invoking sendmail, to keep it from treating lines with just a dot as an end of file marker. mail.local(8) doesn't even have that "feature;" it always waits for EOF. So, it doesn't have that command line option and balks if you include it. I'm thinking that a simple wrapper around mail.local(8) that processed the command line options (Has anyone written one? I find it hard to believe that no one has) would allow mail.local to serve as a local mailer and bypass sendmail(8). If someone handed it an address with an "@" (or, for that matter, anything else that wasn't the name of a local user), mail.local(8) would just reject it. --Brett Glass At 02:35 PM 9/4/2011, Johan Hendriks wrote: >Maybe ssmtp is something you can use. >It is in ports, it does get mail out of the system. >I use it on all of my servers so i can receive the cron mails and so on. > >Personaly i think sendmail should be replaced by such small mailer. >Also Dragonfly has removed Sendmail for there own small and clean >mailer called DMA. >DMA - DragonFly Mail Agent > >Gr >Johan Hendriks >Double L > > > >----- >No virus found in this message. >Checked by AVG - www.avg.com >Version: 10.0.1392 / Virus Database: 1520/3876 - Release Date: 09/04/11