I recently found that if KAV is installed and scanning mail then IMAP4 clients will cease to function of they use the STARTTLS command (SSL) to encrypt traffic to the internet.

The two options are to not scan mail, or to use unencrypted IMAP4 traffic.