• Hello and welcome! Register to enjoy full access and benefits:

    • Advertise in the Marketplace section for free.
    • Get more visibility with a signature link.
    • Company/website listings.
    • Ask & answer queries.
    • Much more...

    Register here or log in if you're already a member.

Port 25 is Blocked on My VPS: What Should I Do?

nick

Newbie
Messages
12
Reaction score
1
Points
3
Balance
$0.5USD
Hi, I bought a VPS and installed cPanel on it. After completing the entire setup, when I tested the email, it failed to send. Then I found out that Port 25 is blocked on the VPS. I didn't know that my hosting provider had blocked Port 25.

I don't want to purchase a separate email SMTP relay. What should I do now? Please help me.
 

DewlanceHosting

Newbie
Hosting Provider
Messages
8
Reaction score
1
Points
3
Balance
$0.2USD
First, check if port 25 is opened in the firewall. If it is not open, then open it. If port 25 is open, then try to send email with port 587.

To open port 25 in iptables:
sudo iptables -A INPUT -p tcp --dport 25 -j ACCEPT

Open port 25 in ufw firewall:
sudo ufw allow 25/tcp

Verify if port 25 is open:
sudo ufw status

Open port 25 In firewalld:
sudo firewall-cmd --zone=public --add-port=25/tcp --permanent

Contact your VPS provider. They may be able to help you.
 

AlexTechie

New Member
Messages
6
Reaction score
0
Points
6
Balance
$0.7USD
Hosting providers want to get rid of spamming, so they block port 25. Although this isn't a good solution, it helps them curb spam on a large scale.

I have seen many providers choose to open mail ports after the customer's request for the mail port is approved.
 

HostNamaste

New Member
Hosting Provider
Messages
14
Reaction score
1
Points
8
Balance
$0.3USD
Most hosting providers are blocking port 25 to avoid spamming from their network. However, get in touch with your provider and inquire if they can open it for you.
 

RedV

Newbie
Messages
22
Reaction score
2
Points
3
Balance
$8.7USD
If your provider has blocked port 25, you will need to bypass that block by using an alternative port to talk to the outside world through a relay, perhaps using a Proxmox mail gateway or Mailcleaner. Alternatively, you will need a VPS with other outbound services.
 
Top