[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [vps-mail] Separate Mail Server



On Wed, September 22, 2004 10:42 am, Jonathan Duncan said:
> On Wed, 22 Sep 2004, Bennett Lanford wrote:
>
>> Jonathan Duncan wrote:
>>
>>> One other thing, on the regular servers, since there are programs that
>>> will be sending mail, I will keep that on.  How about for receiving
>>> mail.
>>> Is there a way to just turn off even the ability to receive mail on
>>> those
>>> servers so that they aren't even bothered by the attempts?  Or is
>>> receiving tied into sending with sendmail also?
>>
>> On VPS2 it is possible to turn off incoming mail while leaving outgoing
>> mail turned on. Are we talking VPS2?
>>
>
> Yes, VPS2

Here's how I have disabled incoming mail on VPS2.

Add the following line to the file /etc/rc.conf:

sendmail_enable="NO"

This will override the default value that appears in the file
/etc/defaults/rc.conf, which is

sendmail_enable="YES"

The "NO" value says not to run the sendmail inbound daemon. (A third
possible value of "NONE" says not to run either the inbound or the
outbound sendmail daemon.)

Whenever I chang the /etc/rc.conf file, I generally reboot the server
(with the "reboot" command--it is pretty fast on VPS2!)

On a reboot, FreeBSD will read the defaults from /etc/defaults/rc.conf, as
well as the "overrides" in /etc/rc.conf, and start only the outbound
sendmail daemon.

-- 
Bennett Lanford
ben@xxxxxxxxxxxxx
======================================================================
This is <vps-mail@xxxxxxxxxxxx>       <http://www.perlcode.org/lists/>
Before posting a question, please search the archives (see above URL).


Main Index | Thread Index
Match: Format: Sort by:
Search: