blob: 3c25e9cc94db7eba66715af3edbc01252cd8c085 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
|
=encoding utf-8
=head1 NAME
ngx_mail_smtp_module - Module ngx_mail_smtp_module
=head1 Directives
=head2 smtp_auth
B<syntax:> smtp_auth I<I<C<method>> ...>
B<default:> I<plain login>
B<context:> I<mail>
B<context:> I<server>
Sets permitted methods of
L<SASL authentication|https://datatracker.ietf.org/doc/html/rfc2554>
for SMTP clients.
Supported methods are:
=over
=item C<plain>
L<AUTH PLAIN|https://datatracker.ietf.org/doc/html/rfc4616>
=item C<login>
L<AUTH LOGIN|https://datatracker.ietf.org/doc/html/draft-murchison-sasl-login-00>
=item C<cram-md5>
L<AUTH CRAM-MD5|https://datatracker.ietf.org/doc/html/rfc2195>.
In order for this method to work, the password must be stored unencrypted.
=item C<external>
L<AUTH EXTERNAL|https://datatracker.ietf.org/doc/html/rfc4422> (1.11.6).
=item C<none>
Authentication is not required.
=back
Plain text authentication methods
(C<AUTH PLAIN> and C<AUTH LOGIN>)
are always enabled,
though if the C<plain> and C<login> methods
are not specified,
C<AUTH PLAIN> and C<AUTH LOGIN>
will not be automatically included in L</smtp_capabilities>.
=head2 smtp_capabilities
B<syntax:> smtp_capabilities I<I<C<extension>> ...>
B<context:> I<mail>
B<context:> I<server>
Sets the SMTP protocol extensions list
that is passed to the client in response to the
C<EHLO> command.
The authentication methods specified in the L</smtp_auth> directive and
L<STARTTLS|https://datatracker.ietf.org/doc/html/rfc3207>
are automatically added to this list depending on the
L<ngx_mail_ssl_module> 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
L<www.iana.org|http://www.iana.org/assignments/mail-parameters>.
=head2 smtp_client_buffer
B<syntax:> smtp_client_buffer I<I<C<size>>>
B<default:> I<4kE<verbar>8k>
B<context:> I<mail>
B<context:> I<server>
Sets the I<C<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.
=head2 smtp_greeting_delay
B<syntax:> smtp_greeting_delay I<I<C<time>>>
B<default:> I<0>
B<context:> I<mail>
B<context:> I<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.
|