← Back to Blog

How to Add an IMAP Email Account to Gmail (Desktop & Mobile Guide)

Managing multiple email accounts can be a challenge, but Gmail makes it easy to consolidate all your emails in one place. Whether you want to access your work email, a custom domain email, or another email account through Gmail, you can add it using IMAP (Internet Message Access Protocol).

This guide will walk you through the process of adding an IMAP email account to Gmail on both desktop and mobile devices, making it simple to manage all your emails from a single interface.

What is IMAP?

IMAP (Internet Message Access Protocol) is an email protocol that allows you to access your emails from multiple devices while keeping them synchronized. Unlike POP3, which downloads emails to a single device, IMAP stores emails on the mail server, allowing you to access them from any device.

When you add an IMAP account to Gmail, you can send and receive emails from that account directly through Gmail, and all your emails will stay synchronized across all devices.

Before You Begin: What You'll Need

Before adding your IMAP email account to Gmail, make sure you have the following information:

  • Your email address
  • Your email password
  • IMAP server address (usually something like imap.yourdomain.com or mail.yourdomain.com)
  • IMAP port (usually 993 for SSL/TLS or 143 for non-encrypted)
  • SMTP server address (for sending emails, usually smtp.yourdomain.com or mail.yourdomain.com)
  • SMTP port (usually 465 for SSL/TLS or 587 for STARTTLS)

If you're not sure about your IMAP/SMTP settings, check with your email provider or hosting company. Most hosting providers include this information in their documentation or control panel.

Adding an IMAP Account to Gmail on Desktop

Step 1: Open Gmail Settings

1. Open Gmail in your web browser and sign in to your Google account.

2. Click the gear icon in the top right corner.

3. Select "See all settings" from the dropdown menu.

Step 2: Navigate to Accounts and Import

1. Click on the "Accounts and Import" tab at the top of the settings page.

2. Scroll down to the "Check mail from other accounts" section.

3. Click "Add a mail account".

Step 3: Enter Your Email Address

1. A popup window will appear. Enter the email address you want to add.

2. Click "Next".

Step 4: Choose Import Method

1. Select "Import emails from my other account (POP3)" or "Link accounts with Gmailify" if available.

2. For IMAP, you'll want to use the "Import emails" option, but note that Gmail's interface primarily shows POP3. For full IMAP functionality, you may need to use "Add a mail account" and then configure it manually.

3. Alternatively, you can use Gmail's "Send mail as" feature combined with IMAP for receiving.

Step 5: Configure IMAP Settings

1. Enter your email password.

2. For POP3 import (which Gmail offers directly), enter:

  • Username: Your full email address
  • POP Server: Your IMAP server address (Gmail will use it for POP3)
  • Port: Usually 995 for SSL
  • Check "Always use a secure connection (SSL)"

3. Choose your import options:

  • Leave a copy of retrieved message on the server (recommended)
  • Label incoming messages
  • Archive incoming messages

4. Click "Add Account".

Step 6: Set Up "Send Mail As"

To send emails from your added account:

1. Still in "Accounts and Import", scroll to "Send mail as".

2. Click "Add another email address".

3. Enter your name and the email address.

4. Click "Next Step".

5. Enter SMTP settings:

  • SMTP Server: Your SMTP server address
  • Port: Usually 465 (SSL) or 587 (TLS)
  • Username: Your full email address
  • Password: Your email password
  • Select "Secured connection using SSL" or "Secured connection using TLS"

6. Click "Add Account".

7. Gmail will send a verification email. Check your email and click the verification link.

Adding an IMAP Account to Gmail on Mobile (iOS)

Step 1: Open Settings

1. Open the Settings app on your iPhone or iPad.

2. Scroll down and tap "Mail".

3. Tap "Accounts".

Step 2: Add Account

1. Tap "Add Account".

2. Select "Other" from the list of email providers.

3. Tap "Add Mail Account".

Step 3: Enter Account Information

1. Enter your name, email address, password, and a description.

2. Tap "Next".

Step 4: Configure IMAP Settings

1. Select "IMAP" as the account type.

2. Under "Incoming Mail Server", enter:

  • Host Name: Your IMAP server address
  • User Name: Your full email address
  • Password: Your email password

3. Under "Outgoing Mail Server", enter:

  • Host Name: Your SMTP server address
  • User Name: Your full email address
  • Password: Your email password

4. Tap "Next".

5. iOS will verify the settings. If successful, you'll see checkmarks next to each section.

6. Choose which features to enable (Mail, Contacts, Calendars, Notes).

7. Tap "Save".

