# 如何使用 gsuite smtp 进行安装

**URL:** <https://meta.discourse.org/t/how-to-use-gsuite-smtp-with-installation/212666>\
**Category:** Self-hosting\
**Created:** [2021年十二月20日 10:50 UTC](https://meta.discourse.org/t/how-to-use-gsuite-smtp-with-installation/212666 "2021-12-20T10:50:53Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![freebie](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/freebie/32/242462_2.png) [@freebie](https://meta.discourse.org/u/freebie)\
**Post date:** [2021年十二月20日 10:50 UTC](https://meta.discourse.org/t/how-to-use-gsuite-smtp-with-installation/212666/1 "2021-12-20T10:50:53Z")

</div>

您好，许多人在尝试使用其 gSuite 帐户的 SMTP 服务时会遇到困难。我找到了一个解决方法！请执行以下步骤。

- 登录 [Google 管理控制台](https://admin.google.com/)。
- 转到 _ **应用** _ \> _ **Gmail** _。  
 ![image](https://global.discourse-cdn.com/meta/original/3X/c/e/cebc9ce7df56cd8be26214f62b694002518c18c9.png)
- 然后，转到页面底部的路由部分。  
 ![image](https://global.discourse-cdn.com/meta/original/3X/3/b/3bbd825b804969f5cf024a005db4d057bcf44873.png)
- 在将打开的页面上，转到 **SMTP 中继服务** 部分。点击 **新建规则 / 添加另一条规则** 。  
 ![image](https://global.discourse-cdn.com/meta/original/3X/c/8/c87e1dd03941a72b55056e39fcec7bcc18163392.png)
- 输入您将要使用 SMTP 的简短描述或摘要，例如“ **仅为元讨论指南进行测试** ”。
- 第二个选项，下拉菜单取决于您的需求。
- 在 **身份验证** 下，第一个选项是推荐的，但并非强制。如果选中，SMTP 将仅从指定的服务器地址返回成功。
- 确保选中需要 SMTP 凭据。
- 在 **加密** 下，选中 **需要 TLS 加密** 以获得更好的安全性！

供参考的示例：

 ![image](https://global.discourse-cdn.com/meta/original/3X/4/1/41d0d3e3b04aec76889f94f5c74b1853a8d95e37.png)

- 然后登录您的 Google 帐户设置并创建应用专用密码。

因此，您的用户名将是您的电子邮件地址，密码将是应用专用密码。
