You just need to set up the mail accounts manually to go through 127.0.0.1 and then configure proper SMTP and pop3 in Avast!. (atleast, I had too)