Setup the mail as if Avast’s isn’t there. If needed check avast4.ini if everything under the [mailscanner] section is set to default. (see Technicals FAQ thread on this board)
Does this solves the problem?