I assume that you are using win98, ME or lower. In order for avast to scan your email before they are in your inbox avast must intercept them. It does this using the 127.0.01 you see in your account settings.

What OS are you using? What email program are you using?

So you need these settings, exactly what errors are you getting? The more information you can give us the easier it is to help.