Setting Up IMAP Mail for iPhone SCREENCAST

Posted on Thursday, July 5th, 2007 at 12:00 pm under Mac Geekery, Tutorials.

Click to play

The iPhone comes with probably the best email application on a mobile device. The problem is that if I read and delete an email on the iPhone, when I get to my laptop I need to do it all over again because my email uses the POP email protocol. And this is cramping my style. With the POP protocol, email is downloaded from the server and stored on my computer. The most recent emails stay on the server usually for a week or two and that’s why multiple devices re-download the same emails. A more productive system is to use the IMAP email protocol. With IMAP, all email stays on the server. If you delete an email on the iPhone, it is deleted when I get to my computer. I only have to do things once and that’s the beauty of it.

In this tutorial I’m going to show how to switch an account from POP to IMAP. And to be honest, you don’t need an iPhone to benefit from this setup. IMAP will allow you to check your email from work or some one else’s computer and have access to all of you email folders and sent emails. This is not for web services like Google or Hotmail, although as long as it supports IMAP it doesn’t really matter.

This example uses Apple’s Mail in Tiger. But, I believe IMAP was supported in Panther as well.

Step 1: Disable email checking

Disable Email Checking

First disable email checking in ALL accounts so that there are no other processes happening while you set up Mail. From Apple’s Mail application menu go to ‘Mail > Preferences’ and select the Accounts tab. Go through each of your accounts and from the Advanced tab deselect “Include when automatically checking for new email”.

Step 2 Create a new Email Account

Create New Account

Next, select the plus sign at the bottom of the Accounts window to create a new account.

Name Account

Enter your account description, name and email.

Incoming Mail Server

Enter your incoming server info. This is supplied by your email provider and is usually the same as your POP email settings.

Outgoing Mail Server

Enter you outgoing mail server info as well.

New Account Created

Mail will then check the outgoing mail server before creating the account. This process can take a few minutes. 

Step 3: Disable email checking on new account

Disable Account

Once the account is created, deselect the automatic checking for email like we did on all the other accounts. 

Step 4: Set IMAP Path ( if needed )

IMAP Prefix

This step is only taken if needed. In my case, my mail server stores all mailbox folders inside of the INBOX folder. Some server are set up differently, it is best to find out from your provider. Try INBOX to start, we’ll see if that works on step 6.

Step 5: Assign folders ( if needed )

Assign Folders

Once the account is set up properly, if there are folders in your local account, Mail will show the basic Sent, Draft, Trash folder under a Globe icon. This icon is the mail account in your server. To tell Mail these folders should be considered special folders, just choose a folder, i.e. trash, and go to the top menu and select ‘Mailbox > Choose This Mailbox For’ and select it’s type. Trash should be Trash etc.

Step 6: Copy local emails to IMAP account

Create New Mail Box

To copy emails from the POP account to the IMAP account, just create a new mailbox by clicking on the plus sign at the bottom left corner of the Message Viewer window. When prompted, choose your IMAP mail account from the location popup window and name the folder you choose to copy.

Copy Folder Contents

Start by noting how many emails are on the local folder you are copying then select them all and drag them to the corresponding folder in the IMAP server. In the screenshot above we are copying all the email from the selected Archives folder to the Archives folder in the All Forces IMAP server at the bottom of the list. The speed of the transfer depends on how many emails you are transferring, their file size and what upload speed your internet connection is. Open the Activity Viewer window to keep track of the progress.

Delete Empty Folder

Once all the emails of the folder are copied to the server, double check that they all copied by selecting the folder on the server and looking at its message count in the window name. If all emails copied, control+click the local folder and select Delete from the pull down menu. Sometimes the deleting step needs to be repeated.

Copy Inbox Items

Once you are done copying all folders, open the Inbox Mailbox by clicking on the triangle and move all the Inbox emails from the POP account to the Inbox of the IMAP account. Do the same step for the Drafts and Sent folders. Trash is optional. Some of you like to undelete I am sure.

Step 7: Delete POP Account

Remove Accounts

