Your system's firewall is what might be causing the program. Please try to temporarily deactivate the firewall, and then to log in to your accounts again. Afterward, even when you reactivate the firewall, your access problem should be solved. If you have a custom configuration, in which you may include protocols, be sure to include and activate IMAPS and SMTPS.