Skip to content

BlogGmail

Gmail SMTP settings (2026): server, port, and app password

Use these settings to add a Gmail or Google Workspace account to another email client, a script or a scanner. Each server, port, limit and date links to the Google help page it came from, checked on October 15, 2026. If Gmail keeps refusing your normal password, you need Sign in with Google or an app password.

Julien Coulaud on X

Founder of Shipmail, the email platform for businesses and their AI agents. Every guide here draws on mail servers running in production.

  • Gmail
  • SMTP
  • IMAP
  • App passwords
  • Google Workspace

Short answer

The Gmail SMTP server is smtp.gmail.com on port 587 with STARTTLS (TLS) or port 465 with SSL, with authentication on and your full Gmail address as the username. Most apps can no longer use your normal password. Choose Sign in with Google, or create an app password if the app can't. Incoming mail uses imap.gmail.com on port 993 or pop.gmail.com on port 995. A free account can send about 500 emails a day, so app and website email belongs on a transactional email service.

Gmail server settings

ProtocolServerPortEncryption
SMTP, outgoing (STARTTLS)Sources[1]Google Gmail POP settings[2]Google Workspace: set up Gmail with a third-party email clientsmtp.gmail.com587STARTTLS (TLS), authentication required
SMTP, outgoing (SSL)Sources[2]Google Workspace: set up Gmail with a third-party email client[7]Google Workspace: send email from a printer, scanner, or appsmtp.gmail.com465SSL, authentication required
IMAP, incoming[2]imap.gmail.com993SSL
POP, incoming[1]pop.gmail.com995SSL

Gmail SMTP server settings

Gmail's SMTP server is smtp.gmail.com on port 587 with STARTTLS, or port 465 with SSL. Sign in with your full Gmail or Google Workspace address, using Sign in with Google or an app password.Sources[1]Google Gmail POP settings[2]Google Workspace: set up Gmail with a third-party email client[3]Google Gmail external email-client authentication

  • SMTP server: smtp.gmail.com
  • Port: 587 with STARTTLS (shown as TLS in many clients), or 465 with SSL
  • Authentication: required
  • Username: your full Gmail or Google Workspace address, for example name@gmail.com
  • Password: use Sign in with Google in the app, or an app password if the app cannot sign in with Google
Sources[1]Google Gmail POP settings[2]Google Workspace: set up Gmail with a third-party email client[3]Google Gmail external email-client authentication

Pick one pair and keep it together: 587 goes with STARTTLS, 465 goes with SSL. Google's Workspace setup page says that if you change the encryption type to SSL, you enter 465 as the port. A client set to 587 with SSL, or 465 with STARTTLS, will fail to connect.[2]

If your account is a work or school account, Google says to check with your administrator for the correct SMTP configuration.[1]

Gmail IMAP settings

Gmail's IMAP server is imap.gmail.com on port 993 with SSL. Sign in with your full Gmail or Google Workspace address, using Sign in with Google or an app password.Sources[2]Google Workspace: set up Gmail with a third-party email client[3]Google Gmail external email-client authentication[4]Google Account app-password documentation

  • Incoming mail server: imap.gmail.com
  • Port: 993
  • Requires SSL: yes
  • Username: your full Gmail or Google Workspace address, for example name@gmail.com
  • Password: use Sign in with Google in the app, or an app password if the app cannot sign in with Google
Sources[2]Google Workspace: set up Gmail with a third-party email client[3]Google Gmail external email-client authentication[4]Google Account app-password documentation

On a personal Google Account there is nothing to switch on. Google removed the IMAP on/off setting in January 2025 and says IMAP access is always on. On Google Workspace, an administrator turns on IMAP for users in the Admin console first.Sources[3]Google Gmail external email-client authentication[2]Google Workspace: set up Gmail with a third-party email client

Gmail allows up to 15 email clients on one account at a time. Past that, apps fail with Too many simultaneous connections. Sign out of the ones you no longer use.[3]

Gmail POP settings

