diff options
| author | Igor Sysoev <igor@sysoev.ru> | 2008-02-13 13:50:04 +0000 |
|---|---|---|
| committer | Igor Sysoev <igor@sysoev.ru> | 2008-02-13 13:50:04 +0000 |
| commit | 45450461b682602098b85d39ff6c12896c3148bb (patch) | |
| tree | 62d3d054d33d3f9dcffa4532b06b933c9608ceae /src/mail/ngx_mail_smtp_module.c | |
| parent | 04610ead82aee661d07534dae1836b8566a49794 (diff) | |
| download | nginx-45450461b682602098b85d39ff6c12896c3148bb.tar.gz nginx-45450461b682602098b85d39ff6c12896c3148bb.tar.bz2 | |
resolver in smtp proxy module
Diffstat (limited to 'src/mail/ngx_mail_smtp_module.c')
| -rw-r--r-- | src/mail/ngx_mail_smtp_module.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/mail/ngx_mail_smtp_module.c b/src/mail/ngx_mail_smtp_module.c index 5f5ac0567..71ba3fd9a 100644 --- a/src/mail/ngx_mail_smtp_module.c +++ b/src/mail/ngx_mail_smtp_module.c @@ -158,6 +158,15 @@ ngx_mail_smtp_merge_srv_conf(ngx_conf_t *cf, void *parent, void *child) cscf = ngx_mail_conf_get_module_srv_conf(cf, ngx_mail_core_module); + if (cscf->protocol->type == NGX_MAIL_SMTP_PROTOCOL + && cscf->resolver == NULL) + { + ngx_log_error(NGX_LOG_EMERG, cf->log, 0, + "undefined resolver for server in %s:%ui", + cscf->file_name, cscf->line); + return NGX_CONF_ERROR; + } + size = sizeof("220 ESMTP ready" CRLF) - 1 + cscf->server_name.len; p = ngx_palloc(cf->pool, size); |
