Subject: Re: Some Help with SendMail, Please?
To: None <hotz@jpl.nasa.gov>
From: John Darrow <jdarrow@jdarrow.wheaton.edu>
List: port-macppc
Date: 02/22/2001 14:04:44
Henry B. Hotz <hotz@jpl.nasa.gov> wrote:
>Thanks for pointing out that I should look in /var/spool/mqueue like 
>it said in the output I posted!  I told you I had a bad attitude on 
>this subject |-(

>I actually have sendmail turned off in rc.config on this machine. 
>Outgoing mail gets out anyway though.  Hmmm. . .  Oh well.  DFIIIAB 
>(Don't Fix It If It Ain't Broke).

If you've got sendmail turned off in rc.conf, then any message which can't
immediately be delivered (due to e.g. a transient failure in name service,
or a host down briefly) will be queued up indefinitely (or at least until
you manually flush the queue by running sendmail -q).

I find that, for non-mail-receiving machines, it works best to run sendmail
in non-listening mode (i.e. without option -bd), but with a queue run
interval to your liking (i.e. -q15m to run the queue every 15 minutes).
This allows your machine to queue up mail during network problems and send
it out when things are working again, without opening you up to attacks or
relays from outside.

In other words, put the following in your /etc/rc.conf:

sendmail=YES		sendmail_flags="-q15m"

jdarrow

-- 
John Darrow - Senior Technical Specialist               Office: 630/752-5201
Computing Services, Wheaton College, Wheaton, IL 60187  Fax:    630/752-5968
Alphapage: 6303160707@alphapage.airtouch.com            Pager:  630/316-0707
Email:     John.P.Darrow@wheaton.edu