Double check that there are no more local email folders with any emails in them. And that there are no emails in the local POP account Inbox, Draft or sent folders. I can not stress this enough, this step can NOT be undone. Your will loose emails if you still have them locally in your POP account. From the menu select ‘Mail > Prefereces’ and go to the Accounts tab. Select the old POP account and press the minus icon to delete his account. This deletes the POP email account. 

Step 8: Enable email checking

Enable Email Checking

Next, go through each of your accounts and from the Advanced tab select “Include when automatically checking for new email”. Now close the Preferences window and from the to menu select ‘Mailbox > Synchronize All Accounts’. This step will synchronize your local emails with the server. This process will take a little while the first time you do it. 

Step 9: Sync iPhone and enjoy

iphone mail folders

Sync up your iPhone to transfer your new Mail account settings. When completed, unplug it and turn it on. From the iPhone, select the Mail application, select your email account and you will notice you now have all of your folders listed there. You might need to wait a little bit the first time as the phone synchronizes with the IMAP server. Tap on a folder to see the emails in them. Also, when reading an email in the inbox, tap the folder icon and you get the folder list where you can move the email to.

Conclusion

Switching from POP to IMAP is relatively painless but it does take some careful attention to avoid any email loss. I have moved accounts in as quick as half an hour ad as long as a day and a half due to lots and lots of attachments and slow upload speeds. Keep in mind, most hosting services do have a size limit for your account so keep an eye on your attachments. Mail provides a nice function under ‘Message > Remove Attachments’ where you can remove large attachments after you have copied them to another place in your computer. I have a dynamic folder called Attachments that automatically gets populated only with emails that have attachments that gives me a quick view off all my attachments. Also, keep in mind that IMAP is not as snappy as POP mail. But the slight delay, which is only noticeable when you first select a folder, is more than made up by the fact that you are always accessing your email directly whether it’s from your Mac, webmail or the iPhone. Also, iPhone shows a maximum of 50 200 emails per folder. So if you do need access to ALL of your emails, try doing sub-folders or just check your IMAP mail through a browser in the iPhone.

That’s all for now. Happy emailing…

Pings are closed Comments are open Comments RSS

