Moving your Apple Mail to a new Mac, or to a new, clean install of the OS, may seem like a difficult task but it actually only requires saving three items and moving them to the new destination.
There are a few ways to perform the move. By far the easiest, and the most often suggested method is to use Apple’s Migration Assistant. This method works well in most cases, but there’s one drawback to the Migration Assistant.
Its approach is mostly all-or-nothing when it comes to moving data. You can select some basic categories, such as applications or user data, or just support files, and most of the time it works fine.
Where you can run into problems is when there’s something wrong with your Mac. You’re not sure what it is, maybe a corrupt preference file or a system component that’s a little whacky, and causes problems now and then. The last thing you want to do is copy a bad file to your new Mac or new install of OS X. But starting over completely doesn’t make sense, either. You may have years of data stored on your Mac. While some of it may be fluff, other pieces of information are important enough to keep on hand.
While it may be easy to recreate your mail accounts on a new system, it’s not easy to start off fresh, with none of your older email available, your Mail rules gone, and Mail always asking for passwords that you may have long since forgotten.
With that in mind, here’s a simple way to move just the data Apple Mail needs to a new location.
When you’re done, you should be able to fire up Mail on your new system and have all your emails, accounts, and rules working just the way they did before the move.
What You Need to Move Mail
- A way to transfer files to the new location. You can transfer your files over a network, burn them to a CD or DVD, copy them to a USB flash drive, or, if the new system is on the same Mac, copy them from one hard drive partition to another. We won’t discuss the actual mechanism you use to perform the transfer, only which source files need to be copied, and where they need to be stored in your new installation.
- Administrative access to your data. You may need to change the file privileges, although for most users, this will probably not be necessary.
If you’re all set, then let’s get started.
Published: 11/10/2009
Updated 1/19/2015
Back Up Before Moving Mail Data
Before you start moving files around, make sure you have a current backup of your mail.
Back Up Data Using Time Machine
Select the 'Back Up Now' item from the 'Time Machine' icon in the menu bar or right-click the 'Time Machine' icon in the Dock and select 'Back Up Now' from the pop-up menu. If you don't have the Time Machine menu bar item, you can install it by doing the following:
- Launch System Preferences by clicking the 'System Preferences' icon in the Dock, or selecting 'System Preferences' from the Apple menu.
- Select the 'Time Machine' preference pane in the System Preferences window.
- Place a check mark next to 'Show Time Machine status in the menu bar.'
- Close System Preferences.
You can also create a backup using one of many third-party applications. Once you back up your data, you're ready to continue.
Published: 11/10/2009
Updated: 1/19/2015
When Moving Apple Mail Copy Your Keychain Data
There are two folders and a file that need to be copied to your new Mac or your new system. You will actually be copying data for both Apple Mail and Apple's Keychain application. The Keychain data you copy will allow Apple Mail to operate without asking you to supply all of your account passwords. If you only have one or two accounts in Mail, then you can probably skip this step, but if you have many Mail accounts, this will make using the new Mac or system easier.
Before you copy the Keychain files, it's a good idea to repair the files to ensure the data within them is intact.
Repair Your Keychain Files
- Launch Keychain Access, located in /Applications/Utilities.
- Select 'Keychain First Aid' from the Keychain Access menu.
- Enter the User Name and Password for the user account you are currently logged in with.
- You can perform just a 'Verify' to see if anything is wrong, or you can select the 'Repair' option to verify the data and repair any problems. Since you have already backed up your data (you did back up your data, right?), select 'Repair' and click the 'Start' button.
- When the process is complete, close the Keychain First Aid window, and then quit Keychain Access.
Copy the Keychain Files to the New Location
OS X Lion and later, hides the users Library. You can make the username/Library folder visible by following the guide OS X Lion Is Hiding Your Library Folder.
- Open a Finder window by clicking the 'Finder' icon in the Dock.
- Navigate to username/Library/, where 'username' is the name of your home directory.
- Copy the Keychain folder to the same location on your new Mac or in your new system.
Published: 11/10/2009
Updated: 1/19/2015
Copying Your Apple Mail Folder and Preferences To a New Mac
Moving your Apple Mail data is a pretty simple task, but before you do, you may want to take a bit of time to clean up your current Mail setup.
Apple Mail Cleanup
- Launch Apple Mail by clicking the 'Mail' icon in the Dock.
- Click the 'Junk' icon, and verify that all of the messages in the Junk folder are indeed junk messages.
- Right-click the 'Junk' icon and select 'Erase Junk Mail' from the pop-up menu.
Apple Mail Rebuild
Rebuilding your mailboxes forces Mail to re-index each message and update the message list to accurately reflect the messages actually stored on your Mac. The message index and the actual messages can sometimes get out of sync, usually as the result of a Mail crash or an unintended shutdown. The rebuild process will correct any underlying issues with your mailboxes.
If you use IMAP (Internet Message Access Protocol), the rebuild process will delete any locally cached messages and attachments, and then download fresh copies from the mail server. This can take quite a while; you may decide to forgo the rebuild process for IMAP accounts.
- Select a mailbox by clicking once on its icon.
- Select 'Rebuild' from the Mailbox menu.
- Once the rebuild is done, repeat the process for each mailbox.
Copy Your Mail Files
OS X Lion and later, hides the users Library. You can make the username/Library folder visible by following the guide OS X Lion Is Hiding Your Library Folder.
- Quit Apple Mail if the application is running.
- Open a Finder window by clicking the 'Finder' icon in the Dock.
- Navigate to username/Library/, where 'username' is the name of your home directory.
- Copy the Mail folder to the same location on your new Mac or in your new system.
Copy Your Mail Preferences
- Quit Apple Mail if the application is running.
- Open a Finder window by clicking the 'Finder' icon in the Dock.
- Navigate to username/Library/Preferences, where 'username' is the name of your home directory.
- Copy the 'com.apple.mail.plist' file to the same location on your new Mac or in your new system.
That's it. With all the necessary files copied to the new Mac or system, you should be able to launch Apple Mail and have all of your emails in place, your Mail rules functioning, and all Mail accounts working.
Published: 11/10/2009
Updated: 1/19/2015
If something can go wrong, it usually will, and moving Keychains around can cause a problem. Luckily, it is easy to correct.
Problems With Keychain
When you try to copy the Keychain file to its new location on your new Mac or system, the copy may fail with a warning that one or more Keychain files is in use. This can happen if you have already used your new Mac or system, and in the process, it created its own Keychain files.
To work around the problem, try the following:
- Launch Keychain Access, located in /Applications/Utilities, on your new Mac or system.
- Select 'Keychain List' from the Edit menu.
- Make a note of which Keychain files in the list have a check mark next to their name.
- Uncheck any checked Keychain files.
- Repeat the instructions on Page 3 to copy the Keychain files to your new Mac or system.
- Reset the check marks in the Keychain list to the state you noted above.
Published: 11/10/2009
Updated: 1/19/2015
Moving mail files between systems can cause permission problems. Fortunately, these problems are easy to correct.
Problems With Copying Mail Files
Occasionally, you may run into a problem when you first launch Apple Mail on your new Mac or system. The error message will usually tell you that Mail does not have permission to access a file. The usual culprit is username/Library/Mail/Envelope Index. Make a note of which file is listed in the error message, then do the following.
- Quit Apple Mail, if it’s running.
- Open a Finder window by clicking the ‘Finder’ icon in the Dock.
- Navigate to the file mentioned in the error message.
- Right-click the file in the Finder window and select ‘Get Info’ from the pop-up menu.
- In the Get Info window, expand the ‘Sharing & Permissions’ item.
- Your username should be listed as having Read & Write access. You may find that, because the account IDs between your old Mac and the new system are different, instead of seeing your username listed, you see ‘unknown.’ To change the permissions, do the following:
- Click the lock icon in the bottom right corner of the Get Info window.
- Enter your administrator username and password, and click ‘OK.’
- Click the ‘+’ (plus) button.
- The ‘Select a New User or Group’ window will open.
- From the list of users, click your account, and click ‘Select.’
- The selected account will be added to the Sharing & Permissions section.
- Select the ‘Privileges’ item for the account you added in the Get Info window.
- From the Privileges dropdown menu, select ‘Read & Write.’
- If there is an entry with the name ‘unknown,’ select it, and click the ‘-’ (minus) sign to delete the entry.
- Close the Get Info window.
That should correct the problem. If Apple Mail reports a similar error with another file, you may want to just add your username to every file in the Mail folder using the Propagate command.
Propagating Your Privileges
- Right-click the Mail folder, located at username/Library/.
- Using the instructions above, add your username to the Permissions list, and set your permissions to ‘Read & Write.’
- Click the gear icon at the bottom of the Get Info window.
- Select ‘Apply to enclosed items.’
- Close the Get Info window and try launching Apple Mail again.
You can also try reseting user permissions, if all else fails.
That’s it. You should be ready to go with Apple Mail.
Published: 11/10/2009
Updated: 1/19/2015