I'm trying to connect to an imap server:
mailbox = imaplib.IMAP4_SSL(host=server, port=port)
This results in a timeout:
[Errno 60] Operation timed out
So I tried to increase the timeout:
import socket
socket.setdefaulttimeout(4000)
mailbox = imaplib.IMAP4_SSL(host=server, port=port)
But still the same error. It appears around 115 seconds. What could be the cause for the timeout? I guess it has to be something on the server side then?