POP downloads mail to one device. Use pop.gmail.com, port 995, SSL. POP is off until you turn it on. In Gmail on a computer, open Settings, then See all settings, then the Forwarding and POP/IMAP tab. Choose an option under POP download and click Save Changes.[1]

How to create a Gmail app password

An app password is a 16-digit passcode that lets an app or device sign in to your Google Account without your main password. Google says app passwords are not recommended and are unnecessary in most cases. Try Sign in with Google first. Use an app password only when the app or device has no such option.Sources[4]Google Account app-password documentation[3]Google Gmail external email-client authentication

  1. Step 1

    Turn on 2-Step Verification

    App passwords only work on accounts that have 2-Step Verification turned on.

  2. Step 2

    Open the App passwords page

    Go to myaccount.google.com/apppasswords and sign in if asked.

  3. Step 3

    Create the password

    Give it a name you will recognize, such as the app or device, and create it. Google shows a 16-digit code.

  4. Step 4

    Use it in place of your password

    Paste the code into the password field of the SMTP or IMAP settings. Keep your full Gmail address as the username.

[4]

The App passwords option is missing in three cases: 2-Step Verification uses only security keys, the account belongs to a work or school, or it has Advanced Protection. Google revokes all app passwords when you change your Google Account password, so create new ones after a password change.[4]

Why your normal Gmail password fails

Google says Gmail no longer supports third-party apps or devices that require you to share your Google username and password. Typing your normal password into an SMTP or IMAP client is that pattern. Gmail rejects it with Username and Password not accepted, or keeps asking for the password.[3]

For Google Workspace, the cutoff was May 1, 2025. Since then, Workspace accounts refuse apps and devices that sign in with only a username and password. Those apps must use OAuth. App passwords are only for users with 2-Step Verification whose email client does not support OAuth.Sources[2]Google Workspace: set up Gmail with a third-party email client[4]Google Account app-password documentation

The fix, in order: update the email client, then remove the account and add it again with Sign in with Google. Use an app password only as the last step.[3]

Gmail SMTP sending limits

A free Gmail account can hit its limit after more than 500 emails in a day, or one email to more than 500 recipients. Gmail then shows You have reached a limit for sending mail. Google says sending resumes within 1 to 24 hours.[5]

  • Google Workspace, messages per user per day: 2,000 (500 for trial accounts)
  • Google Workspace, recipients per message sent through SMTP, POP, or IMAP: 100
  • Google Workspace, total recipients per day: 10,000
  • Google Workspace, external recipients per day: 3,000
  • After a Workspace user reaches a limit, they cannot send new messages for up to 24 hours
[6]

Google counts Workspace limits over a rolling 24 hours and says they can change without notice. At these limits, Gmail SMTP suits one person's mail and small automated jobs, not newsletters or bulk sending.[6]

Google Workspace SMTP relay

Google Workspace has a separate SMTP relay service for printers, scanners, and apps that send on behalf of an organization. Workspace administrators set it up, and it is a different server from smtp.gmail.com. Free Gmail accounts do not have it.[7]

  • SMTP relay service: smtp-relay.gmail.com on port 25, 465, or 587. It authenticates senders by IP address and allows each user to relay up to 10,000 recipients per day, to anyone inside or outside the organization.
  • Gmail SMTP server: smtp.gmail.com on port 465 (SSL) or 587 (TLS). It requires the account's sign-in, has a limit of 2,000 messages per day, and can send to anyone.
  • Restricted Gmail SMTP server: aspmx.l.google.com on port 25. It needs no authentication or TLS, but only delivers to Gmail and Google Workspace users.
[7]

Common Gmail SMTP errors and fixes

