Microsoft Outlook 2007 with GMAIL and AVAST
Since both GMAIL and AVAST (Anti-Virus) both use SSL, you need to tweak the account settings in Microsoft Outlook to make your authentication work.
In summary:
use the standard settings for a gmail account in Outlook and configure the SSL settings for a gmail account in Avast