# 31.1.概述

“电子邮件”（Electronic Mail），更广为人知的是电子邮件（email），是今天最广泛使用的通讯方式之一。本章提供了在 FreeBSD 上运行邮件服务器的基本介绍，并介绍了如何使用 FreeBSD 发送和接收电子邮件。有关该主题的完整覆盖，请参阅 [参考书目](https://docs.freebsd.org/en/books/handbook/bibliography/#bibliography) 中列出的书籍。

本章内容包括：

* 发送和接收电子邮件所涉及的软件组件。
* 如何配置 DragonFly Mail Agent。
* FreeBSD 中基本 Sendmail 配置文件的位置。
* 远程邮箱和本地邮箱之间的区别。
* 如何安装和配置替代邮件传输代理（Mail Transfer Agent），以替代 DragonFly Mail Agent 或 Sendmail。
* 如何排查常见的邮件服务器问题。
* 如何配置 Sendmail 仅用于发送邮件。
* 如何为 Sendmail 配置 SMTP 身份验证，以增强安全性。
* 如何安装和使用邮件用户代理（Mail User Agent），如 mutt，来发送和接收电子邮件。
* 如何从远程 POP 或 IMAP 服务器下载邮件。
* 如何自动应用过滤器和规则以处理传入的邮件。


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://handbook.bsdcn.org/di-31-zhang-dian-zi-you-jian/31.1.-gai-shu.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
