Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 18 Aug 2005 13:03:03 -0400
From:      Chuck Swiger <cswiger@mac.com>
To:        freebsd-questions <freebsd-questions@freebsd.org>
Cc:        Simon Morgan <sjmorgan@gmail.com>
Subject:   Re: sendmail stalling during boot
Message-ID:  <4304BF47.6070301@mac.com>
In-Reply-To: <de63970c05081809494cc74603@mail.gmail.com>
References:  <de63970c05081808561a25cf9c@mail.gmail.com> <4304B224.5050504@mac.com> <de63970c05081809155b91a389@mail.gmail.com> <4304B716.2020305@mac.com> <de63970c05081809494cc74603@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Simon Morgan wrote:
> On 8/18/05, Chuck Swiger <cswiger@mac.com> wrote:
>>Of course.  If you only want to deliver mail locally, and never consider the
>>network at all, /usr/libexec/mail.local will do that for you.
> 
> Do I need to somehow specify this as my MTA instead of sendmail or is it
> already used for local mail and I just somehow disable sendmail?

/usr/libexec/mail.local isn't an MTA, it's a LDA, or local delivery agent.

MTAs like sendmail and postfix use the LDA to actually deliver mail which 
should go to a local user account (ie, in the sense of locking the mbox file in 
/var/mail/$USER and appending the new message, or maildir's conventions, etc).

>> However, if you want to do SMTP, even SMTP on localhost via sendmail, you have
>> to use FEATURE(nocanonify) to disable DNS lookups.  Unless told otherwise,
>> sendmail is intended to run as a fully connected SMTP box, which means it has
>> to pay attention to DNS, MX records, address re-writing, alias expansions, and
>> all of the rest of the stuff it does.
> 
> Basically all I want is for any programs run on the system and mail
> their results to root to be able to do so.

I see.  Much of those automated messages assume they are using sendmail, they 
generally won't call mail.local directly, unfortunately.

You might find it useful to read "man mailwrapper" for more info.

-- 
-Chuck




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4304BF47.6070301>