During install the mail setup wizard does everything for you, I have been using avast for months and this always works. I tried setting it up manually and get the same results.