# 如何在电子邮件 -"\> 服务器设置中设置域值

**URL:** <https://meta.discourse.org/t/how-to-set-domain-value-in-email-server-settings/368902>\
**Category:** Self-hosting\
**Created:** [2025年六月4日 20:14 UTC](https://meta.discourse.org/t/how-to-set-domain-value-in-email-server-settings/368902 "2025-06-04T20:14:18Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![supermathie](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/supermathie/32/507518_2.png) [@supermathie](https://meta.discourse.org/u/supermathie)\
**Post date:** [2025年六月5日 15:03 UTC](https://meta.discourse.org/t/how-to-set-domain-value-in-email-server-settings/368902/7 "2025-06-05T15:03:11Z")

</div>

它可能设置在您的容器配置文件中，模板中的默认内容如下：

```plaintext
  DISCOURSE_SMTP_ADDRESS: smtp.example.com
  #DISCOURSE_SMTP_PORT: 587
  DISCOURSE_SMTP_USER_NAME: user@example.com
  DISCOURSE_SMTP_PASSWORD: pa$$word
  #DISCOURSE_SMTP_ENABLE_START_TLS: true # (可选，默认为 true)
  #DISCOURSE_SMTP_DOMAIN: discourse.example.com # (某些提供商需要)
  #DISCOURSE_NOTIFICATION_EMAIL: noreply@discourse.example.com # (用于发送通知的地址)

```

---

_[View the full topic](https://meta.discourse.org/t/how-to-set-domain-value-in-email-server-settings/368902)._
