Goto Mail Shield, SSL Scanning, and check the settings there. You no longer need to define the SSL ports for Avast, if there are ports listed, delete them, and make sure you have Scan SSL ticked. In you email client make sure that you have the "correct ports" defined, ie. 995, 465...