diff options
author | Maxim Dounin <mdounin@mdounin.ru> | 2021-05-19 03:13:31 +0300 |
---|---|---|
committer | Maxim Dounin <mdounin@mdounin.ru> | 2021-05-19 03:13:31 +0300 |
commit | 173f16f736c10eae46cd15dd861b04b82d91a37a (patch) | |
tree | a3894096a4859ffe92043d0a10c5230b082a1203 /src/mail/ngx_mail.h | |
parent | 5015209054f68141cd4f5f61e874d4497d4ef49c (diff) | |
download | nginx-173f16f736c10eae46cd15dd861b04b82d91a37a.tar.gz nginx-173f16f736c10eae46cd15dd861b04b82d91a37a.zip |
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.
Diffstat (limited to 'src/mail/ngx_mail.h')
-rw-r--r-- | src/mail/ngx_mail.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mail/ngx_mail.h b/src/mail/ngx_mail.h index 07104df68..21178c3e2 100644 --- a/src/mail/ngx_mail.h +++ b/src/mail/ngx_mail.h @@ -115,6 +115,8 @@ typedef struct { ngx_msec_t timeout; ngx_msec_t resolver_timeout; + ngx_uint_t max_errors; + ngx_str_t server_name; u_char *file_name; @@ -231,6 +233,7 @@ typedef struct { ngx_uint_t command; ngx_array_t args; + ngx_uint_t errors; ngx_uint_t login_attempt; /* used to parse POP3/IMAP/SMTP command */ |