Skip to content

Gmail IMAP 凭据(Gmail IMAP credentials)#

请按照以下步骤配置 Gmail 账户的 IMAP 凭据。

🌐 Follow these steps to configure the IMAP credentials with a Gmail account.

先决条件(Prerequisites)#

要遵循这些说明,你必须首先:

🌐 To follow these instructions, you must first:

  1. 在您的 Gmail 帐户上启用两步验证
  2. 生成应用密码

启用两步验证(Enable 2-step Verification)#

To enable 2-step Verification:

  1. Log in to your Google Account.
  2. Select Security from the left navigation.
  3. Under How you sign in to Google, select 2-Step Verification.
    • If 2-Step Verification is already enabled, skip to the next section.
  4. Select Get started.
  5. Follow the on-screen steps to configure 2-Step Verification.

Refer to Turn on 2-step Verification for more information.

If you can't turn on 2-step Verification, check with your email administrator.

生成应用密码(Generate an app password)#

To generate an app password:

  1. In your Google account, go to App passwords.
  2. Enter an App name for your new app password, like n8n credential.
  3. Select Create.
  4. Copy the generated app password. You'll use this in your n8n credential.

Refer to Google's Sign in with app passwords documentation for more information.

设置凭据(Set up the credential)#

要使用 Gmail 账户设置 IMAP 凭据,请使用以下设置:

🌐 To set up the IMAP credential with a Gmail account, use these settings:

  1. 用户 一栏输入你的 Gmail 邮箱地址。
  2. 将你在上面生成的应用密码输入为 密码
  3. 主机 中输入 imap.gmail.com
  4. 对于端口,保持默认端口号 993。如果此端口无法使用,请与你的电子邮件管理员联系。
  5. 打开 SSL/TLS 开关。
  6. 请与你的邮箱管理员确认是否允许 自签名证书

有关更多信息,请参阅将 Gmail 添加到其他客户端。如果你使用的是2024年6月之前的个人 Google 帐号,可能需要启用 IMAP

🌐 Refer to Add Gmail to another client for more information. You may need to Enable IMAP if you're using a personal Google account before June 2024.