Free email tool

Free IMAP & SMTP Settings Lookup

Gmail's IMAP server is imap.gmail.com (port 993, SSL) and its SMTP server is smtp.gmail.com (port 465 with SSL or 587 with STARTTLS). Enter any email address or pick a provider below to get its IMAP, POP3 and SMTP settings, taken from the provider's own documentation.

Find your email server settings

Runs in your browser. Well-known providers resolve with no network request. For other domains, only the domain (never the part before the @) is sent to Cloudflare or Google DNS to read its MX records. Nothing is stored except your last chosen provider, on this device.

Accepts a full address or a bare domain, including international domains.

19 providers

Settings result

Gmail

Personal @gmail.com and @googlemail.com accounts

IMAP (incoming)

  • imap.gmail.com
    Port 993SSL/TLS

POP3 (incoming)

  • pop.gmail.com
    Port 995SSL/TLS

SMTP (outgoing)

  • smtp.gmail.com
    Port 465SSL/TLS
  • smtp.gmail.com
    Port 587STARTTLS
Username
Your full Gmail address
Password
Sign in with Google (OAuth), or an app passwordGmail no longer accepts apps that ask for your Google username and password. Choose "Sign in with Google" in your mail app. If the app has no such option and you use 2-Step Verification, create an app password.

Before you connect

  • IMAP is always on for personal Gmail accounts (the Enable IMAP setting was removed in January 2025).
  • POP is off until you turn it on in Gmail: Settings > See all settings > Forwarding and POP/IMAP > POP download.
  • App passwords only work when 2-Step Verification is turned on for your Google Account.
  • Gmail allows up to 15 email clients connected at the same time per account.

Source: Google for Developers: IMAP, POP, and SMTP · Also: Gmail Help: Add Gmail to another email client, Gmail Help: Read Gmail messages on other email clients using POP, Google Account Help: Sign in with app passwords. Checked .

Connect from code: Gmail

Generated from the settings above. Credentials are read from environment variables; never hard-code passwords or commit them. Use the credential this provider requires: sign in with google (oauth), or an app password.

Python (imaplib + smtplib)

import imaplib
import os
import smtplib
import ssl
from email.message import EmailMessage

# Gmail: credentials come from environment variables, never hard-code them.
user = os.environ["MAIL_USER"]  # Your full Gmail address
secret = os.environ["MAIL_PASSWORD"]  # app password, or use OAuth 2.0 (XOAUTH2) instead
context = ssl.create_default_context()

# IMAP: imap.gmail.com:993 (SSL/TLS)
with imaplib.IMAP4_SSL("imap.gmail.com", 993, ssl_context=context) as imap:
    imap.login(user, secret)
    imap.select("INBOX", readonly=True)
    status, data = imap.search(None, "UNSEEN")
    print(status, data)

# SMTP: smtp.gmail.com:465 (SSL/TLS)
msg = EmailMessage()
msg["From"] = user
msg["To"] = user
msg["Subject"] = "Test"
msg.set_content("Sent with Python.")

with smtplib.SMTP_SSL("smtp.gmail.com", 465, context=context) as smtp:
    smtp.login(user, secret)
    smtp.send_message(msg)

Node.js (Nodemailer)

import nodemailer from "nodemailer";

// Gmail: read credentials from the environment, never commit them.
const transporter = nodemailer.createTransport({
  host: "smtp.gmail.com",
  port: 465,
  secure: true, // implicit TLS from the first byte
  auth: {
    user: process.env.MAIL_USER, // Your full Gmail address
    pass: process.env.MAIL_PASSWORD, // app password, or use OAuth 2.0 (XOAUTH2) instead
  },
});

await transporter.verify();
await transporter.sendMail({
  from: process.env.MAIL_USER,
  to: process.env.MAIL_USER,
  subject: "Test",
  text: "Sent with Nodemailer.",
});

Add the account to your mail app

Menu names change between app versions, so these steps stay general. Prefer the app's built-in sign-in for Google, Microsoft, Yahoo, AOL and iCloud: it uses OAuth and sets the servers for you.

Outlook (Windows and Mac)

  1. Add an account with your email address. Outlook can detect settings for many providers on its own.
  2. If it can't, choose manual setup and pick IMAP (or POP), then enter the incoming and outgoing servers, ports and encryption from the card above.
  3. For Gmail, Google says current versions of Outlook support Sign in with Google (OAuth); older versions may need an app password.

