Are there any relevant error messages from com.avast.proxy in the system log when trying to connect to the mail account?