title: Connection Refused Error When Trying to Connect to Outlook Using Python's poplib
body: <p>I am trying to connect to Outlook using POP3 in python. </p>
  
  <p><code>mailbox = poplib.POP3_SSL('outlook.office365.com', 995)</code></p>
  
  <p>And I am getting the following error:</p>
  
  <p><code>[WinError 10061] No connection could be made because the target machine actively refused it</code></p>
  
  <p>I am using a VPN, and can ping <strong>'outlook.office365.com'</strong> without issue. I also tried <strong>'pop-mail.outlook.com'</strong> and <strong>'pop3.live.com'</strong> as I saw them mentioned as hostnames online, and received the same error. Please let me know if there is any more useful information I can provide.</p>