The simple rule
- Use an app password, not your normal email password.
- Use IMAP over SSL/TLS on port 993.
- Use your full email address as the username unless your provider says otherwise.
- If the provider blocks the connection, upload .eml files manually and ask your IT admin.