mirror of
https://github.com/nginx/nginx.git
synced 2026-07-07 09:10:59 +00:00
Merge 0d03226434 into 42f8df65b6
This commit is contained in:
commit
8df55be5ef
1 changed files with 6 additions and 0 deletions
|
|
@ -788,6 +788,12 @@ ngx_mail_smtp_mail(ngx_mail_session_t *s, ngx_connection_t *c)
|
|||
ngx_str_t *arg, cmd;
|
||||
ngx_mail_smtp_srv_conf_t *sscf;
|
||||
|
||||
#if (NGX_MAIL_SSL)
|
||||
if (ngx_mail_starttls_only(s, c)) {
|
||||
return NGX_MAIL_PARSE_INVALID_COMMAND;
|
||||
}
|
||||
#endif
|
||||
|
||||
sscf = ngx_mail_get_module_srv_conf(s, ngx_mail_smtp_module);
|
||||
|
||||
if (!(sscf->auth_methods & NGX_MAIL_AUTH_NONE_ENABLED)) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue