This is ironic as well as desperate. I changed to Avast from VirusBarrier a couple of weeks back, because VB deleted thousands of emails. A senior Apple support tech suggested Avast.
I installed Avast and got greeted with the barrage of SSL/TLS notifications. So I followed the instructions. I changed my ISP's IMAP mail account to no SSL on port 143 and added the server to the SSL list in Avast preferences. Since then I am completely cut off from that server. This is affecting not just IMAP and IMAPS but SMTP as well. The server is totally fire walled.
First to dispose of the obvious: I have a MacBook, two iPhones and an iPad on the same network. They all work perfectly with the ISP's server. I have attempted to revert the settings. I have repeatedly installed and uninstalled Avast. The LAN and my WAN connection to the ISP are all IPv4/IPv6 dual stack. I have tried turning off IPv6 and the other two settings in the Avast mail scanning preferences. Nothing works. My computer is completely isolated from the mail server. My Mail app is working properly with two iCloud accounts, two Exchange servers and another IMAP server.
I have no reason to believe that my IPv6 is not working correctly. It passes all the tests. This forum has an IPv6 address although
www.avast.com does not. The mail server which is cut off does not have an IPv6 address. That is 'dig server.isp.com AAAA' yields no address. Whereas 'dig forum.avast.com AAAA' gives:
;; ANSWER SECTION:
forum.avast.com. 2234 IN AAAA 2001:67c:284:1fe::34
There is no unusual activity in ocspd.
I have spent hours on this and have run out of ideas.
Bill Northcott