# ngx\_mail\_pop3\_module

* [示例配置](#example_configuration)
* [指令](#directives)
  * [pop3\_auth](#pop3_auth)
  * [pop3\_capabilities](#pop3_capabilities)

## 指令 <a href="#directives" id="directives"></a>

### pop3\_auth

|       - | 说明                           |
| ------: | ---------------------------- |
|  **语法** | **pop3\_auth** `method ...`; |
|  **默认** | pop3\_auth plain;            |
| **上下文** | mail、server                  |

为 POP3 客户端设置允许的认证方法。支持的方法有：

* `plain`

  [USER/PASS](https://tools.ietf.org/html/rfc1939)、[AUTH PLAIN](https://tools.ietf.org/html/rfc4616)、[AUTH LOGIN](https://tools.ietf.org/html/draft-murchison-sasl-login-00)。不可能禁用这些方法。
* `apop`

  [APOP](https://tools.ietf.org/html/rfc1939)。为了使此方法正常工作，密码不能加密存储。
* `cram-md5`

  [AUTH CRAM-MD5](https://tools.ietf.org/html/rfc2195)。为了使此方法正常工作，密码不能加密存储。
* `external`

  [AUTH EXTERNAL](https://tools.ietf.org/html/rfc4422)（1.11.6）。

### pop3\_capabilities

|       - | 说明                                      |
| ------: | --------------------------------------- |
|  **语法** | **pop3\_capabilities** `extension ...`; |
|  **默认** | pop3\_capabilities TOP USER UIDL;       |
| **上下文** | mail、server                             |

设置响应 `CAPA` 命令传送给客户端的 [POP3 协议](https://tools.ietf.org/html/rfc2449) 扩展列表。根据 [starttls](https://docshome.gitbook.io/nginx-docs/he-xin-gong-neng/ngx_mail_ssl_module#starttls) 指令值，[pop3\_auth](#pop3_auth) 指令（[SASL](https://tools.ietf.org/html/rfc2449) 扩展）和 [STLS](https://tools.ietf.org/html/rfc2595) 中指定的认证方法将自动添加到此列表。

指定客户端代理的 POP3 后端支持的扩展（当 nginx 透明地代理到后端的客户端连接，如果这些扩展与认证后使用的命令相关），则是有意义的。

## 原文档

<http://nginx.org/en/docs/mail/ngx_mail_pop3_module.html>


---

# 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://docshome.gitbook.io/nginx-docs/he-xin-gong-neng/mail/ngx_mail_pop3_module.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.
