Using IMAP with GMAIL

2007 Dec 6

One problem with POP3 mail is that when you are downloading mails and suddenly an error has occurred, when you try to restart your download you will get duplicate mails!!! Now my inbox has over 8000 emails and its about 900MB in size, that would be very hard to manually delete those duplicate emails.

With IMAP hopefully that problem will be resolved since it has two-way syncing capabilities. IMAP stands for Internet Message Access Protocol. When using IMAP with GMAIL, all your labeled messages would arrive in folders, that is a label and inside the individual messages with its corresponding marks. Deleting a message in IMAP wont de deleted in GMAIL, you have to move it to the trash or delete it at GMAIL.

You can set your client to work offline to be able to download all your email messages, otherwise on most IMAP clients, it will only download the mail headers. When sending messages from your client creates new labels on GMAIL, they are marked as Sent Messages which indicates that the messages are sent from your mail client. When you create folders on your client they will be treated as label on GMAIL. There folder names which are reserved, they are Chats and Sent, when you try to create a folder with this name on IMAP they have a prefix IMAP/folder name on GMAIL.

Taken from GMAIL help center, How do actions sync in IMAP?

Action on mobile device/client (e.g. iPhone/Outlook) Result in Gmail on the web
Open a message Mark a message as read
Flag a message Apply a star to the message
Move a message to a folder Apply a label to the message
Move a message to a folder within a folder* Apply a label showing folder hierarchy ('MainFolder/SubFolder')*
Create a folder Create a label
Move a message to [Gmail]/Spam Report a message as spam
Move a message to [Gmail]/Trash Move a message to Trash
Send a message Store message in Sent Mail
Delete a message in inbox Remove the message from inbox
Delete a message from a folder Remove that label from the message
Delete a message from [Gmail]/Spam or [Gmail]/Trash Delete the message permanently

Enabling IMAP 1. Login to your GMAIL account 2. Click on the Settings Link on top of the page just beside your email address 3. Click on forwarding and POP/IMAP tab 4. On the IMAP access section, select enable IMAP if its not yet selected 5. Save Changes.

Configuring your client I'm using Outlook 2003, well use it as our client. Or you can click on the link below for your client. On user Information Your Name: the name that will appea in the From: field of outgoing messages. Email Address: your GMAIL email address

On Server Information Incoming mail server (IMAP): imap.gmail.com Outgoing mail server (SMTP): smtp.gmail.com

On Login Information User Name: Your Gmail username (including @gmail.com) Password: Your Gmail password

* Click on More Settings button and on the Outgoing Server tab, Check the box next to My outgoing server (SMTP) requires authentication. * Select Use same settings as my incoming mail server radio button.

On the Advanced tab make the following changes: Check the box next to This server requires an encrypted connection (SSL) under Incoming Server (IMAP) and also under Outgoing server (SMTP) * IMAP port is 993 * Outgoing SMTP port is 465 * Click OK * If you want to you click on Test Account Settings button to check if there are mistakes.

However, IMAP for GMAIL supports the following clients: * Outlook Express (Windows) * Outlook 2003 (Windows) * Outlook 2007 (Windows) * Apple Mail * Apple Mail 3.0 (Leopard) * Windows Mail * Thunderbird 2.0

For more info you can visit the Gmail help center regarding setting up Gmail with IMAP and POP3


----- CISSP certified person can work in all IT industries; banks, manufacturing companies and service businesses. Increase in demand for 350-018 certified persons in networking field shows that this certification can fulfill the requirements of employees training. 640-816 certification identify people with expertise in installing, managing and trouble shooting networks. Increased corporate IT spending is fueling demand for 70-297 certified persons. 156-215 certification validates your knowledge and expertise of administrating security issues on corporate level.

Tweet this post

Leave a comment


About Me


Alfredo Sanchez is an internet professional focusing on the study search engines behavior in particular. Supports Free Open Source Software and currently develops applications with it using XAMPP.

Recent Entries

Close