Apple Mail on iPhone, iPad or Mac

  1. Add an account. If your provider is listed (iCloud, Google, Yahoo, AOL, Microsoft Exchange or Outlook.com), choose it and sign in.
  2. Otherwise choose Other, then Add Mail Account, select IMAP and enter the incoming and outgoing server names from the card above.
  3. Use the app password or account password the card says your provider requires.

Android (Gmail app)

  1. Add another account. Choose Google, Outlook/Hotmail/Live or Yahoo if listed, which sign you in with the provider's own page.
  2. For other providers choose Other, enter your email address and pick Personal (IMAP) or Personal (POP3).
  3. Enter the incoming and outgoing servers, ports and security type, then the password type the card lists.

Thunderbird

  1. Add a new mail account with your name, email address and password. Thunderbird looks up settings automatically.
  2. If the detected settings are wrong, choose to configure manually and enter the IMAP and SMTP values from the card above.
  3. For Gmail, Outlook.com, Microsoft 365 and Yahoo, set authentication to OAuth2 if Thunderbird offers it.

Ports 465, 587, 993 and 25 explained

465 (SMTP), 993 (IMAP), 995 (POP)

Implicit TLS: encryption starts immediately, before any email commands. RFC 8314 recommends implicit TLS for mail submission and access. Choose SSL/TLS in your app.

587 (SMTP submission)

STARTTLS: the app connects in plain text and upgrades to TLS before signing in. RFC 8314 says clients and servers should support both 587 with STARTTLS and 465 during the transition. Choose STARTTLS.

25 (server-to-server relay)

Port 25 moves mail between servers (MX delivery). It isn't meant for mail apps, and many ISPs block it for customers. Use 587 or 465 to send from an app.

Source: RFC 8314: Use of TLS for Email Submission and Access. Port 25 blocking: Xfinity and Microsoft help pages linked in the reference table.