Most Gmail SMTP errors come from a refused password or a wrong port and encryption pair. Use Sign in with Google or an app password, and pair 587 with STARTTLS or 465 with SSL.Sources[8]Gmail SMTP errors and codes[4]Google Account app-password documentation[2]Google Workspace: set up Gmail with a third-party email client

  • 535 Username and Password not accepted: Gmail refused the password. Sign in with Google, or use an app password instead of your normal password.
  • 534 Application-specific password required: the account has 2-Step Verification and the app cannot sign in with Google. Create an app password and use it.
  • 534 Please log in through your web browser and then try again: sign in to the account in a web browser, then retry from the app.
  • 530 Must issue a STARTTLS command first: the client is connecting to port 587 without encryption. Set the encryption to STARTTLS or TLS.
  • 530 Authentication required: turn on SMTP authentication in the client and enter your full address and password.
  • 550 Daily user sending limit exceeded, or You have reached a limit for sending mail: wait for the limit to reset, up to 24 hours, and send less.
Sources[8]Gmail SMTP errors and codes[4]Google Account app-password documentation[5]Google Gmail limits for sending and getting mail[6]Gmail sending limits in Google Workspace

If you see a certificate or connection error, check the server name and the port and encryption pair before anything else. Most connection failures are 587 set to SSL or 465 set to STARTTLS.[2]

Sending from an app, website or script

Gmail SMTP works for a contact form or a nightly report. It breaks down once an app sends on its own. A free account stops after about 500 emails a day, Workspace after 2,000. The app signs in with an app password tied to one person's account, and Google revokes it when that person changes their password.Sources[5]Google Gmail limits for sending and getting mail[6]Gmail sending limits in Google Workspace[4]Google Account app-password documentation

A transactional email API fixes each of those. Your code calls an HTTP endpoint with a key made for that one app. Bounces come back as data, and the sending address is not someone's personal inbox.

Shipmail for transactional email and your business address

Shipmail sends transactional email through an API, SDKs or a CLI with keys scoped to one app, and the same plan gives you mailboxes on your domain. Shipmail suppresses bounced addresses automatically, and customer replies land in a mailbox you choose.Sources[10]Shipmail transactional email documentation[14]Shipmail API authentication documentation[16]Shipmail suppressions documentation

  • Your app sends through the API, the TypeScript or Python SDK, or the CLI, from a subdomain such as notify.example.com.
  • Each API key can be limited to the messages:send scope and to specific domains and mailboxes. Revoke one key without touching the others.
  • Test keys simulate a send, a bounce or a complaint without delivering anything, so staging never emails a real customer.
  • Shipmail suppresses addresses that bounce or complain, and refuses a later send to them.
  • Customer replies land in a Shipmail mailbox you choose, not in a no-reply address nobody reads.
Sources[10]Shipmail transactional email documentation[11]Shipmail TypeScript SDK documentation[12]Shipmail Python SDK documentation[13]Shipmail CLI documentation[14]Shipmail API authentication documentation[15]Shipmail sandbox documentation[16]Shipmail suppressions documentation

Solo is $4 a month with 3,000 transactional emails, such as receipts and password resets, then $0.30 per 1,000 with overage turned on. On a paid plan, a transactional sender starts at 1,000 recipients a day and grows with clean sending, so move a busy app over in steps.Sources[17]Shipmail sending policy[10]Shipmail transactional email documentation

The same plan gives you mailboxes on your domain. They connect to any email client through mx1.shipmail.to over IMAP and SMTP. You no longer need Gmail's Send as, which Google ends for third-party addresses in January 2027.Sources[18]Shipmail email client connection settings[9]Google Gmail third-party access changes overview

