When your VPS is sending out spam emails then we will let you know. You have to solve the problem as soon as possible. When not being solved your VPS network connectivity will be suspended by us.
To prevent this, we have some instructions how to stop sending out spam.
Option: you don't use the email option in your VPS at all.
In this case it's easy. You have to stop the mail service of your VPS. Your spam problem is solved permanently
Ubuntu/Debian:
At the command prompt type:
/etc/init.d/postfix stop
/etc/init.d/sendmail stop
update-rc.d postfix disable
update-rc.d sendmail disable
Centos:
At the command prompt type:
service postfix stop
service sendmail stop
service exim stop
chkconfig postfix off
chkconfig sendmail off
chkconfig exim off
Windows:
Stop the SMTP service in Windows
Option: you use the email option in your VPS.
In this case you need to temporary add rules to your firewall from prventing the VPS to send out email
You can still receive emails
Centos:
At the command prompt type:
cp /etc/sysconfig/iptables /etc/sysconfig/iptables.bak
chkconfig iptables on
service iptables start
iptables -A OUTPUT -p tcp -m tcp --dport 25 -j DROP
iptables -A OUTPUT -p tcp -m tcp --dport 465 -j DROP
iptables -A OUTPUT -p tcp -m tcp --dport 587 -j DROP
service iptables save
Then find the cause of the problem.
Ubuntu/Debian:
iptables -A OUTPUT -p tcp -m tcp --dport 25 -j DROP
iptables -A OUTPUT -p tcp -m tcp --dport 465 -j DROP
iptables -A OUTPUT -p tcp -m tcp --dport 587 -j DROP
sudo apt-get install iptables-persistent
sudo /etc/init.d/iptables-persistent save
sudo /etc/init.d/iptables-persistent reload
sudo netfilter-persistent save
sudo netfilter-persistent reload
Then find the cause of the problem.
Windows
Stop the SMTP service in Windows