> ## Documentation Index
> Fetch the complete documentation index at: https://ayakaleaf-pro.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# 多个邮箱

> 为账户添加另一个邮箱，并在某个地址被收回之前将账户迁移到该邮箱。

> [!NOTE]
>
> 此功能由 [ayaka-notes/ayakaleaf-pro](https://github.com/ayaka-notes/ayakaleaf-pro) 开发，自 v6.4.0 起可用。

一个账户可以有多个邮箱。当某个地址即将被收回时（例如毕业后的学校邮箱），添加一个新邮箱，就能保留你的账户和项目。

当你的实例可以发送邮件时，会显示邮箱列表。否则，设置页面只有一个邮箱字段。

**1. 打开你的邮箱**

点击 **Account**，然后点击 **Account settings**。你的邮箱位于 **Emails and affiliations** 下。

![Emails and affiliations 部分，包含一个主邮箱和 Add another email 链接](https://mintcdn.com/ayakaleaf-pro/mlmwh-cFnbQQR2c-/images/on-premises/multiple-emails-list.png?fit=max\&auto=format\&n=mlmwh-cFnbQQR2c-\&q=85\&s=1023110906f472c4216b5d1f8524e92d)

你的邮箱

**2. 添加新邮箱**

点击 **Add another email**，输入地址并点击 **Add new email**。

![填有新地址和 Add new email 按钮的表单](https://mintcdn.com/ayakaleaf-pro/mlmwh-cFnbQQR2c-/images/on-premises/multiple-emails-add.png?fit=max\&auto=format\&n=mlmwh-cFnbQQR2c-\&q=85\&s=569e247794d037030a4c37c406d095eb)

添加邮箱

**3. 输入验证码**

系统会向新地址发送一个 6 位验证码。输入验证码并点击 **Confirm**。如果没有收到，请点击 **Resend confirmation code**。

![要求输入 6 位验证码的 Confirm your email address 表单](https://mintcdn.com/ayakaleaf-pro/mlmwh-cFnbQQR2c-/images/on-premises/multiple-emails-code.png?fit=max\&auto=format\&n=mlmwh-cFnbQQR2c-\&q=85\&s=1a57176409611ea0250c57db280a2fb5)

确认新邮箱

该邮箱现已出现在你的列表中，你的主邮箱会收到一条已添加该邮箱的通知。

![包含主邮箱和带有 Make primary 按钮的新邮箱的列表](https://mintcdn.com/ayakaleaf-pro/mlmwh-cFnbQQR2c-/images/on-premises/multiple-emails-added.png?fit=max\&auto=format\&n=mlmwh-cFnbQQR2c-\&q=85\&s=2f3f0229df45ffe971b96f06243db85d)

列表中的新邮箱

**4. 将其设为主邮箱**

点击新邮箱旁的 **Make primary**，然后点击 **Change primary email**。

![带有 Change primary email 按钮的 Confirm primary email change 对话框](https://mintcdn.com/ayakaleaf-pro/mlmwh-cFnbQQR2c-/images/on-premises/multiple-emails-make-primary.png?fit=max\&auto=format\&n=mlmwh-cFnbQQR2c-\&q=85\&s=4e81d2d70b11e6a8a4188e46e0b75fa8)

确认更改

从现在起，请使用新邮箱登录。旧邮箱仍保留在列表中。

![新邮箱为主邮箱、旧邮箱位于其下方的列表](https://mintcdn.com/ayakaleaf-pro/mlmwh-cFnbQQR2c-/images/on-premises/multiple-emails-primary-changed.png?fit=max\&auto=format\&n=mlmwh-cFnbQQR2c-\&q=85\&s=da27d6a745d8ba5b962b7e0ae5181b39)

新的主邮箱

## 每个邮箱能做什么

* 只有主邮箱可以登录和接收密码重置邮件。辅助邮箱两者都不行，因此之后被分配给他人的地址无法接管你的账户。
* 请在旧邮箱关闭前点击 **Make primary**。之后只有管理员可以更改你的邮箱。
* 你已验证的旧主邮箱会保留为辅助邮箱。从未验证过的邮箱会在其他邮箱成为主邮箱时被移除。
* 要删除辅助邮箱，请点击其垃圾桶图标。之后其他账户就可以添加该地址。
* 属于其他账户的地址无法添加。
* 在使用 LDAP 或 SAML 登录的实例上，你可以添加邮箱，但 **Make primary** 会被拒绝，因为你将无法再用新邮箱登录。


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.