I'm writing a program to read emails from python
when I execute below code it hangs in the last line
import imaplib
mail_server = "192.168.2.2"
connection = imaplib.IMAP4_SSL(mail_server,993)
I have already opened port 993.
is any other port permissions are required for imap connection to work?