Setting up Gmail and Thunderbird in 11.10

view story

http://askubuntu.com – I am trying to setup my Gmail with Thunderbird. I put in the details, the imap and smtp settings were filled in automatically. They were correct I checked. Initially when I clicked on done, to create a new account, Thunderbird gave an alert telling me either the username or password is invalid. However, it was not. So I restarted Thunderbird and tried to load my Gmail automatically the next time and I get this error that "Thunderbird can not connect to the mail server, connection refused". I am in college, so I am behind a proxy server. The settings are set at use system proxy settings, (HowTos)