You’d better turn off TLS/SSL in TB and let Avast handle it.
http://napoveda.seznam.cz/cz/imap-pop3-smtp.html