Error in gmail that says IMAP server has closed connection. The port configuration is 993. Solution: Tools / Email Accounts / (your account) / Change / More Settings / Advanced / Server Timeouts Change this to 5 minutes