Click on avast tray icon, doubleclick “Internet mail” and on “Advanced” tab specify zero in “Timeout for Internet communication”, this disables timeout checking. You must have avast build >= 4.0.160 otherwise this setting will not be accepted.