Do you have your mail client set to non-secure SSL off so that it doesn't encrypt the mail internally? If so, the only way it can get to gmail is to have avast! take care of the encryption handshake and scan it. If you are encrypting it internally, avast! can't see it. Have you tried your client with SSL/TLS off and forcing port 587 when you edit the account setup?