Thursday, August 12, 2010

iOS Mail for multiple email accounts with Gmail

The setup

  • You use two email addresses: you@a.com and you@b.com.
  • All incoming email to both addresses is forwarded to your Gmail account: you@gmail.com.
  • You setup Gmail to be able to send messages as either you@a.com or you@b.com.

Two incoming SMTP, one IMAP

With this setup, all your email arrives in a unique Gmail account, which can also access through IMAP. When creating a new message in the Gmail web app, you can choose which email should be used as the from address (either you@a.com or you@b.com). When responding to a message, Gmail automatically preselects the address the message you are responding to was sent to, and allows you to override that choice. So far so good.

The problem

The only trouble with this setup is when using Gmail's mobile interface, in particular on the iPhone/iOS. The mobile interface behaves as the desktop interface, except it doesn't allow you to change the from address. When sending a new message, it is always sent from your default email (say you@a.com), which means you can't send a new message from you@b.com. Also, you can't override the email chosen by Gmail when responding to messages.

  1. iOS Mail only supports one email per account (unlike the OS X Mail.app) – If you want two email addresses, you'll need two incoming IMAP or POP servers. You can work around this by setting up a Dummy IMAP server as follows:

    • Account 1: you@a.com, Unique (real) IMAP, SMTP A.
    • Account 2: you@b.com, Dummy IMAP, SMTP B.
  2. When sending an email, you want a copy saved in your Sent folder on your (Unique) IMAP server. You can set this up for you@a.com. But what about you@b.com? Storing outgoing email on Dummy IMAP isn't what you want. You can use the BCC functionality of Mail, and have Mail BCC you@b.com every time you send an email with that address. Unfortunately, at least for those of us using Gmail to handle their email you@b.com, Gmail doesn't seem to be able to forward incoming mail from and to you@b.com, maybe because it doesn't consider it as incoming mail but as sent mail. So you can't forward those BCC to you@gmail.com, to have them end up in the Sent folder of your unique IMAP server.

Conclusion

When using Mail, with the best possible setup, you can't get the emails sent from one of your emails to end up on your unique IMAP server. Unless controlling what email is used when sending message is paramount to you, and you are fine with, on a regular basis, using a desktop mail client to move the Sent messages from Dummy IMAP to Unique IMAP, you are better off using the Gmail mobile web app.

Hopefully, one day, Google will add the ability for you to select the from email address in their mobile web app, as they already do in their desktop web app: we'll look back, and laugh at how complex it used to be, int the old days, to setup that old iOS Mail.