How to disable Sendmail on VPS servers

To disable the inbound mail server so that no outside servers can connect on the SMTP ports do the following:

Primary Method

Edit the /etc/sysconfig/sendmail file and set DAEMON=no in place of yes.  This will stop port 25 from listening.

Secondary Method

FreeBSD v2 & v3

Modify /etc/rc.conf by adding this line:



Modify the /etc/mail/ file.




DAEMON_OPTIONS(`Port=smtp, Addr=,')dnl

Also change:
DAEMON_OPTIONS(`Port=submission,, M=Ea')dnl

DAEMON_OPTIONS(`Port=submission, Addr=,, M=Ea')dn
  • 0 Kasutajad peavad seda kasulikuks
Kas see vastus oli kasulik?

Seotud artiklid

How To change NameServer Ip

The file that actually handles WHM > DNS Functions > Nameserver IPs area is at...

AppConfig is configured to disallow execution of apps that do not have ACLs defined – cPanel

If you see such an error while accessing any of the WHM Plugins, it is due to the recent changes...

Enable PPP

To enable PPP on your OpenVZ VPS: Log into SolusVM and Enable PPP. Reboot your VPS. Log into...

Initial cPanel WHM Setup

Step by Step Guide to Setup cPanel WHM 1) Login to root WHM (http://IPaddress:2086) 2) In the...

VPS Hosting - Unable to open pty: No such file or directory

When you use vzctl to enter into the VPS from node and get following error than it is due to...

Powered by WHMCompleteSolution