Sources18 sourcesVerified 2026-11-09
  1. [1]
    Google Gmail POP settings

    Google's POP setup for Gmail: turn on POP under Settings, Forwarding and POP/IMAP; incoming server pop.gmail.com on port 995 with SSL; outgoing server smtp.gmail.com with SSL, TLS if available, authentication required, port 587 for TLS/STARTTLS; username is your email address.

    support.google.com · 2026-10-15

  2. [2]
    Google Workspace: set up Gmail with a third-party email client

    Google's IMAP and SMTP settings for Gmail in other clients: imap.gmail.com on port 993 with SSL, smtp.gmail.com on port 587 with TLS or port 465 with SSL, username is the full Gmail address. Since May 1, 2025, Google Workspace accounts no longer support apps that sign in with only a username and password; OAuth is required, and app passwords are for 2-Step Verification users whose client does not support OAuth.

    knowledge.workspace.google.com · 2026-10-15

  3. [3]
    Google Gmail external email-client authentication

    Gmail no longer supports third-party apps that need your Google username and password; use Sign in with Google. The IMAP on/off setting was removed from January 2025 and IMAP is always on. Up to 15 email clients per account; an app password with 2-Step Verification is rarely needed.

    support.google.com · 2026-10-15

  4. [4]
    Google Account app-password documentation

    An app password is a 16-digit passcode for a less secure app or device. Google does not recommend it and suggests Sign in with Google. It needs 2-Step Verification, is created at myaccount.google.com/apppasswords, is unavailable with security-key-only 2SV, organization accounts or Advanced Protection, and all app passwords are revoked when the Google Account password changes.

    support.google.com · 2026-10-15

  5. [5]
    Google Gmail limits for sending and getting mail

    Gmail may stop sending for 1 to 24 hours after more than 500 emails in a day or more than 500 recipients in a single email, with the error 'You have reached a limit for sending mail'.

    support.google.com · 2026-10-15

  6. [6]
    Gmail sending limits in Google Workspace

    Google Workspace limits over a rolling 24 hours: 2,000 messages per user per day (500 for trial accounts), 100 recipients per message sent through SMTP, POP, or IMAP, 10,000 total recipients per day, and 3,000 external recipients per day. A user who reaches a limit cannot send for up to 24 hours. Limits can change without notice.

    knowledge.workspace.google.com · 2026-10-15

  7. [7]
    Google Workspace: send email from a printer, scanner, or app

    Three ways to send from devices and apps: the SMTP relay service at smtp-relay.gmail.com on ports 25, 465, or 587, authenticated by IP address, up to 10,000 recipients per user per day; the Gmail SMTP server at smtp.gmail.com on port 465 (SSL) or 587 (TLS) with account sign-in and a 2,000 messages per day limit; and the restricted server aspmx.l.google.com on port 25, which only delivers to Gmail or Google Workspace users.

    knowledge.workspace.google.com · 2026-10-15

  8. [8]
    Gmail SMTP errors and codes

    Google's list of Gmail SMTP replies, including 535 Username and Password not accepted, 534 Application-specific password required, 534 Please log in through your web browser and then try again, 530 Must issue a STARTTLS command first, 530 Authentication required, and 550 Daily user sending limit exceeded.

    knowledge.workspace.google.com · 2026-10-15

  9. [9]
    Google Gmail third-party access changes overview

    Google's overview of the January 2027 third-party Send as removal on Gmail web and mobile, possible limits on new configurations during Q3 and Q4 of 2026, separate Gmailify and Gmail web POP changes, and continued message forwarding to Gmail and Gmail API or external-client access to Gmail. Gmail mobile third-party account access remains available, but it is separate from Send as.

    support.google.com · 2026-10-17

  10. [10]
    Shipmail transactional email documentation

    Shipmail transactional email: an app sends from its own sending subdomain of a domain already verified in Shipmail, and replies go to a Shipmail mailbox. Sends count toward the plan's monthly quota, a sender costs nothing extra, Activity shows delivery status, and a retry with the same Idempotency-Key returns the first message. Every email from a sender carries its mailbox's address as Reply-To, so replies arrive in that mailbox's Transactional folder; the sending address itself cannot receive email. On a paid plan, an organization's transactional email starts at a safety limit of 1,000 recipients a day, raised daily to twice the highest clean day of the last 7 days, up to 25,000 automatically; the plan keeps 80% of its daily limit as a floor; a migration review with the last 30 days gets an answer within one business day.

    shipmail.to · 2026-11-09

  11. [11]
    Shipmail TypeScript SDK documentation

    The shipmail npm package, a typed client for the Shipmail REST API.

    shipmail.to · 2026-10-15

  12. [12]
    Shipmail Python SDK documentation

    The official Shipmail Python SDK (pip install shipmail), with sync and async clients for the Shipmail REST API.

    shipmail.to · 2026-10-15

  13. [13]
    Shipmail CLI documentation

    The official Shipmail CLI for API health checks, domains, mailboxes, inbox messages, sending, webhooks, suppressions and raw API calls.

    shipmail.to · 2026-10-15

  14. [14]
    Shipmail API authentication documentation

    Shipmail API keys have scopes and can be limited to specific domains and mailboxes; live and test keys are separate.

    shipmail.to · 2026-10-15

  15. [15]
    Shipmail sandbox documentation

    Shipmail test keys simulate sends without delivering them and can simulate a delivery, a bounce or a complaint.

    shipmail.to · 2026-10-15

  16. [16]
    Shipmail suppressions documentation

    Shipmail suppresses an address after a permanent bounce or a spam complaint, accepts manual additions, scopes the list to the organization and rejects a send to a suppressed recipient.

    shipmail.to · 2026-10-15

  17. [17]
    Shipmail sending policy

    New organizations warm up over two weeks: 50 emails a day on days 1 to 3, 200 on days 4 to 7, 500 on days 8 to 14, then the plan limit. Monthly quotas: Solo 20,000, Pro 40,000, Team 120,000, Scale 10,000 per mailbox. The same limits apply to the dashboard, API and SMTP. On a paid plan, transactional senders skip the warm-up and have their own safety limit.

    shipmail.to · 2026-11-04

  18. [18]
    Shipmail email client connection settings

    Shipmail IMAP, SMTP, and JMAP settings: mx1.shipmail.to, IMAP on port 993 with SSL/TLS, SMTP on port 465 with SSL/TLS or 587 with STARTTLS, the full email address as username, and the mailbox password or an app password.

    shipmail.to · 2026-10-15

