Considering I had a bit of trouble getting the SMTP settings for gmail right, I thought I would post the settings for IMAP with gmail here.
Sending/SMTP:
Account Name: [username]@gmail.com
SMTP Server: smtp.gmail.com Port: 587
Auth-method: LOGIN
Username: [username]@gmail.com Password: your_password
Encryption: STARTTLS
Receiving/IMAP:
Account Name: [username]@gmail.com
Server: imap.gmail.com Port: 993
Auth-method: LOGIN
Username: [username]@gmail.com Password: your_password
Home folder: [pick one]
Encryption: SSL
Hope that helps somebody.