metadata
title: Gmail
description: >-
Documentation for Gmail IMAP credentials. Use these credentials to
authenticate Gmail IMAP in n8n, a workflow automation platform.
contentType:
- integration
- reference
priority: high
Gmail IMAP credentials
Follow these steps to configure the IMAP credentials with a Gmail account.
Prerequisites
To follow these instructions, you must first:
- Enable 2-step Verification on your Gmail account.
- Generate an app password.
Enable 2-step Verification
--8<-- "_snippets/integrations/builtin/credentials/email/gmail-two-step-verification.md"
Generate an app password
--8<-- "_snippets/integrations/builtin/credentials/email/gmail-app-password.md"
Set up the credential
To set up the IMAP credential with a Gmail account, use these settings:
- Enter your Gmail email address as the User.
- Enter the app password you generated above as the Password.
- Enter
imap.gmail.comas the Host. - For the Port, keep the default port number of
993. Check with your email administrator if this port doesn't work. - Turn on the SSL/TLS toggle.
- Check with your email administrator about whether to Allow Self-Signed Certificates.
Refer to Add Gmail to another client{:target=_blank .external-link} for more information. You may need to Enable IMAP if you're using a personal Google account before June 2024.