Hello,
you have posted to the Mac forum. I don't think that there is something that could be fixed on the Avast's side. IMAP/STMP traffic isn't handled in any special way in the VPN tunnel. If the email services do not work when connected to VPN, it is typically because of IP address restrictions set by the email service provider.
Best Regards,
Martin