Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I want all my mails to stay on Google server (as I read them from multiple clients and from the web), being able to delete then from the client (deleting them on the server as well) and do not retrieve all 3GB of them when first configuring the program.

When trying to add a new Gmail account, Mail doesn't ask how to configure it, so it’s not the Exchange configuration I'm after.

How do I configure Mac Mail app so that it works with Gmail like iOS's mail application does when configured with Exchange server?

share|improve this question

You can configure Gmail as IMAP account type. That will sync your mail messages between multiple mail clients.

That leaves open your request to not retrieve all 3Gb of mail when first configuring the program. There I haven't got an answer only a possible workaround. Many mail clients limit their download sizes when they are on low bandwidth connections. You could try to limit your bandwidth, for exmample to 8 kbps, with these terminal commands when having Gmail configured to use secure imap:

$ sudo ipfw pipe 1 config bw 8kbit/s #create reduced bandwidth pipe
$ sudo ipfw add pipe 1 src-port imaps #sent traffic from imaps thru pipe

As Gmail is not offering an Exchange server, only ActiveSync compatible, you will never get an exact similar experience with Gmail.

share|improve this answer
Isn't it Exchange that Gmail offers? I have set it up as Exchange on iOS (connecting to the server and it works beautifully. – pistacchio Jul 11 '12 at 7:23
Exactly Gmail is not offering Exchange. Gmail is offering an ActiveSync compatible protocol. – Pro Backup Jul 11 '12 at 7:37

(preabmle: the following won't actually give you a working solution, because, as it turns out, is not a true Exchange server and is missing some stuff expects)

Go to /etc/hosts and map,,,,, to some arbitrary IP:

(might not be needed to do that for all of those but I did and it had an effect)

That way, when you add an account with an e-mail address in the form of, will fail to auto-detect that it's Gmail.

It will then complain, but when you press Continue, you can manually choose the account type to be Exhcange. You then change the server to and add the suffix to the user name.

Before pressing "Continue" you comment out the /etc/hosts hack lines. then successfully sets up your Gmail account as an Exchange account.

However, as noted in the preamble, it won't work—as soon as you try to sync the mailbox, it'll just try to sync for a long time and then nothing will happen. —I'm just posting it here for those who are curious/like hacking, and in case implements the missing Exchange features at some point and doesn't get updated immediately.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.