Questions worth answering

Common questions about gmail smtp settings.

What are the Gmail SMTP server and port?
The server is smtp.gmail.com. Use port 587 with STARTTLS (TLS) or port 465 with SSL, keep the port and encryption paired, and turn on authentication.Sources[1]Google Gmail POP settings[2]Google Workspace: set up Gmail with a third-party email client
Can I use my normal Gmail password for SMTP?
Usually not. Google says Gmail no longer supports third-party apps that ask for your username and password. Use Sign in with Google, or an app password if you have 2-Step Verification and the app cannot sign in with Google.Sources[3]Google Gmail external email-client authentication[4]Google Account app-password documentation
Why is Gmail SMTP not working?
The usual causes are a normal password instead of Sign in with Google or an app password, port 587 set to SSL or 465 set to STARTTLS, or a reached sending limit. Match the error code against the list above.Sources[3]Google Gmail external email-client authentication[2]Google Workspace: set up Gmail with a third-party email client[8]Gmail SMTP errors and codes
How many emails can I send through Gmail SMTP?
A free Gmail account can hit its limit after more than 500 emails in a day. Google Workspace allows 2,000 messages per user per day, 500 on a trial, and 100 recipients per message sent through SMTP.Sources[5]Google Gmail limits for sending and getting mail[6]Gmail sending limits in Google Workspace
Can I use Gmail SMTP to send email from my website or app?
Yes, at low volume, with an app password and your Gmail address as the sender. Past a few hundred emails a day, or when the email must come from your own domain, use a transactional email API instead.Sources[4]Google Account app-password documentation[5]Google Gmail limits for sending and getting mail
What are the Gmail IMAP settings?
Use imap.gmail.com on port 993 with SSL and your full email address as the username. IMAP is always on for personal Google Accounts, so there is nothing to enable in Gmail.Sources[2]Google Workspace: set up Gmail with a third-party email client[3]Google Gmail external email-client authentication

Related guides

More on Shipmail pricing, comparisons, and team workflows.

Email, newsletters and booking pages on your own domain, in one plan.

Get started for free