Stopping your VPS from sending out spam

It is not allowed to send out spam emails.
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
  • 2 Users Found This Useful
Was this answer helpful?

Related Articles

VPS Control Panel

When ordered a VPS you have full access to your VPS.Below you find the information for full...

Recovery Back up.

Warning! When restoring a backup, all previous data will be destroyed!When restoring a backup,...

Remote เข้า VPS ในระบบลูกค้าด้วยปุ่ม VNC

ลูกค้าสามารถทำการเข้า VPS ได้ง่ายโดยไม่ต้องใช้ Remote Desktop เพราะเรามีระบบ VNC...

How to Start/Stop Restart and Access VPS via VNC

Open URL : https://vpsadmin.vpshispeed.com:4083/ Enter Email and Password  Then click...

Re-install VPS

If you messed up your VPS, you can easilly re-install your VPS. Go to the Client Area and...