I cannot send emails from Godaddy vps

Sep 19, 2022
14
0
1
Pakistan
cPanel Access Level
Root Administrator
I recently migrate my godaddy gen 3 vps to gen 4 vps. Now I can’t send emails. On domains emails working but I can’t send emails on hotmail, gmail, yahoo.

Emails are bounce back with error below

This message was created automatically by mail delivery software.

A message that you sent could not be delivered to one or more of its
recipients. This is a permanent error. The following address(es) failed:

[email protected]
all hosts for 'hotmail.com' have been failing for a long time (and retry time not reached)
Reporting-MTA: dns; xxx.xxx.xx.host.secureserver.net

Action: failed
Final-Recipient: rfc822;[email protected]
Status: 5.0.0
I have 8 domains on my server.
I talk to the godaddy support but they are not helping. Because I am using self managed server.

I tried to fix by my self but i could not get success.
Let me elaborate below what I tried

  1. In Email Deliverability I have error REVERSE DNS (PTR). Screenshot is attached. So I created Reverse DNS (PTR) record. Then I created a dns record of smtp relay which resolve on my ip.
  2. Then I tried to add smtp relay into hostname dns.
  3. From Exim Configuration Manager > Mail > I enabled Smarthost support and added smtp relay with *.
  4. Form > Email Routing Configuration I tied to change Local Mail Exchanger, Remote Mail Exchanger of my each domain.
  5. I tried to check smtp 25 port status in Terminal. curl myhostname:25 and curl myserverip:25.
    220-xxx.xx.xx.host.secureserver.net ESMTP Exim 4.95 #2 Tue, 20 Sep 2022 14:30:07 +0000, 220-We do not authorize the use of this system to transport unsolicited, 220 and/or bulk e-mail. 500 unrecognized command, 500 unrecognized command, 500 unrecognized command, 500 Too many unrecognized commands
  6. I checked Service Configuration > Service Manager > Exim Mail Server. 26 port listed here. Screenshot is attached.

Please guide me to resolve this issue.
 

Attachments

Last edited:

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
11,638
1,847
363
cPanel Access Level
Root Administrator
Hey there! This is almost certainly because port 25 is blocked on that network. You can find more details on this behavior here:

 
Sep 19, 2022
14
0
1
Pakistan
cPanel Access Level
Root Administrator
I tried to check smtp 25 port status in Terminal. curl myhostname:25 and curl myserverip:25.
220-xxx.xx.xx.host.secureserver.net ESMTP Exim 4.95 #2 Tue, 20 Sep 2022 14:30:07 +0000
220-We do not authorize the use of this system to transport unsolicited,
220 and/or bulk e-mail.
500 unrecognized command
500 unrecognized command
500 unrecognized command
500 Too many unrecognized commands
I checked Service Configuration > Service Manager > Exim Mail Server. 26 port listed here. Screenshot is attached.
 

Attachments

Sep 19, 2022
14
0
1
Pakistan
cPanel Access Level
Root Administrator
Connecting locally to yourself doesn't test much as far as the rest of the internet is concerned. Try running this from your server and see what the output is:

Code:
telnet gmail-smtp-in.l.google.com 25
I got this
# telnet gmail-smtp-in.l.google.com 25
Trying 142.251.10.27...
telnet: connect to address 142.251.10.27: Connection timed out
Trying 2404:6800:4003:c0f::1a...
telnet: connect to address 2404:6800:4003:c0f::1a: Network is unreachable
 

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
11,638
1,847
363
cPanel Access Level
Root Administrator
That would be a good first step for sure - they may be willing to open that port for your server, and then that's all you'll need to do. Or, they would be able to confirm that opening the port is not an option and you would know that straight from the source.
 
Sep 19, 2022
14
0
1
Pakistan
cPanel Access Level
Root Administrator
That would be a good first step for sure - they may be willing to open that port for your server, and then that's all you'll need to do. Or, they would be able to confirm that opening the port is not an option and you would know that straight from the source.
I checked with godaddy support! They said smtp port 25 is open for my server. They provide me link where i can put my server ip and check the port https://www.yougetsignal.com/tools/open-ports/ and yeah i check by my self too. Port is open for my server ip.
 
Sep 19, 2022
14
0
1
Pakistan
cPanel Access Level
Root Administrator
That test will only show inbound traffic to your server, but doesn't test outbound from your machine. The telnet test is what checks the outbound traffic.

Can you show them the results of that test?
They also said i can open any port by my self to login in Recover Console. For the reference they provide article https://pk.godaddy.com/help/unblock-ports-required-for-my-gen-4-server-27924 to unblock port 2224.

sudo firewall-cmd --permanent --zone=public --add-port=2224/tcp

sudo firewall-cmd --reload
sudo firewall-cmd --list-ports
Should i try this for port 25?