From owner-freebsd-questions@FreeBSD.ORG Sun Sep 4 22:08:12 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 C68681065672 for ; Sun, 4 Sep 2011 22:08:12 +0000 (UTC) (envelope-from kudzu@tenebras.com) Received: from mail-iy0-f182.google.com (mail-iy0-f182.google.com [209.85.210.182]) by mx1.freebsd.org (Postfix) with ESMTP id 999B78FC13 for ; Sun, 4 Sep 2011 22:08:12 +0000 (UTC) Received: by iadx2 with SMTP id x2so7312737iad.13 for ; Sun, 04 Sep 2011 15:08:12 -0700 (PDT) MIME-Version: 1.0 Received: by 10.43.47.193 with SMTP id ut1mr3125781icb.219.1315174091880; Sun, 04 Sep 2011 15:08:11 -0700 (PDT) Received: by 10.43.131.67 with HTTP; Sun, 4 Sep 2011 15:08:11 -0700 (PDT) In-Reply-To: <201109042144.PAA05877@lariat.net> References: <201109041801.MAA04495@lariat.net> <4E63E11C.4040408@gmail.com> <201109042144.PAA05877@lariat.net> Date: Sun, 4 Sep 2011 15:08:11 -0700 Message-ID: From: Michael Sierchio To: Brett Glass Content-Type: text/plain; charset=ISO-8859-1 Cc: Johan Hendriks , 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 22:08:12 -0000 I might suggest installing qmail, and running qmail-send only. This involves moving /usr/sbin/sendmail out of the way, and ln -s /var/qmail/bin/sendmail /usr/sbin/sendmail which satisfies every invocation of sendmail I've seen. YMMV. - M On Sun, Sep 4, 2011 at 2:44 PM, Brett Glass wrote: > 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 > > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" >