• Make sure IMAP is enabled in your GMail account settings (on mail.google.com)
  • New Email Account Wizzard
    • New Account Setup: Select "Email account" -- NOT "Gmail"
    • Identity: Enter your firstname and lastname, plus youremail@yourdomain.com
    • Server Information:
      • Server type = IMAP
      • Incoming server: imap.gmail.com
      • Outgoing server: smtp.gmail.com
    • User Names
      • Incoming user name: youremail@gmail.com
      • Outgoing user name: youremail@gmail.com
    • Account Name: gmail.youremail.imap


  • Take TB offline without downloading email (I'm behind a firewall)
  • Further TB setup
  • Tools/Account Settings
  • Select gmail.youremail.imap
  • Server Settings:
  • *Port = 993
  • *Use secure connection = SSL
  • *Check for messages at startup = true
  • *Check for new messages every 55 minutes
  • *When I delete a message: Remove it immediately (Paradoxically, this will retain the email in your "All Mail" folder.  The one thing that Google IMAP uses to trigger deleting an email from All Mail is when a message gets moved to Trash.)
  • Select Outgoing Server (SMTP)
    • Select smtp.gmail.com and click Edit
      • Enter smtp.gmail.com as the Server Name and set the Port to 587
      • Username = youremail@gmail.com
      • Use secure connection = STARTTLS
  • Tools/Options/Network & Disk Space/Connection
    • Automatic proxy configuration URL = file:///k:/pac/cingular/mailproxy.pac
  • From cygwin, start my ssh proxy script x2rose
  • Click Get Mail in TB
    • If it asks to go online, tell it OK.
    • Take it offline afterward. (Click the light-bulb in the status bar.) Tell it do download messages for offline use.
  • Change the default location for Sent and Drafts to [Gmail]/Sent Mail and [Gmail]/Drafts respectively by doing:
    • Tools/Account Settings/Copies & Folders
      • When sending messages, automatically place a copy in
        • Other
        • gmail.youremail.imap/Gmail/Sent Mail
      • Keep message drafts in: "Drafts" Folder on Local Folders
      • Keep message templates in: "Templates" Folder on Local Folders
  • * More Config
    • Check (right-click on, select Properties/Offline)  Enable offline access for Inbox, Sent Mail, Trash, All Mail, Spam.
      • I don't enable it for Drafts, because this can lead to a bunch of copies of the message when using Tbird with Google IMAP.
      • I do perform the Trash folder alignment exercise from Lifehacker.  I like the behavior that deleting a message deletes all copies of it (even those you said to 'copy' to another Tbird folder).  Note that if you really want to keep the other copy, you can move it to your "Local Folders" message store.
    • Tools/Options/Advanced/General/Config Editor
      • Enter mail.server.server in the filter box.
      • Identify mail.server.serverX.name (where X is a number, and the value is the name gmail.youremail.imap).  Record X.
      • Right-click somewhere in the box and select New/String
        • Preference name = mail.server.serverX.trash_folder_name, where X is the number from above.
        • Preference value = [Gmail]/Trash
        • Note: The effect of this is that

Note:
If Get Mail produces (in the SSH session)

 channel 13: open failed: connect failed:

Try going to an outside-the-firewall server and pinging imap.gmail.com.  Then update c:\windows\system32\drivers\etc\hosts to point imap.gmail.com to that address.  Your firewall may be preventing accurate DNS to imap.gmail.com.  Also, the address to imap.gmail.com changes on occasion, so even if you did this once before, you may have to do it again.