imap port 993 perl + nginx

Victor Oñate victormanuelo at gmail.com
Wed Feb 25 19:18:33 MSK 2009


Hello nginx's users

I have an error in the connection
nginx against by the ssl Dovecot
espesificamente port 993


this work excelent.

#cat nginx.conf
  server {
        listen     993;
        protocol   imap;
        proxy      on;
        ssl        on;
        ssl_certificate /etc/ssl/cert.crt;
        ssl_certificate_key /etc/ssl/cert.key;
        starttls on;
    }

  perl_modules  /etc/nginx/perl/lib;
    perl_require  ModulAuth.pm;

    server {
        listen 8000;
        location /auth {
            perl  ModulAuth::handler;
        }


Here is the error with the port 993, when you  put 143 runs
perfect

#cat ModulAuth
  $r->header_out( "Auth-Status", "OK" ) ;
  $r->header_out( "Auth-Server", $mail_server_ip->{$maildrop} );
  $r->header_out( "Auth-Port", "993");
  $r->send_http_header("text/html");


# nginx -V
nginx version: nginx/0.5.35
built by gcc 4.1.2 20061115 (prerelease) (Debian 4.1.1-21)
configure arguments: --conf-path=/etc/nginx/nginx.conf
--error-log-path=/var/log/nginx/error.log
--pid-path=/var/run/nginx.pid --lock-path=/var/lock/nginx.lock
--http-log-path=/var/log/nginx/access.log
--http-client-body-temp-path=/var/lib/nginx/body
--http-proxy-temp-path=/var/lib/nginx/proxy
--http-fastcgi-temp-path=/var/lib/nginx/fastcgi --with-debug
--with-http_stub_status_module --with-http_flv_module
--with-http_ssl_module --with-http_dav_module --with-mail
--with-http_perl_module --with-perl_modules_path=/etc/nginx/perl/lib
--with-mail_ssl_module


thanks.. a lot

Mr_Brown





More information about the nginx mailing list