Now that my host offers a better webmail client, I decided to switch my email account from POP over to IMAP, so I could access all my mail from anywhere. I was a very disappointed on how poorly Apple’s Mail application supported IMAP right out of the box.
If you’re using a .Mac address it works great, but it just didn’t work using a non .Mac account… at least not without some extra configuration.
After setting up the account through my host, and setting up the IMAP account in Apple’s Mail, I found that items weren’t being synced as they should. Anything I did through the webmail client did show up in Mail, but things I did in Mail did NOT show up in the webmail client. For instance, I could send an email from Mail, and it would send, but it didn’t get written to the ‘Sent’ folder… it just disappears into oblivion without so much as an error message. I would call that a bug.
When you first set up the account in Mail, you should see the folders that exist on the server, listed directly under the accounts inbox (see the updated content at the bottom of this post). For this example I’ve created an account called “my email”. Although Mail can see these folders, it has no idea what they are, so it refuses to write anything to them unless you actually drag and drop a message on to them. So, we need to educate Mail on what these folders are supposed to be used for. It’s very simple to do.
In the accounts list, select one of the folders listed under your new IMAP account. In this case I’m using the “Drafts” folder. Now, go to the “Mailbox” pull-down menu, and go down to “Use This Mailbox For” menu item, and select “Drafts”. When you do this, you’ll see that Drafts item you had selected in your account list jump from just under the account, down to the larger “Drafts” folder (the one with the folded paper icon). Now, Mail understands that this folder is meant for Drafts on your new account and will properly write draft emails to that folder, and in turn sync them to the server.
As you can see from the screen shot above, there are also items for “Sent”, “Trash”, and “Junk”. You’ll need to repeat the procedure listed above for those items as well. In my case, the junk mail folder on the server was called “Spam” by default, but that doesn’t matter. It can be mapped to my “Junk” item.
Once you remap these folders, everything should sync in both directions from Apple Mail, to webmail, and back again.
If you’re like me, you don’t want to store everything in your Inbox. You’ll probably want to create custom folders to file your email. When I first tried to make a new remote folder through Mail, I got an error message saying that Mail could not write the folder to the server. But, I did find a way around this. First, quit Apple Mail. Then, log in through your webmail client, and create at least one custom folder. Now, open Apple Mail again. You should see the folder that you just created through webmail, and you should now be able to create new remote folders through Mail. I’m not exactly sure why this works, but I suspect it’s because Mail doesn’t know where to write the remote folder, without having at least one custom remote folder that already exists to act as a guide.
That’s it. You should now be able to use IMAP with Apple Mail.
A comment was left on this post yesterday by Paul Connolley, suggesting that I should also fill in the “IMAP Path Prefix” under the Advanced tab in Mail’s account preferences in order for my IMAP account to function properly. I double checked with my host, Media Temple, and they told me it was unnecessary. But, I tried Paul’s suggestion anyway, and upon doing so my folders associated with this account jumped from just below it’s inbox (as illustrated earlier in this post), to the bottom of Mail’s sidebar under a new folder with an “@” symbol (illustrated above). After looking around online last night, I discovered that this new display (under the @) is actually how it should be displaying. It should not be listed under the inbox, as it was earlier in this post. I told this to Media Temple, and they said I should go ahead and use “INBOX” as my Path Prefix, as Paul had suggested. note: “INBOX” works for my Media Temple account, and from my understanding is a fairly common Path Prefix, but you’ll want to double check with your host on what you should be using.
Thanks for the great tip, Paul.
note: this new screenshot is taken prior to remapping the folders, as described earlier, that’s why all the folders are still together. Even with using “INBOX” as your Path Prefix, you’ll want to follow the procedure listed above to educate mail on what these folders should be used for. After you remap the folders, you should only see your custom folders listed under the @, and not the standard folders, like Sent, Trash, Drafts, etc…