How do I enable sendmail ONLY for local system mail?

Dan MacMillan flowers at users.sourceforge.net
Tue Jun 1 23:08:38 PDT 2004


-----Original Message-----
From: Jonathon McKitrick
>
> I read /etc/mail/README and also a few posts while I was setting up my
> firewall.  but I'm not getting any system mail like expected.
>
> What should the permissions be on my mqueue and clientmqueue dirs in /var?
>
> Here are the rc.conf mail options:
> sendmail_enable="yes"
>
> ...

Hi,

I don't know about your routing issue ... but if you're using the 5.2.1
release, you can put the following in your rc.conf and have it still work
(if, as the subject line says, you really are only using it for local system
mail):

sendmail_enable="no"

It's not intuitive to me either, but it does work (at least it did for me).
>From the rc.sendmail man page:

     sendmail_enable
     (str) If set to ``YES'', run the sendmail(8) daemon at system
     boot time.  If set to ``NO'', do not run a sendmail(8) daemon to
     listen for incoming network mail.This does not preclude a
     sendmail(8) daemon listening on the SMTP port of the loopback
     interface.  The ``NONE'' option is deprecated and should not be
     used.  It will be removed in a future release.

-Danny



More information about the freebsd-questions mailing list