Using Gmail’s IMAP with Apple’s Mail.app, iPhone
I recently purchased an iPhone and decided to switch my PowWeb hosted POP e-mail accounts to Gmail’s free IMAP offerings. Doing this enabled me to read, move, and delete messages on either my iPhone or Laptop and not have to do the same thing again on the other device.
One of my requirements for this change to succeed was that anyone with my existing e-mail address would not have to make any changes. They’d still send to the same address, and e-mail from me would still appear to come from the same address.
I outline the steps I took to accomplish this below.
Enable IMAP in your Gmail account
- Login to your Gmail account.
- Go to “Settings,” then “Forwarding and POP/IMAP.”
- Make sure “Enable IMAP” is selected.
Disable syncing of the “Spam” and “All Mail” folders
- Login to your Gmail account.
- Go to “Settings,” then “Labs.”
- Enable “Advanced IMAP Controls.”
- Click “Edit Labels” in the left navigation (usually green).
- Uncheck “Show in IMAP” for the folders you don’t want to sync. I recommend doing this for all the ones that behave like Apple’s “Smart Playlists.” That includes: Starred, All Mail, and Spam. You can always access them through the web interface.
Enable ability to send from any address
- Login to your Gmail account.
- Go to “Settings,” then “Accounts.”
- Click “Add another e-mail address” in the “Send mail as” section.
- Follow instructions to verify it.
- Make it default by clicking “make default” on the “Accounts” page.
Using this feature allows you to continue to send e-mail from a pre-existing e-mail address (e.g. from your own domain). Just make sure to change your e-mail hosting settings so that any e-mail sent to your “from” address is forwarded to your gmail account. While doing that, you may also want to stop delivery to wherever it’s currently going so that you don’t get every e-mail twice.
Configure your Apple Mail client
Follow Google’s guide for this on their supported IMAP client list page.
If you’re using Gmail’s ability to send from any address, make sure to use that address in your Apple Mail settings (e.g. in step 3 of the Apple Mail 3.0 (Leopard) Gmail IMAP guide).
Configure your iPhone e-mail settings
Don’t sync the Apple Mail configuration. It gets incorrectly converted from a generic IMAP account to a Gmail account on the iPhone. You’ll still be able to send/receive e-mail, but it won’t send from your custom address.
To make sure syncing of the mail account is turned off:
- Plug your iPhone into your Mac.
- Select your iPhone in the iTunes devices list.
- Select the “Info” tab.
- Scroll down to “Mail Accounts” and make sure either “Sync selected Mail accounts” is unchecked or that the entry for your Gmail account is unchecked.
- Click “Apply” if you had to make changes.
To add your IMAP account to your iPhone:
- Open the Settings app.
- Select “Mail, Contacts, Calendars,” then “Add Account,” then “Other.”
- On the first screen use your custom e-mail address for the “Address” field.
- On the second screen fill in the “Incoming Mail Server” and “Outgoing Mail Server” sections the same as your computer’s mail client.
Optional Finishing Steps
- Move over any messages from your downloaded POP mail to Gmail’s IMAP folders. This could take awhile and eat up lots of space.
- Deactivate the account so that Apple Mail hides it and stops trying to check mail at the address.