How to Block Port 25

If you are emailing from your VPS and you need us to raise the packets per second limit on port 25 for your VPS, reply back to us and let us know.

If you are not emailing from your VPS, you may find that you want to block access to port 25. This can help prevent spam from being sent from your server.

The steps may very slightly depending on the Linux distro that you are using, however the general steps will be the same. In this example we will use CentOS.

Step 1: Add iptables rules to Drop port 25

iptables -A INPUT -p tcp --dport 25 -j DROP

iptables -A OUTPUT -p tcp --dport 25 -j DROP

Step 2: Save iptables rules

service iptables save

  • 110 Users Found This Useful
Was this answer helpful?

Related Articles

Upgrade Linux Kernel

Can I upgrade/modify/change the Linux kernel on my OpenVZ VPS?No. OpenVZ VPS's use the Linux...

Addon Additional RAM

Can I addon additional RAM to my OpenVZ or KVM VPS?Yes, you can. Open up a ticket with sales and...

Iptables Support

Yes, our OpenVZ VPS plans support iptables.

Addon Additional Storage Space

Can I addon additional storage space to my OpenVZ, KVM, or Windows VPS? Yes, you can. Open up a...

TUN Support

Yes, our OpenVZ VPS plans support TUN. You can enable this via your client area services page.