To disable the avast mail scanner completely, you have to run Mail Protection Wizard (menu Start → Programs → avast! antivirus → Mail Protection Wizard) and remove protection from your accounts.