How do I enable sendmail ONLY for local system mail?

T. Srikanth kantsg at netscape.net
Wed Jun 2 22:34:19 PDT 2004


You also need to create a file /etc/mail/local-host-names and place the name of the local host in it. It should be possible to have a name lookup for this entry (eg, by /etc/hosts).
--Srikanth


Date: Tue, 01 Jun 2004 23:54:40 -0600
From: Dan MacMillan <flowers at users.sourceforge.net>
Subject: RE: How do I enable sendmail ONLY for local system mail?
To: Jonathon McKitrick <jcm at FreeBSD-uk.eu.org>,
    freebsd-questions at freebsd.org
Message-ID:
    <FGEIJLCPFDNMGDOKNBABEEPHCMAA.flowers at users.sourceforge.net>
Content-Type: text/plain; charset=us-ascii

-----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