iPhone or iPod touch - Gmail Help
Recommended IMAP client settings - Gmail Help
iPhone IMAP support: using a different port with ASO - A Small Orange Forums
iPhone Secure IMAP