If you have a SMTP server on port 25, you have to change the port for avast - insert such a line to the file Avast4\DATA\avast4.ini under [MailScanner]:
SmtpListen=127.0.0.1:26
Then you need to reconfigure accounts in your mail program, if you want to send through avast mail scanner.