15 Responses to “Setting Up IMAP Mail for iPhone SCREENCAST”

  1. gravatar Flag Ted
    Jul 5th, 2007 at 5:33 pm

    Good tutorial, but remember - your email account must support IMAP for this to work. Gmail, for instance, does not.

    Also, I believe IMAP support has been in Mail since version 1.0 (Mac OS X). .Mac’s mail is IMAP based, and Mail has always supported it.

  2. gravatar Flag Bob
    Jul 6th, 2007 at 3:03 pm

    You can always uncheck the “Enable this account” checkbox in the Advanced tab of the POP email account settings, for safety. This way the POP emails will stay on your computer but will just not show up in Mail.

  3. gravatar Flag JT
    Jul 7th, 2007 at 7:48 pm

    One more thing you can do, is to enable SSL encryption of the IMAP and SMTP traffic. Similar to the IMAP requirement, the server must be setup to support this, but it’s far more secure.

  4. gravatar Flag Johnny
    Jul 8th, 2007 at 6:23 pm

    Good article but a couple of notes:

    - Most freebie mail doesn’t support IMAP. That includes gmail, hotmail and yahoo. Mail Plus for yahoo mail only gives you POP access (I’ve been bugging them for years to bring IMAP). Surprisingly AIM gives you an email account that is IMAP accessible. There are others out there but they are few and far between. Most are web only or POP at best.

    - Also, the reason why IMAP appears to be slower than POP is because IMAP is constantly communicating to the remote mail server. It connects to download mail headers so you can see how many new messages you have and when you click on an email, it has to connect to the remote server to fetch it. Depending upon the speed of your internet connection, it can appear to be slow. IMAP on the iPhone using ATT’s EDGE network must be rather show (I don’t own one so I don’t know how slow it really is).

  5. gravatar Flag Rishabh
    Jul 9th, 2007 at 9:53 pm

    How do you configure .Mac for IMAP?

  6. gravatar Flag Nick
    Jul 24th, 2007 at 2:50 am

    “How do you configure .Mac for IMAP?”

    You don’t need to. That’s what Mail.app gives you by default:

    “In Mac OS X, Mail uses IMAP by default for Mac.com accounts.”

    http://docs.info.apple.com/article.html?artnum=51729

    If you’re using some other mail client application just make sure you select IMAp for the server type:

    http://docs.info.apple.com/article.html?path=Dotmac/Mail/en/mac14.html

  7. gravatar Flag Armando
    Jul 25th, 2007 at 4:03 pm

    I’m typing this from my iPhone; which I love by the way.

    Anyways my email info@FalconForSenate2036.com is through AOL where I was able to create it.

    Anyways I have it setup through imap, but whenever I try to send an email it says the email was not recognized by the server.

    How do i fix this?

  8. gravatar Flag BOK
    Jul 29th, 2007 at 2:57 pm

    Too bad Mail.app uses “Deleted messages” instead of IMAP-standard “Trash”.
    I still can’t get this to work properly with my Dovecot IMAP-server… :-(

  9. gravatar Flag Pankaj Gautam
    Aug 7th, 2007 at 5:38 pm

    iphone authentication for imap and exchange for some reason doesn’t support any special characters in the password.
    so if you have any those characters in the imap/exchange/yahoo (i have tried these 3 only)
    and you are not able to connect, just change the password and try again.

    may be there will be a fix in the next release

  10. gravatar Flag daantje
    Sep 12th, 2007 at 12:59 pm

    BOK: it’s real easy to get Mail use the .Trash directory instead of the .Deleted messages… I had the same problem, I found this:

    “It’s very easy to manually assign which folder should act as which mailbox: You simply click on the IMAP folder in the mailbox drawer, and then select the menu item “Mailbox–>Use This Mailbox For–>(choose the mailbox name)”. So, one at a time, you would click through your IMAP drafts folder, then your IMAP sent folder, then your IMAP trash folder. And for each folder that you clicked on, you would simply assign it to a mailbox from the menu item. Very easy process.”

  11. gravatar Flag tiffany
    Sep 30th, 2007 at 1:33 pm

    Hey so i was reading this article and tried to figure it out but wondering if you could recommend someone that supports IMAP? I live in Can, and I am with rogers and they do not support it.
    Any suggestions?
    Your instructions look pretty clear so I really want to do this for my iphone.
    Any help would be greatly appreciated!

    Thanks

  12. gravatar Flag JC
    Oct 3rd, 2007 at 10:10 am

    I was having the problem that my .Mac emails would show up in the message list, but then when I would select one it would say “Loading…” forever and NEVER load.

    Then I discovered the solution.

    If you set up your .Mac account on your iPhone using the Settings->Mail->Add Account…->.mac THEN you must delete this account. Then reboot your phone (turn off then on).

    Then set up the account using Settings->Mail->Add Account…->Other. select IMAP and fill everything else out.

    It works perfectly.

    GOD I love IMAP. With three Macs, my own domains, and now an iPhone it makes email totally manageable instead of having to sort and file messages everywhere multiple times.

    Thanks!

    For those of you who are trying to use your .Mac account, I figured out an easy way to make it work. On your iPhone, get rid of the existing .Mac email account setup. Then add a new account, and choose the other option. You then set up the new account with your public email, you use your .Mac info as your incoming mail server and your gmail account as your outgoing server. It works perfectly.

  13. gravatar Flag HumptyDumpty
    Oct 31st, 2007 at 4:11 am

    GMAIL - now supports IMAP - and is FREE -

  14. gravatar Flag EP
    Feb 2nd, 2008 at 2:44 pm

    Brilliant. Nicely done. I wish I’d found this BEFORE i sloshed my way through it.

  15. gravatar Flag Cquaade
    Feb 18th, 2008 at 6:40 am

    On my iPhone, I have successfully set up IMAP with Mac.web, with Gmail, and with Exchange at my office. I see all the folders that I have created on my computer for those accounts. However, to avoid clutter on my iPhone screen, I would like to sync — and see — only a limited number of these folders. How can this be managed? I’ve used DataViz’ RoadSync on my earlier Nokia N73, where I in the client could choose what folders to sync. This I’m not able to find for IMAP on the iPhone.

Leave a Reply

(not published)


For a personalized fancy icon, sign up at Gravatar.com