---
title: 设置自定义域名
description: 添加一个发送域名，发布它的三条 DNS 记录，验证它们，并把该域名设为工作区电子邮件的默认域名。
sidebar:
  order: 2
area: integrations
feature: email
appPath: /settings/integrations/installed
lastVerified: 2026-11-02
version: "2026-10-30"
audience: admin
related:
  - integrations/email
  - settings/senders/add-an-email-sender
intercom:
  - id: "13834862"
    title: Configure a Custom Email Domain in Pyn (Pyn 2)
    url: https://intercom.help/pyn/en/articles/13834862-configure-a-custom-email-domain-in-pyn-pyn-2
    note: replaces
translation:
  source: integrations/email/set-up-a-custom-domain.mdx
  sourceSha: a2508e0a8b35aabc9df97f0c648187956feb6338
---

你希望来自 Pyn 的电子邮件由你自己的域名而不是 Pyn 的域名签名，这样它能通过员工的邮件过滤器，并且看起来像是你发出的。添加域名后你会得到三条 DNS 记录；它们生效并通过验证后，域名就可以使用，并可以设为默认。

## 开始之前

- 你是管理员或所有者，并且你的工作区启用了自定义域名；只有这样，**Add Custom Domain** 操作才会出现。
- 有人能在你的 DNS 提供商处添加 CNAME 记录。使用一个子域名，例如 `mail.example.com`。

![The Email integration panel with its Details, Senders and Email Events tabs.](https://support.pyn.ai/media/integrations/email/integrations-email-panel.png)

## 步骤

1. 在 Pyn 中，打开左侧导航中的 **Settings**，然后打开 **Integrations** 下的 **Installed**，并选择 **Email** 磁贴。

2. 打开 **...** 菜单并选择 **Add Custom Domain**。

3. 输入 **Domain**（例如 `mail.example.com`）并选择 **Add**。如果无法添加域名，会有一条提示显示 **Could not add this domain**，对话框保持打开并保留你输入的域名。

4. 对话框变为 **DNS Records**："Add these DNS records to your domain, then verify the domain." 它列出 **DKIM 1**、**DKIM 2** 和 **Mail CNAME**，每条带有 **Type**、**Host** 和 **Value**。把它们原样复制到你的 DNS 提供商，然后选择 **Done**。

5. 记录传播完成后，打开 **Custom Domains** 标签页，选择该域名，并选择 **Verify DNS**。"Domain Verified" 加上 "Your custom domain is ready to use." 表示成功。

6. 打开域名的 **...** 菜单并选择 **Set Default**。"This domain is now the default." 表示成功。

> **Caution:** 域名菜单中的 **Delete** 会把它从 Pyn 和电子邮件服务中移除："Are you sure you want to delete this custom domain? This action cannot be undone." 重新添加意味着新的记录和重新验证。

## 你应该看到什么

域名的面板显示 **Default**，三条记录各标记为 **Valid**，位于 "Your domain is verified." 之下。你添加的第一个域名会自动成为默认域名。如果验证失败，面板显示 "DNS verification failed. Please check your DNS records:"，并指出失败的记录和原因；DNS 更改可能需要一段时间传播，所以更正记录，等待，然后再次选择 **Verify DNS**。

## 相关

- [电子邮件](https://support.pyn.ai/zh-cn/integrations/email/)，了解 Email 集成的其余部分。
- [添加电子邮件发件人](https://support.pyn.ai/zh-cn/settings/senders/add-an-email-sender/)，从该域名上的地址发送。
