Gmail IMAP SMTP Configuration Guide
Complete step-by-step guide to configure Gmail IMAP and SMTP settings for any email client including Outlook, Thunderbird, and Apple Mail
Quick Gmail Settings
IMAP Settings (Incoming Mail)
imap.gmail.com
993
SSL/TLS
SMTP Settings (Outgoing Mail)
smtp.gmail.com
587
STARTTLS
Before You Start
Important Security Note
You'll need to enable 2-factor authentication and create an App Password for Gmail IMAP/SMTP access.
Step 1: Enable 2-Factor Authentication
- Go to your Google Account settings
- Click on "Security" in the left sidebar
- Under "Signing in to Google", click "2-Step Verification"
- Follow the setup process to enable 2-factor authentication
- Verify your phone number and complete the setup
Step 2: Generate App Password
- In your Google Account Security settings, find "App passwords"
- Click "App passwords" (you may need to sign in again)
- Select "Mail" from the app dropdown
- Select "Other (custom name)" from the device dropdown
- Enter a name like "Email Client" or "Outlook"
- Click "Generate"
- Copy the 16-character password (you'll use this instead of your regular Gmail password)
Pro Tip
Save this app password securely. You won't be able to see it again, but you can generate a new one if needed.
Step 3: Configure Your Email Client
Microsoft Outlook Configuration
- Open Outlook and go to File → Add Account
- Choose "Manual setup or additional server types"
- Select "POP or IMAP"
- Enter your account information:
- Your Name: [Your full name]
- Email Address: [your-email@gmail.com]
- Account Type: IMAP
- Incoming mail server: imap.gmail.com
- Outgoing mail server: smtp.gmail.com
- User Name: [your-email@gmail.com]
- Password: [Your app password]
- Click "More Settings" → "Advanced" tab
- Set incoming server port to 993 with SSL encryption
- Set outgoing server port to 587 with STARTTLS encryption
- Check "My outgoing server requires authentication"
Mozilla Thunderbird Configuration
- Open Thunderbird and go to File → New → Existing Mail Account
- Enter your name, Gmail address, and app password
- Click "Configure manually" if auto-detection fails
- Set the following settings:
- Incoming: IMAP, imap.gmail.com, Port 993, SSL/TLS
- Outgoing: SMTP, smtp.gmail.com, Port 587, STARTTLS
- Username: your full Gmail address
- Authentication: Normal password
- Click "Re-test" and then "Create Account"
Apple Mail Configuration
- Open Mail app and go to Mail → Preferences → Accounts
- Click the "+" button to add a new account
- Select "Other Mail Account"
- Enter your name, Gmail address, and app password
- If prompted for manual configuration:
- Incoming Mail Server: imap.gmail.com
- Outgoing Mail Server: smtp.gmail.com
- Use SSL for both incoming and outgoing
- Incoming port: 993, Outgoing port: 587
- Click "Sign In" to complete the setup
Troubleshooting Common Issues
Authentication Failed Error
- Ensure you're using the app password, not your regular Gmail password
- Verify that 2-factor authentication is enabled
- Check that "Less secure app access" is disabled (it should be)
- Try generating a new app password
Connection Timeout Issues
- Check your firewall and antivirus settings
- Verify the server settings and ports are correct
- Try using different ports: IMAP 993 (SSL) or SMTP 465 (SSL)
- Contact your ISP if they block email ports
Emails Not Syncing
- Check your IMAP folder subscriptions
- Verify that IMAP is enabled in Gmail settings
- Try refreshing or restarting your email client
- Check Gmail's storage quota
Security Best Practices
- Always use app passwords instead of your main Gmail password
- Keep your email client software updated
- Regularly review and revoke unused app passwords
- Enable email encryption when available
- Monitor your account activity regularly
Frequently Asked Questions
Can I use my regular Gmail password?
No, you must use an app password when 2-factor authentication is enabled. This provides better security for your account.
What's the difference between IMAP and POP3?
IMAP syncs emails across all devices and keeps them on the server, while POP3 downloads emails to one device. We recommend IMAP for Gmail.
Why can't I send emails?
Check your SMTP settings, ensure authentication is enabled, and verify you're using the correct app password and port settings.