Troubleshooting: why isn't my IMAP or SMTP working?

  • The port and encryption type don't match

    Ports 993 (IMAP), 995 (POP) and 465 (SMTP) expect SSL/TLS from the first byte. Port 587 (and IMAP 143) expect STARTTLS. Picking SSL on 587 or STARTTLS on 465 usually ends in a timeout or a TLS error. (RFC 8314)

  • Gmail says "Username and password not accepted"

    Gmail no longer accepts apps that only ask for your Google password. Remove the account, add it again and choose Sign in with Google. If the app has no Google sign-in and you use 2-Step Verification, create an app password. (Gmail Help)

  • Outlook.com or Microsoft 365 keeps asking for your password

    Outlook.com requires Modern Auth (OAuth2), and Exchange Online has disabled Basic authentication for POP and IMAP. Update your mail app or switch to one that signs in with Microsoft's own sign-in page. (Microsoft Learn)

  • IMAP or POP access is turned off

    Outlook.com and GMX turn POP/IMAP off by default, Zoho needs IMAP Access enabled, Google Workspace and Microsoft 365 admins can switch it off (security defaults do in Microsoft 365), and Gmail needs POP turned on before POP works. The card above lists what your provider needs.

  • Your provider requires an app password or a paid plan

    Yahoo, iCloud and Fastmail require app passwords, AT&T uses a secure mail key, and Proton Mail needs the Bridge password. Fastmail Basic plans, newer free Zoho accounts and free Proton plans don't include IMAP/SMTP access.

  • Sending fails on port 25

    Port 25 is for server-to-server relay. Many ISPs and networks block it for customers (Xfinity doesn't support it for sending, and Microsoft notes ISPs often block it). Use 587 or 465 as your provider documents. (Microsoft Learn)

  • A firewall, VPN or antivirus blocks the connection

    Corporate networks, hotel Wi-Fi, VPNs and some antivirus "mail shields" block or intercept ports 465, 587 and 993. Try another network or turn off mail scanning briefly to see whether it's the cause. This is general advice, not specific to any provider.

  • Too many simultaneous connections

    Gmail allows up to 15 email clients at a time per account. Close or sign out of apps you no longer use. (Gmail Help)

Still stuck? Test the outgoing server with the SMTP Tester and check where the domain's mail goes with the MX Record Lookup.

IMAP, POP3 and SMTP settings for every provider

Every value comes from the provider's own help page (GoDaddy: its own autodiscover service), checked November 1, 2026. Providers change their settings, so follow the source link if something doesn't connect.

IMAP, POP3 and SMTP server settings by provider
ProviderIMAPPOP3SMTPPassword
GmailSourceimap.gmail.com:993 SSL/TLSpop.gmail.com:995 SSL/TLSsmtp.gmail.com:465 SSL/TLSsmtp.gmail.com:587 STARTTLSSign in with Google (OAuth), or an app password
Google WorkspaceSourceimap.gmail.com:993 SSL/TLSpop.gmail.com:995 SSL/TLSsmtp.gmail.com:587 STARTTLSsmtp.gmail.com:465 SSL/TLSOAuth (Sign in with Google), or an app password
Outlook.com (Hotmail, Live, MSN)Sourceoutlook.office365.com:993 SSL/TLSoutlook.office365.com:995 SSL/TLSsmtp-mail.outlook.com:587 STARTTLSOAuth2 / Modern Auth
Microsoft 365 / Exchange OnlineSourceoutlook.office365.com:993 SSL/TLSoutlook.office365.com:995 SSL/TLSsmtp.office365.com:587 STARTTLSOAuth 2.0 (Modern authentication)
Yahoo MailSourceimap.mail.yahoo.com:993 SSL/TLSpop.mail.yahoo.com:995 SSL/TLSsmtp.mail.yahoo.com:465 SSL/TLSsmtp.mail.yahoo.com:587 STARTTLSApp password
iCloud MailSourceimap.mail.me.com:993 SSL/TLSNot offeredsmtp.mail.me.com:587 STARTTLSApp-specific password
AOL MailSourceimap.aol.com:993 SSL/TLSpop.aol.com:995 SSL/TLSsmtp.aol.com:465 SSL/TLSApp password (may be required)
Verizon.net (AOL Mail)Sourceimap.aol.com:993 SSL/TLSpop.verizon.net:995 SSL/TLSsmtp.verizon.net:465 SSL/TLSOAuth2, or an app password
Zoho Mail (personal and free organization)Sourceimap.zoho.com:993 SSL/TLSpop.zoho.com:995 SSL/TLSsmtp.zoho.com:465 SSL/TLSsmtp.zoho.com:587 STARTTLSZoho password, or an application-specific password with 2FA
Zoho Mail (paid organization)Sourceimappro.zoho.com:993 SSL/TLSpoppro.zoho.com:995 SSL/TLSsmtppro.zoho.com:465 SSL/TLSsmtppro.zoho.com:587 STARTTLSZoho password, or an application-specific password with 2FA
Proton Mail (via Bridge)Source127.0.0.1:1143 STARTTLSNot offered127.0.0.1:1025 STARTTLSBridge password (not your Proton password)
FastmailSourceimap.fastmail.com:993 SSL/TLSpop.fastmail.com:995 SSL/TLSsmtp.fastmail.com:465 SSL/TLSsmtp.fastmail.com:587 STARTTLSApp password (required)
GMX Mail (gmx.com)Sourceimap.gmx.com:993 SSL/TLSpop.gmx.com:995 SSL/TLSmail.gmx.com:587 STARTTLSmail.gmx.com:465 SSL/TLSGMX password, or an application-specific password with 2FA
Yandex MailSourceimap.yandex.com:993 SSL/TLSNot offeredsmtp.yandex.com:465 SSL/TLSsmtp.yandex.com:587 STARTTLSOAuth, or an app password
Comcast / XfinitySourceimap.comcast.net:993 SSL/TLSpop3.comcast.net:995 SSL/TLSsmtp.comcast.net:587 STARTTLSsmtp.comcast.net:465 SSL/TLSXfinity ID password
AT&T MailSourceimap.mail.att.net:993 SSL/TLSinbound.att.net:995 SSL/TLSsmtp.mail.att.net:465 SSL/TLSSecure mail key
GoDaddy Professional EmailSourceimap.secureserver.net:993 SSL/TLSpop.secureserver.net:995 SSL/TLSsmtpout.secureserver.net:465 SSL/TLSYour mailbox password
Namecheap Private EmailSourcemail.privateemail.com:993 SSL/TLSmail.privateemail.com:995 SSL/TLSmail.privateemail.com:465 SSL/TLSmail.privateemail.com:587 STARTTLSMaster or application password
Hostinger EmailSourceimap.hostinger.com:993 SSL/TLSpop.hostinger.com:995 SSL/TLSsmtp.hostinger.com:465 SSL/TLSsmtp.hostinger.com:587 STARTTLSYour mailbox password

Custom domains are matched by MX record: smtp.google.com, aspmx.l.google.com and other legacy aspmx hosts (Google Workspace); *.mail.protection.outlook.com (Microsoft 365 / Exchange Online); mx.zoho.*, mx2.zoho.*, mx3.zoho.* (Zoho Mail (paid organization)); *.messagingengine.com (Fastmail); *.privateemail.com (Namecheap Private Email); mx1.hostinger.com, mx2.hostinger.com (Hostinger Email); *.secureserver.net (GoDaddy Professional Email); *.yahoodns.net (Yahoo Mail). Not covered: Bluehost (its help site blocked our checks).

How to find and use your IMAP and SMTP settings

  1. 1

    Enter your email or pick a provider

    Type your email address or domain and select Find settings, or choose your provider from the list. Well-known providers resolve instantly; for a custom domain the tool looks up its MX records.

  2. 2

    Copy the IMAP, POP and SMTP settings

    Copy each host and port, or copy all settings at once. Check the username format, password type and anything you must turn on first.

  3. 3

    Add them to your mail app

    In Outlook, Apple Mail, the Gmail app or Thunderbird, add the account and enter the settings manually if the app can't detect them.

  4. 4

    Test the connection

    If sending fails, check the server, port and encryption with the free SMTP Tester before changing anything else.

Frequently asked questions

What are Gmail's IMAP and SMTP settings?

IMAP: imap.gmail.com, port 993, SSL. SMTP: smtp.gmail.com, port 465 with SSL or port 587 with STARTTLS. POP: pop.gmail.com, port 995, SSL. The username is your full Gmail address. Gmail no longer accepts apps that sign in with only your username and password, so choose Sign in with Google in your mail app, or use an app password if you use 2-Step Verification and the app has no Google sign-in. IMAP is always on for personal Gmail accounts.

What are the Outlook.com and Microsoft 365 IMAP and SMTP settings?

Outlook.com (Hotmail, Live, MSN): IMAP outlook.office365.com port 993 (SSL/TLS), POP outlook.office365.com port 995, SMTP smtp-mail.outlook.com port 587 (STARTTLS). Outlook.com requires OAuth2 (Modern Auth), and POP and IMAP are off until you turn them on in Settings > Mail > Forwarding and IMAP. Microsoft 365 work or school accounts: IMAP outlook.office365.com port 993, POP port 995, SMTP smtp.office365.com port 587 (STARTTLS). Basic authentication is disabled for POP and IMAP in Exchange Online, so your app must support OAuth 2.0, and your admin must allow SMTP AUTH for sending.

Should I use SMTP port 465 or 587?

Use the port your provider documents. Port 465 uses implicit TLS (the connection is encrypted from the first byte) and port 587 uses STARTTLS (the app connects, then upgrades to TLS). RFC 8314 prefers implicit TLS and says clients and servers should support both during the transition. Port 25 is for server-to-server relay, and many ISPs block it for customers. Microsoft 365 is an exception: it doesn't support 465 for client submission, so use 587.

What is the difference between IMAP and POP3?

IMAP keeps your mail on the server and syncs folders, read status and deletions across every device. POP3 downloads messages (usually only the Inbox) to one device and, depending on the app's settings, may remove them from the server. Use IMAP if you read mail on more than one device. Some providers, like iCloud Mail and Proton Mail, don't offer POP at all.

Why is my email app rejecting my password? Do I need an app password?

Often, yes. Many providers no longer accept your normal password in mail apps: Gmail and Google Workspace want Sign in with Google (OAuth) or an app password with 2-Step Verification; Outlook.com and Microsoft 365 need OAuth; Yahoo, iCloud and Fastmail require app passwords; AT&T uses a secure mail key; Proton Mail uses the Bridge password. Also check that IMAP or POP access is turned on, since Outlook.com, GMX and Zoho require you to enable it first.

Sources: Google for Developers: IMAP, POP, and SMTP, Microsoft Support: POP, IMAP, and SMTP settings for Outlook.com, Microsoft Learn: POP3 and IMAP4 in Exchange Online, RFC 8314: Use of TLS for Email Submission and Access. Checked November 1, 2026.

Browse all free email tools

Skip IMAP polling

Developers: instead of logging in over IMAP and polling for new mail, the MailParse inbound email parsing API turns every incoming email into clean JSON, with headers, bodies and attachments, delivered to your webhook.

Try MailParse free