目录

Module ngx_mail_smtp_module

优质
小牛编辑
132浏览
2023-12-01

Directives

syntax:smtp_auth method ...;
default:
smtp_auth login plain;
context:mail, server

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

login
AUTH LOGIN
plain
AUTH PLAIN
cram-md5
AUTH CRAM-MD5. In order for this method to work, the password must be stored unencrypted.

syntax:smtp_capabilities extension ...;
default:
context:mail, server

Allows to specify the SMTP protocol extensions list to be passed to the client in the response to the EHLO command. Authentication methods specified in the directive are automatically added to this list.

It makes sense to specify extensions supported by MTA to which clients are proxied (if this 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 the www.iana.org.