See below...
Yes. Perfect sense. ;) I should have realized this right from the start, but Avast is functioning as a "proxy", intercepting outgoing mail (port
25), incoming mail (port 110), and IMAP mail (port 143), so that it can scan said mail for viruses. The 127.0.0.1 means it's only allowing connections from your machine (localhost), but it's possible that your firewall simply allows that application free rein to connect, and relies on Avast to accept or reject connections based on its own criteria.There's really nothing at all fishy with this. After realizing what's going on I can't see any other way to do it.