Home / Blog / Guide

Gmail IMAP and SMTP Settings: Server, Port, App Password

To connect Gmail to another app you need the Gmail IMAP and SMTP settings: the server names, the ports, and an app password. Here they are, with fixes for common errors and the sending limits.

Published 4 December 2026 · 7 min read

Gmail IMAP and SMTP settings

Use these values in any mail app, helpdesk or outreach tool that asks for a manual setup.

SettingIncoming (IMAP)Outgoing (SMTP)
Serverimap.gmail.comsmtp.gmail.com
Port993465 (SSL) or 587 (TLS or STARTTLS)
EncryptionSSL/TLSSSL on port 465, TLS on port 587
UsernameYour full email addressYour full email address
PasswordApp passwordApp password

IMAP is for reading and syncing mail, and SMTP is for sending it. POP uses pop.gmail.com on port 995, but IMAP is the better choice for any tool that needs to see replies.

Use an app password, not your normal password

Google no longer lets most apps sign in with your normal password. If your account has 2-Step Verification on, create an app password and paste it where the app asks for the password. An app password is a 16-character code that works for one app and can be removed at any time.

  • Turn on 2-Step Verification in your Google Account.
  • Open the App passwords page in your Google Account security settings and create one for your app.
  • Paste the code into the password box of the app, with your full email address as the username.
  • Send a test email to yourself and check that a reply arrives.

On a Google Workspace account, your admin may need to allow IMAP or app passwords first. If the option is missing, ask them.

Or sign in with Google

The safer option is to sign in with Google instead of typing a password. The app asks Google for permission, and no password is stored. Ally Engineers supports this: connect a mailbox with Google or Microsoft sign-in, or add any SMTP and IMAP mailbox by hand. Use the manual settings only if sign-in with Google is not offered.

Fix common Gmail connection errors

  • Authentication failed: use your full address as the username and an app password, not your normal password.
  • Connection timed out: check the port and encryption pair. Port 465 needs SSL and port 587 needs TLS. A firewall or hosting provider may also block outgoing ports.
  • Sign-in blocked or Google blocked the app: open the security alert in your Google Account and confirm it was you, or switch to sign in with Google.
  • IMAP is disabled: turn on IMAP in Gmail settings under Forwarding and POP/IMAP, or ask your Workspace admin.
  • Mail sends but replies never appear: the app is not reading over IMAP, or the Inbox folder is not selected.

Gmail sending limits you should know

Google limits how much mail an account can send. For Google Workspace, Google's help page lists these limits, and says they can change without notice:

  • 2,000 messages per user per day, and 1,500 for mail merge.
  • 500 messages per day on a free trial account.
  • 2,000 recipients in one message, and at most 500 of them outside your domain.
  • Limits run over a rolling 24 hours, not a calendar day.

If you pass a limit you cannot send for up to 24 hours, though you can still receive mail. A personal Gmail account has lower limits than Workspace. Mail sent over SMTP or IMAP counts toward the same limits.

Using Gmail for cold email

The limits are high compared with what is safe. Mail providers watch for sudden jumps, so a new mailbox sending hundreds a day will land in spam long before it hits a Google limit. A common rule of thumb is 20 to 30 cold emails per mailbox per day, raised slowly. To send more, add more mailboxes instead of pushing one harder.

For the full plan, read the cold email guide.

Other providers

Microsoft 365 and other mailbox hosts use different server names and their own sign-in rules. The idea is the same: IMAP to read, SMTP to send, and an app password or sign-in with the provider. Check your provider's help page for the exact values.

Check your list

Before you send from a new mailbox, check every address. See how to check if an email is valid.

Check the domain behind the mailbox

If you send from your own domain, test it with the SPF checker and MX lookup so mail from your connected mailbox is trusted.

Related features

Keep reading

Ready to try it? Start as a sales team or start as a recruiter.

Questions about this guide

What are the Gmail IMAP settings?

The IMAP server is imap.gmail.com on port 993 with SSL/TLS. Use your full email address as the username and an app password as the password.

What are the Gmail SMTP settings?

The SMTP server is smtp.gmail.com. Use port 465 with SSL or port 587 with TLS. Sign in with your full email address and an app password.

Why does Gmail say authentication failed?

Most often the app is using your normal password. Turn on 2-Step Verification, create an app password and use that. Also check that you typed the full email address and that IMAP is on.

How many emails can I send from Gmail a day?

On Google Workspace the daily limit is 2,000 messages per user and 1,500 for mail merge, and 500 on a free trial. Google can change these limits. Personal Gmail accounts have lower limits.

Is it safe to use Gmail for cold email?

It works if you use a separate domain, set up SPF, DKIM and DMARC, warm up the mailbox and send small volumes. Sending far fewer emails than the limit is what keeps you out of spam.

Send us a message

Tell us what you need. A real person from the team replies by email, usually within one working day.

Set up your workspace and send your first message today.