comparison src/mail/ngx_mail_smtp_module.c @ 1896:4c060e30476b

do not resolve SMTP clients by default
author Igor Sysoev <igor@sysoev.ru>
date Sat, 16 Feb 2008 13:46:33 +0000
parents 057d362ee50e
children 2a92804f4109
comparison
equal deleted inserted replaced
1895:2e3353955c32 1896:4c060e30476b
156 |NGX_MAIL_AUTH_LOGIN_ENABLED)); 156 |NGX_MAIL_AUTH_LOGIN_ENABLED));
157 157
158 158
159 cscf = ngx_mail_conf_get_module_srv_conf(cf, ngx_mail_core_module); 159 cscf = ngx_mail_conf_get_module_srv_conf(cf, ngx_mail_core_module);
160 160
161 if (cscf->protocol->type == NGX_MAIL_SMTP_PROTOCOL
162 && cscf->resolver == NULL)
163 {
164 ngx_log_error(NGX_LOG_EMERG, cf->log, 0,
165 "undefined resolver for server in %s:%ui",
166 cscf->file_name, cscf->line);
167 return NGX_CONF_ERROR;
168 }
169
170 size = sizeof("220 ESMTP ready" CRLF) - 1 + cscf->server_name.len; 161 size = sizeof("220 ESMTP ready" CRLF) - 1 + cscf->server_name.len;
171 162
172 p = ngx_palloc(cf->pool, size); 163 p = ngx_palloc(cf->pool, size);
173 if (p == NULL) { 164 if (p == NULL) {
174 return NGX_CONF_ERROR; 165 return NGX_CONF_ERROR;