Step 5: Configure Advanced Settings (if needed)

If the automatic configuration doesn't work:

1. Go back to Settings > Mail > Accounts.

2. Tap on your newly added account.

3. Tap on the account name again.

4. Tap "Advanced".

5. Under "Incoming Settings":

  • Use SSL: Turn ON
  • Authentication: Password
  • IMAP Path Prefix: Usually leave blank or enter "/"

6. Under "Outgoing Settings":

  • Use SSL: Turn ON
  • Authentication: Password
  • Server Port: Usually 465 or 587

Adding an IMAP Account to Gmail on Mobile (Android)

Step 1: Open Gmail App

1. Open the Gmail app on your Android device.

2. Tap the menu icon (three horizontal lines) in the top left.

3. Scroll down and tap "Settings".

Step 2: Add Account

1. Tap "Add account".

2. Select "Other" from the list.

Step 3: Enter Email Address

1. Enter your email address.

2. Tap "Next".

Step 4: Choose Account Type

1. Select "Personal (IMAP)" or "Personal (POP3)". For IMAP, choose IMAP.

2. Tap "Next".

Step 5: Enter Password

1. Enter your email password.

2. Tap "Next".

Step 6: Configure Server Settings

1. Enter your IMAP server settings:

  • Username: Your full email address
  • IMAP server: Your IMAP server address
  • Port: Usually 993
  • Security type: SSL/TLS

2. Tap "Next".

3. Enter your SMTP server settings:

  • SMTP server: Your SMTP server address
  • Port: Usually 465 or 587
  • Security type: SSL/TLS
  • Username: Your full email address
  • Password: Your email password

4. Tap "Next".

Step 7: Configure Account Options

1. Choose how often to sync emails.

2. Set whether to notify when mail arrives.

3. Choose whether to sync email from this account.

4. Tap "Next" and then "Done".

Common IMAP Settings by Provider

Here are common IMAP settings for popular email providers:

cPanel/WHM Hosting

  • IMAP Server: mail.yourdomain.com or yourdomain.com
  • IMAP Port: 993 (SSL) or 143 (non-encrypted)
  • SMTP Server: mail.yourdomain.com or yourdomain.com
  • SMTP Port: 465 (SSL) or 587 (TLS)

DirectAdmin Hosting

  • IMAP Server: mail.yourdomain.com
  • IMAP Port: 993 (SSL)
  • SMTP Server: mail.yourdomain.com
  • SMTP Port: 465 (SSL) or 587 (TLS)

Microsoft 365 / Outlook

  • IMAP Server: outlook.office365.com
  • IMAP Port: 993 (SSL)
  • SMTP Server: smtp.office365.com
  • SMTP Port: 587 (TLS)

Troubleshooting Common Issues

Authentication Failed

If you're getting authentication errors:

  • Double-check your email address and password
  • Make sure you're using the full email address as the username
  • Verify that IMAP is enabled for your email account (check with your hosting provider)
  • Try using "App Password" if your email provider requires two-factor authentication

Connection Timeout

If the connection times out:

  • Verify the server address is correct
  • Check that the port numbers are correct
  • Ensure SSL/TLS is enabled if required
  • Check if your firewall or network is blocking the connection

Emails Not Syncing

If emails aren't syncing properly:

  • Check your sync settings in the account configuration
  • Verify IMAP is enabled on the server
  • Try removing and re-adding the account
  • Check if there are any server-side filters or rules affecting email delivery

Best Practices for Managing Multiple Email Accounts

Once you've added your IMAP account to Gmail, here are some tips for managing multiple accounts effectively:

  • Use Labels: Create labels to organize emails from different accounts
  • Set Up Filters: Automatically sort incoming emails into folders based on sender or subject
  • Use Multiple Inboxes: Enable the "Multiple Inboxes" lab in Gmail settings to see emails from different accounts in separate sections
  • Color Code: Use different colors for labels to quickly identify emails from different accounts
  • Set Default "Send As": Choose which email address to use as your default when composing new emails

Security Considerations

When adding IMAP accounts to Gmail, keep these security tips in mind:

  • Always use SSL/TLS encryption for IMAP and SMTP connections
  • Use strong, unique passwords for each email account
  • Enable two-factor authentication on your Gmail account
  • Regularly review connected accounts in your Gmail settings
  • Be cautious when accessing email on public Wi-Fi networks

Adding an IMAP email account to Gmail is a straightforward process that allows you to manage all your emails from one convenient location. Whether you're using desktop or mobile, following these steps will help you consolidate your email accounts and streamline your communication workflow.