ðòïåëôù 


  áòèé÷ 


Apache-Talk @lexa.ru 

Inet-Admins @info.east.ru 

Filmscanners @halftone.co.uk 

Security-alerts @yandex-team.ru 

nginx-ru @sysoev.ru 


  óôáôøé 


  ðåòóïîáìøîïå 


  ðòïçòáííù 



ðéûéôå
ðéóøíá












     áòèé÷ :: nginx-ru
Nginx-ru mailing list archive (nginx-ru@sysoev.ru)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

unknown directive "mail"


  • To: nginx-ru@xxxxxxxxx
  • Subject: unknown directive "mail"
  • From: Vasiliy Tolstov <v.tolstov@xxxxxxxxx>
  • Date: Wed, 04 Mar 2009 10:32:24 +0300
  • Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=dk; d=selfip.ru; h=Received:Subject:From:Reply-To:To:Content-Type:Organization:Date:Message-Id:Mime-Version:X-Mailer; b=g5kx8C7aWOO2+pnektd2bghLCPA12ubgmg5b/dsTBbk1TFXcssi+27DOzzDrIhABwvKxfSZa6FuIDdCTzuyzLcuuZ5/D/cMcKkO+lgGeGlQ3NkboUndUDZSKCVRo2DCTtR7f9w3Vvdp6Ak+YSuCjFgR6FhoFn/wjFYcTzR/inGE=;
  • Organization: Selfip.Ru

Пытаюсь настроить проксирование 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@xxxxxxxxx>
Selfip.Ru


 




Copyright © Lexa Software, 1996-2009.