SMTP and SSH Ports Not Responding

Bestrafung

Active Member
Apr 2, 2012
42
0
56
cPanel Access Level
Root Administrator
I recently had an issue with the email server that required me to change the SMTP port in Outlook to 25 because 26 was no longer working. Upon looking into why port 26 wasn't working I have now found that I can no longer connect to SSH. I've tried restarting the SSH server from WHM but there's no change. I've verified that the public IP of my workstation isn't blacklisted and since I can access cPanel/WHM I didn't think it was anyway. As best I can tell the server hasn't been compromised and the root password is unchanged. I just simply cannot connect to the SSH port. Everything was working fine yesterday. Can anyone provide some information or pointers on where to begin to look into this?
 

cPanelPeter

Senior Technical Analyst
Staff member
Sep 23, 2013
585
25
153
cPanel Access Level
Root Administrator
Hello,

Have you tried restarting sshd from within WHM? You can also try this via WHM:

Code:
http://SERVER_IP_ADDRESS:2086/scripts2/doautofixer?autofix=safesshrestart
That should start a very basic sshd with a simple configuration that may let you connect.
 

Bestrafung

Active Member
Apr 2, 2012
42
0
56
cPanel Access Level
Root Administrator
Thank you very much! I had tried a restart but it made no difference. The safe restart script did the job. I guess something must have interfered with port 2022, it's working on 22 again.

I'm still unable to connect to port 26 for SMTP. Do you have any ideas what may have caused this? This isn't a major issue but it seems to be necessary for some mobile devices.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,883
2,256
463
Hello,

Is port 26 enabled under "WHM Home » Service Configuration » Service Manager"? Also, have you ensured the port is open in your firewall configuration (or your CSF interface)?

Thank you.
 

Bestrafung

Active Member
Apr 2, 2012
42
0
56
cPanel Access Level
Root Administrator
Hello,

Is port 26 enabled under "WHM Home » Service Configuration » Service Manager"? Also, have you ensured the port is open in your firewall configuration (or your CSF interface)?

Thank you.
Yes, Exim Mail Server (on another port) is checked and set to 26. Everything has been working fine for over a year until recently. I'm not sure about the firewall, I don't know how it would have blocked itself after all this time but I will look into it.
 

Bestrafung

Active Member
Apr 2, 2012
42
0
56
cPanel Access Level
Root Administrator
Consider this thread resolved. I don't know how it changed after all this time but port 26 was somehow removed from the allowed ports list in CSF. All is well again. It also appears that port 2022 that I was using for SSH was also removed, the safe reset only worked because port 22 is allowed in CSF by default. Somehow CSF reset it's ports settings so I will keep an eye on it in the future and would suggest others do as well.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,883
2,256
463
I am happy to see the issue is now resolved. Thank you for updating us with the outcome.