Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
nginx
GitHub Repository: nginx/nginx.org
Path: blob/main/xml/en/docs/mail/ngx_mail_smtp_module.xml
1 views
1
<?xml version="1.0"?>
2
3
<!--
4
Copyright (C) 2006, 2007 Anton Yuzhaninov
5
Copyright (C) Nginx, Inc.
6
-->
7
8
<!DOCTYPE module SYSTEM "../../../../dtd/module.dtd">
9
10
<module name="Module ngx_mail_smtp_module"
11
link="/en/docs/mail/ngx_mail_smtp_module.html"
12
lang="en"
13
rev="8">
14
15
<section id="directives" name="Directives">
16
17
<directive name="smtp_auth">
18
<syntax><value>method</value> ...</syntax>
19
<default>plain login</default>
20
<context>mail</context>
21
<context>server</context>
22
23
<para>
24
Sets permitted methods of
25
<link url="https://datatracker.ietf.org/doc/html/rfc2554">SASL authentication</link>
26
for SMTP clients.
27
Supported methods are:
28
<list type="tag">
29
30
<tag-name><literal>plain</literal></tag-name>
31
<tag-desc>
32
<link url="https://datatracker.ietf.org/doc/html/rfc4616">AUTH PLAIN</link>
33
</tag-desc>
34
35
<tag-name><literal>login</literal></tag-name>
36
<tag-desc>
37
<link url="https://datatracker.ietf.org/doc/html/draft-murchison-sasl-login-00">AUTH LOGIN</link>
38
</tag-desc>
39
40
<tag-name><literal>cram-md5</literal></tag-name>
41
<tag-desc>
42
<link url="https://datatracker.ietf.org/doc/html/rfc2195">AUTH CRAM-MD5</link>.
43
In order for this method to work, the password must be stored unencrypted.
44
</tag-desc>
45
46
<tag-name><literal>external</literal></tag-name>
47
<tag-desc>
48
<link url="https://datatracker.ietf.org/doc/html/rfc4422">AUTH EXTERNAL</link> (1.11.6).
49
</tag-desc>
50
51
<tag-name><literal>none</literal></tag-name>
52
<tag-desc>
53
Authentication is not required.
54
</tag-desc>
55
56
</list>
57
</para>
58
59
<para>
60
Plain text authentication methods
61
(<literal>AUTH PLAIN</literal> and <literal>AUTH LOGIN</literal>)
62
are always enabled,
63
though if the <literal>plain</literal> and <literal>login</literal> methods
64
are not specified,
65
<literal>AUTH PLAIN</literal> and <literal>AUTH LOGIN</literal>
66
will not be automatically included in <link id="smtp_capabilities"/>.
67
</para>
68
69
</directive>
70
71
72
<directive name="smtp_capabilities">
73
<syntax><value>extension</value> ...</syntax>
74
<default/>
75
<context>mail</context>
76
<context>server</context>
77
78
<para>
79
Sets the SMTP protocol extensions list
80
that is passed to the client in response to the
81
<literal>EHLO</literal> command.
82
The authentication methods specified in the <link id="smtp_auth"/> directive and
83
<link url="https://datatracker.ietf.org/doc/html/rfc3207">STARTTLS</link>
84
are automatically added to this list depending on the
85
<link doc="ngx_mail_ssl_module.xml" id="starttls"/> directive value.
86
</para>
87
88
<para>
89
It makes sense to specify the extensions
90
supported by the MTA
91
to which the clients are proxied (if these extensions are related to commands
92
used after the authentication, when nginx transparently proxies the client
93
connection to the backend).
94
</para>
95
96
<para>
97
The current list of standardized extensions is published at
98
<link url="http://www.iana.org/assignments/mail-parameters">www.iana.org</link>.
99
</para>
100
101
</directive>
102
103
104
<directive name="smtp_client_buffer">
105
<syntax><value>size</value></syntax>
106
<default>4k|8k</default>
107
<context>mail</context>
108
<context>server</context>
109
110
<para>
111
Sets the <value>size</value> of the buffer used for reading SMTP commands.
112
By default, the buffer size is equal to one memory page.
113
This is either 4K or 8K, depending on a platform.
114
</para>
115
116
</directive>
117
118
119
<directive name="smtp_greeting_delay">
120
<syntax><value>time</value></syntax>
121
<default>0</default>
122
<context>mail</context>
123
<context>server</context>
124
125
<para>
126
Allows setting a delay before sending an SMTP greeting
127
in order to reject clients who fail to wait for the greeting before
128
sending SMTP commands.
129
</para>
130
131
</directive>
132
133
</section>
134
135
</module>
136
137