Using WHM/Cpanel How do I open up a port?

I am managing a server and just learning how to do everything. It is a linux server running WHM/Cpanel. I need web scripts on this server to be able to connect to external SMTP servers. Therefore I need to open up port 25 (if it is not already).

How do I open ports on my server? Hopefully by using WHM/Cpanel (I am not too familiar with using the command line).

Thanks for any help.


I would suggest that you read the following article on setting up a new Cpanel/WHM server:

Make sure you get APF firewall installed, and you can easily configure port 25 connections:

And while you’re there, get BFD to notify you of attempts to hack your server: