ngx_mail_smtp_module 模块

Directives

Syntax:

smtp_auth method ...;
   

Default:

smtp_auth plain login;
   

Context:

mail, server
   

Sets permitted methods of SASL authentication for SMTP clients. Supported methods are:

plain

AUTH PLAIN

login

AUTH LOGIN

cram-md5

AUTH CRAM-MD5. In order for this method to work, the password must be stored unencrypted.

external

AUTH EXTERNAL (1.11.6).

none

Authentication is not required.

Plain text authentication methods (AUTH PLAIN and AUTH LOGIN) are always enabled, though if the plain and login methods are not specified, AUTH PLAIN and AUTH LOGIN will not be automatically included in smtp_capabilities.

Syntax:

smtp_capabilities extension ...;
   

Default:

—    

Context:

mail, server
   

Sets the SMTP protocol extensions list that is passed to the client in response to the EHLO command. The authentication methods specified in the smtp_auth directive and STARTTLS are automatically added to this list depending on the starttls directive value.

It makes sense to specify the extensions supported by the MTA to which the clients are proxied (if these extensions are related to commands used after the authentication, when nginx transparently proxies the client connection to the backend).

The current list of standardized extensions is published at www.iana.org.

Syntax:

smtp_client_buffer size;
   

Default:

smtp_client_buffer 4k|8k;
   

Context:

mail, server
   

Sets the size of the buffer used for reading SMTP commands. By default, the buffer size is equal to one memory page. This is either 4K or 8K, depending on a platform.

Syntax:

smtp_greeting_delay time;
   

Default:

smtp_greeting_delay 0;
   

Context:

mail, server
   

Allows setting a delay before sending an SMTP greeting in order to reject clients who fail to wait for the greeting before sending SMTP commands.

说说我的看法
全部评论(
没有评论
关于
本网站专注于 Java、数据库(MySQL、Oracle)、Linux、软件架构及大数据等多领域技术知识分享。涵盖丰富的原创与精选技术文章,助力技术传播与交流。无论是技术新手渴望入门,还是资深开发者寻求进阶,这里都能为您提供深度见解与实用经验,让复杂编码变得轻松易懂,携手共赴技术提升新高度。如有侵权,请来信告知:hxstrive@outlook.com
公众号