cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Go to solution

Can't connect to pop.secureserver.net with python when logged into cpanel

Hi All,

I have Ultimate Linux hosting with cpanel.  I want to run a python script as a cron job. The problem is that the script keeps failing when trying to connect to Godaddy's pop.secureserver.net mail server with an error of 'connection refused'.  I also SSH'd into cpanel and tried just running python and executing only the python command to connect to pop.secureserver.net (poplib.POP3_SSL('pop.secureserver.net') port is implied in the function) but still getting a 'connection refused' error.  This python program has been running for several years and I can run it on any computer or network without issue.  My problem only happens when I try connecting to pop.secureserver.net while trying to run it on my hosting platform.  I can access my domain mail server but no other outside mail servers.  Is cpanel or Godaddy blocking access to outside pop servers for shared hosting on cpanel?  Or do I have an incorrect setting somewhere? BTW this is Godaddy's pop server as I have a Workspace email plan and it is one of those email accounts that I am trying to retrieve data from.  Thanks in advance, any help is much appreciated!!

 

2 REPLIES 2
Community Manager
Community Manager
Solution

Re: Can't connect to pop.secureserver.net with python when logged into cpanel

Hi @tcwaves. Thanks for being part of GoDaddy Community! Unfortunately, you wouldn't be able to do this. cPanel accounts do not allow connections to mail servers other than relay-hosting.secureserver.net, which is the SMTP relay server for our hosting platform. You may consider setting up the domain to use cPanel email instead, then email files would be stored on the server itself. 

 

 

JesseW - GoDaddy | Community Manager | 24/7 support available at x.co/247support | Remember to choose a solution and give kudos.

Re: Can't connect to pop.secureserver.net with python when logged into cpanel

JesseW,

 

While that's not the answer I was looking for at least it is a definitive answer to my question that now allows me to pursue another course of action and stop banging my head against the wall, thank you very much!