Thanks xmas.

I run the mail protection wizard and in the help I found that I had to manually change
my pop and smtp servers to 127.0.0.1.

It works now.
I would have preferred avast to do that himself.