error messages on start up

Hi recently installed avast no probs at first but now when i start up i get error messages saying avast will not be able to protect incoming mail and outgoing mail with an error number 10022 Also when avast tries to check for updates i get cannot connect to server message although i can use the web perfectly fine Any suggestions?

Check the settings in Avast and make sure Avast has permission in your firewall.

Error 10022 means: An invalid argument was supplied (WSAEINVAL)
I hate numbered error messages :frowning: But you can see more here: http://forum.avast.com/index.php?board=2;action=display;threadid=2760

Will this help?
http://forum.avast.com/index.php?topic=11220.0
http://forum.avast.com/index.php?topic=10065.0
http://forum.avast.com/index.php?topic=9043.0
http://forum.avast.com/index.php?topic=4279.0
http://forum.avast.com/index.php?topic=7115.0