comparison src/mail/ngx_mail.h @ 9236:d9a52ebb9b00

Mail: max_commands directive. The directive specifies the maximum number of commands allowed during authentication, after which the connection is closed. The default limit is 1000, which is not expected to affect any well-behaving clients, since authentication usually requires at most several commands, though will effectively stop malicious clients from flooding the server with with commands.
author Maxim Dounin <mdounin@mdounin.ru>
date Sat, 30 Mar 2024 05:05:53 +0300
parents dc955d274130
children 4538c1ffb0f8
comparison
equal deleted inserted replaced
9235:d7fd0acdea64 9236:d9a52ebb9b00
114 114
115 ngx_msec_t timeout; 115 ngx_msec_t timeout;
116 ngx_msec_t resolver_timeout; 116 ngx_msec_t resolver_timeout;
117 117
118 ngx_uint_t max_errors; 118 ngx_uint_t max_errors;
119 ngx_uint_t max_commands;
119 120
120 ngx_str_t server_name; 121 ngx_str_t server_name;
121 122
122 u_char *file_name; 123 u_char *file_name;
123 ngx_uint_t line; 124 ngx_uint_t line;
232 233
233 ngx_uint_t command; 234 ngx_uint_t command;
234 ngx_array_t args; 235 ngx_array_t args;
235 236
236 ngx_uint_t errors; 237 ngx_uint_t errors;
238 ngx_uint_t commands;
237 ngx_uint_t login_attempt; 239 ngx_uint_t login_attempt;
238 240
239 /* used to parse POP3/IMAP/SMTP command */ 241 /* used to parse POP3/IMAP/SMTP command */
240 242
241 ngx_uint_t state; 243 ngx_uint_t state;