Many people are using both thunderbird and K9 in combination with avast. Yes there are some manual tweaks required.

A quick search on thunderbird (and K9, not necessarily in the same search) on these forums should return some information and hopefully a solution to your problem

HTH David