Disable Email and FTP on Server

IT_Architect

Verified User
Joined
Feb 27, 2006
Messages
1,114
When I upgrade to a new server, sometimes I have to switch between new and old, and sometimes end up back on the old if there are problems. Shutting off the processes doesn't work because the moment you reboot, it comes back. The problem is, I end up with emails both places. (I keep the same IPs on the new server.) I need a way to shut off the email and ftp during this time so that no information is lost.
 
On Centos until 6.x by chkconfig.

chkconfig --pure-ftpd off (or proftpd if using proftpd)
and
chkconfig --exim off

You still have the chance that Directadmin starts them again. So closing ports might be easier.
 
There are several possible solutions, it's just a matter of how much efforts you want to do, and how much time you have. You can even uninstall ProFTPd and Exim.... but the simplest would be to close the ports with a firewall... or change ports in /etc/proftpd.conf and /etc/exim.conf


exim:

Code:
daemon_smtp_ports = 25 : 587 : 465

to for example:

Code:
daemon_smtp_ports = 1025 : 10587 : 10465


proftpd:

Code:
Port                    21

to for example

Code:
Port                    1021

and restart the services.

Then later change the ports back to original values.
 
Back
Top