| Author |  | 
      
        | daemic Newbie
 
  
 
 Joined: 19 June 2016
 Online Status: Offline
 Posts: 3
 | 
          Hi all,
           | Posted: 19 June 2016 at 10:28am | IP Logged |   |  
           | 
 |  
 I am looking for help for the following issue:
 I can set up mail addresses via IMAP and STARTTLS but all connections to servers using IMAPS (port 993) are refused (debug says: connection refused).
 Although the port is open and I can use desktop mail clients to access my mail.
 I hosted WebMail at a provider's FTP-Space and have no access to the server-configuration.
 
 Best regards,
 Michael
 | 
       
        | Back to Top |     | 
       
       
        |  | 
        | Igor AfterLogic Support
 
  
 
 Joined: 24 June 2008
 Location: United States
 Online Status: Offline
 Posts: 6167
 | 
          Sounds like the port isn't onen on webserver side. To check if that's the case, download and unpack the test script, specify IMAP hostname in it (the port number is specified already), upload it to your webserver and open the script from the browser. If you get an error message, that means the port is blocked indeed and the error is unrelated to WebMail.
           | Posted: 20 June 2016 at 2:38am | IP Logged |   |  
           | 
 |  
 --
 Regards,
 Igor, AfterLogic Support
 | 
       
        | Back to Top |     | 
       
       
        |  | 
        | daemic Newbie
 
  
 
 Joined: 19 June 2016
 Online Status: Offline
 Posts: 3
 | 
          Hi Igor,
           | Posted: 20 June 2016 at 11:59am | IP Logged |   |  
           | 
 |  
 thank you very much for the skript.
 You are right, I receive "Connection refused (code: 111)".
 That means my webserver does not allow the PHP-script to connect to port 993? Do you know any way to circumvent the issue?
 
 Actually, I was also unable to use port 25 to send mails as well, just port 587 worked.
 
 Thanks,
 Michael.
 
 
 | 
       
        | Back to Top |     | 
       
       
        |  | 
        | Igor AfterLogic Support
 
  
 
 Joined: 24 June 2008
 Location: United States
 Online Status: Offline
 Posts: 6167
 | 
          The message itself means the port is explicitly blocked by a firewall. It's not unusual for hosting providers to block access to email ports, and if that's the case, switching to another host might be the only option. You can try checking this with the host support staff, of course, maybe there are other options they can suggest.
           | Posted: 20 June 2016 at 1:00pm | IP Logged |   |  
           | 
 |  
 --
 Regards,
 Igor, AfterLogic Support
 | 
       
        | Back to Top |     | 
       
       
        |  | 
        | daemic Newbie
 
  
 
 Joined: 19 June 2016
 Online Status: Offline
 Posts: 3
 | 
          Okay, thank you very much!
           | Posted: 21 June 2016 at 12:51am | IP Logged |   |  
           | 
 |  | 
       
        | Back to Top |     | 
       
       
        |  |