Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 4 Sep 2011 15:08:11 -0700
From:      Michael Sierchio <kudzu@tenebras.com>
To:        Brett Glass <brett@lariat.net>
Cc:        Johan Hendriks <joh.hendriks@gmail.com>, freebsd-questions@freebsd.org
Subject:   Re: Cutting sendmail out of the loop
Message-ID:  <CAHu1Y715abtGKJ0-Bf3yxyJ3LBUS_HAqzXnwgi9hXOK6xhtVmg@mail.gmail.com>
In-Reply-To: <201109042144.PAA05877@lariat.net>
References:  <201109041801.MAA04495@lariat.net> <4E63E11C.4040408@gmail.com> <201109042144.PAA05877@lariat.net>

Next in thread | Previous in thread | Raw E-Mail | Index | Archive | Help
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 <brett@lariat.net> 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"
>



Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?CAHu1Y715abtGKJ0-Bf3yxyJ3LBUS_HAqzXnwgi9hXOK6xhtVmg>