Disabling common mail servers.

This document explains how to disable some common messaging applications that
bind mail related ports.

1. Sendmail
===========

1.1. Linux - RedHat Enterprise, Fedora Core, CentOS
---------------------------------------------------

- stop service:

  service sendmail stop

- disable service:

  chkconfig --del sendmail

- uninstall package (optional):
  
  rpm -e sendmail

1.2. Linux - Slackware
----------------------

- stop service:

  /etc/rc.d/rc.sendmail stop

- disable service:

  chmod -x /etc/rc.d/rc.sendmail

- uninstall package (optional):

  removepkg sendmail

1.3. NetBSD
-----------

- stop service:

  /etc/rc.d/sendmail stop

- disable service:

  echo "sendmail=NO" >> /etc/rc.conf

1.4. OpenBSD
------------

- stop service:

  pkill sendmail

- disable service:

  echo "sendmail_flags=NO" >> /etc/rc.conf.local

1.5. FreeBSD
------------

- stop service:

  sh /etc/rc.sendmail stop

- disable service:
  
  echo "sendmail_enable=NONE" >> /etc/rc.conf

1.6. Solaris 10
---------------

- stop service:
  
  svcadm disable -t sendmail

- disable service:
  
  svcadm disable sendmail

- uninstall package:
  
  pkgrm SUNWsndmu
  pkgrm SUNWsndmr  

2. Postfix
==========

2.1. Linux - Mandriva
---------------------

- stop service:

  service postfix stop

- disable service:

  chkconfig --del postfix

- uninstall package (optional):
  
  rpm -e postfix

2.2. Linux - SUSE/Novell
------------------------

- stop service:

  /etc/init.d/postfix stop

- disable service:

  insserv -r postfix

- uninstall package (optional):
  
  rpm -e postfix

3. Exim
=======

3.1. Debian
-----------

- stop service:
  
  /etc/init.d/exim4 stop

- disable service:

  update-rc.d -f exim4 remove

- uninstall
  
  apt-get remove $(dpkg-query --show --showformat='${Package}\t${Conflicts}\n'
  | grep mail-transport-agent | cut -f1)

