unknown directive "mail"

Vasiliy Tolstov v.tolstov at selfip.ru
Wed Mar 4 10:32:24 MSK 2009


Пытаюсь настроить проксирование imap и smtp посредством nginx, который
собран со следующими параметрами

configure arguments: --prefix=/usr --conf-path=/etc/nginx/nginx.conf
--http-log-path=/var/log/nginx/access_log
--error-log-path=/var/log/nginx/error_log --pid-path=/var/run/nginx.pid
--http-client-body-temp-path=/var/tmp/nginx/client
--http-proxy-temp-path=/var/tmp/nginx/proxy
--http-fastcgi-temp-path=/var/tmp/nginx/fastcgi --with-md5-asm
--with-md5=/usr/include --with-sha1-asm --with-sha1=/usr/include
--with-http_realip_module --with-http_flv_module --with-http_ssl_module
--with-http_stub_status_module --with-mail --with-mail_ssl_module

конфиг использую такой
server
{                                                                                                                                               
  listen
80;                                                                                                                                   
  server_name www.mail.selfip.ru mail.selfip.ru;
  index  index.php;
  root /usr/share/webapps/roundcube/0.2/htdocs;

  access_log  /home/vase/logs/mail.selfip.ru/access_log main;
  error_log   /home/vase/logs/mail.selfip.ru/error_log warn;

  include /etc/nginx/templates/generic.conf;
  
  location ~ \.php$
{                                                                                                                                       
    fastcgi_pass   unix:/var/tmp/php-fpm/mail.selfip.ru;
    fastcgi_index  index.php;
    fastcgi_param  SCRIPT_FILENAME  $document_root$fastcgi_script_name;
    include        /etc/nginx/fastcgi_params;
  }
}

mail {
  server_name  mail.selfip.ru;
  auth_http    localhost:9000/cgi-bin/nginxauth.cgi;
	          
  imap_capabilities "IMAP4rev1" "SASL-IR" "SORT" "THREAD=REFERENCES"
"MULTIAPPEND" "UNSELECT" "LITERAL+" "IDLE" "CHILDREN" "NAMESPACE"
"LOGIN-REFERRALS" "UIDPLUS" "LIST-EXTENDED" "I18NLEVEL=1" "QUOTA"
"STARTTLS" "LOGINDISABLED" "AUTH=DIGEST-MD5" "AUTH=CRAM-MD5";
          
  smtp_auth         login plain cram-md5;
  smtp_capabilities "SIZE 10485760" "PIPELINING" "8BITMIME";

  xclient off;

  server {
    listen               25;
    protocol           smtp;
    timeout            300s;
  }

  server {
    listen     143;
    protocol   imap;
    proxy      on;
   }
  
  server {
    listen              587;
    protocol           smtp;
    timeout            300s;
  }
}

nginx -t говорит мне, что я не прав 
2009/03/04 10:31:48 [emerg] 9614#0: unknown directive "mail"
in /etc/nginx/vhosts/mail.selfip.ru:20
2009/03/04 10:31:48 [emerg] 9614#0: the configuration
file /etc/nginx/nginx.conf test failed

П.С. Простите за сообщение в html, но почтовик отказывается делать
нормальное форматирование конфига.
-- 
Vasiliy Tolstov <v.tolstov at selfip.ru>
Selfip.Ru
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://nginx.org/pipermail/nginx-ru/attachments/20090304/1308f160/attachment.html>


More information about the nginx-ru mailing list