I am not sure if this is the same problem that I have been having with Apple Mail, but I have experienced big problems with Avast blocking mail from being delivered to my mail client - see my post “Apple Mail not retrieving email”.
There are a couple of suggestions there.
Chris