Forum: NGINX imap port 993 perl + nginx

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
52a1bdc5276b08eca0b223b8eeab776f?d=identicon&s=25 Victor Manuel (mr_brown)
on 2009-02-25 18:40
(Received via mailing list)
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
5640e332954fc0006aea97a155ce0afd?d=identicon&s=25 Igor Sysoev (Guest)
on 2009-02-25 18:54
(Received via mailing list)
On Wed, Feb 25, 2009 at 02:18:33PM -0200, Victor O?ate wrote:

> Hello nginx's users
>
> I have an error in the connection
> nginx against by the ssl Dovecot
> espesificamente port 993

nginx does not support SSL in backend connection.
A8108a0961c6087c43cda32c8616dcba?d=identicon&s=25 Maxim Dounin (Guest)
on 2009-02-25 18:58
(Received via mailing list)
Hello!

On Wed, Feb 25, 2009 at 02:18:33PM -0200, Victor Oñate wrote:

> Hello nginx's users
>
> I have an error in the connection
> nginx against by the ssl Dovecot
> espesificamente port 993

As of now nginx doesn't support ssl backend connections in mail
proxy module, and there is no plans to implement it in near
future.  It's assumed that environment between frontend (nginx)
and backend isn't hostile.  If this isn't the case in your
installation - you may consider using some sort of secure tunnels
between frontends and backends to make it non-hostile.

Maxim Dounin
This topic is locked and can not be replied to.