It has nothing to do with avast as it doesn't change your email settings, much less your security settings.
It is more likely that you don't have a browser set up as the default browser in your email program, etc. this would effectively block the ability to connect.
You don't say what email program you are using ?