Mercurial > hg > nginx
comparison src/mail/ngx_mail.h @ 7844:ec1071830799
Mail: max_errors directive.
Similarly to smtpd_hard_error_limit in Postfix and smtp_max_unknown_commands
in Exim, specifies the number of errors after which the connection is closed.
author | Maxim Dounin <mdounin@mdounin.ru> |
---|---|
date | Wed, 19 May 2021 03:13:31 +0300 |
parents | b38728495e1a |
children | dc955d274130 |
comparison
equal
deleted
inserted
replaced
7843:b38728495e1a | 7844:ec1071830799 |
---|---|
112 typedef struct { | 112 typedef struct { |
113 ngx_mail_protocol_t *protocol; | 113 ngx_mail_protocol_t *protocol; |
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 | |
118 ngx_uint_t max_errors; | |
117 | 119 |
118 ngx_str_t server_name; | 120 ngx_str_t server_name; |
119 | 121 |
120 u_char *file_name; | 122 u_char *file_name; |
121 ngx_uint_t line; | 123 ngx_uint_t line; |
229 ngx_str_t cmd; | 231 ngx_str_t cmd; |
230 | 232 |
231 ngx_uint_t command; | 233 ngx_uint_t command; |
232 ngx_array_t args; | 234 ngx_array_t args; |
233 | 235 |
236 ngx_uint_t errors; | |
234 ngx_uint_t login_attempt; | 237 ngx_uint_t login_attempt; |
235 | 238 |
236 /* used to parse POP3/IMAP/SMTP command */ | 239 /* used to parse POP3/IMAP/SMTP command */ |
237 | 240 |
238 ngx_uint_t state; | 241 ngx_uint_t state; |