Friday, November 23, 2007

Completely disable sendmail

Quoted From::
http://lists.freebsd.org/pipermail/freebsd-questions/2005-December/107620.html

On Thu, Dec 15, 2005 at 09:30:07AM +0100, Pietro Cerutti wrote:
> Same thing with "NONE" instead of "NO", moreover `man sendmail.rc` says
>
> 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.

Hi Pietro,

Setting the 4 sendmail*_enable variables to NO as you've done will prevent
any sendmail daemons from running. However, it doesn't stop anything from
directly invoking /usr/sbin/sendmail - which is what cron does when it
wants to send some mail. When sendmail is invoked this way it will try to
deliver the mail according to its submit.cf configuration file.

You should be able to disable any email sending from cron by adding a
MAILTO=""
line to your crontab file. It might still be a good idea to fix your
sendmail configuration so you can actually send mail from this system.

Cheers,

Scott

--

Centos 7 reset root/ any user lost password / lockout due to cant remember password

1. Need to be in front of the terminal. (Physically if not vm). 2. Reboot the server 3. Press 'e' in the GRUB2 boot screen. 3. bunch...