2 messages in ru.sysoev.nginxRe: IMAPS
FromSent OnAttachments
Nuno MarquesMar 21, 2007 8:55 am 
Igor SysoevMar 23, 2007 3:10 am 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:Re: IMAPSActions...
From:Igor Sysoev (is-G@public.gmane.org)
Date:Mar 23, 2007 3:10:41 am
List:ru.sysoev.nginx

On Wed, Mar 21, 2007 at 03:55:56PM +0000, Nuno Marques wrote:

I have sucessfuly configured nginx to receive IMAP/POP requests on SSL:

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

This works just fine, but I would like to know if it is possible to connect to the imap server using SSL too. I've created a php file to authenticate the users and redirect them to the right server:

header('Auth-Status: OK'); header('Auth-Server: 127.0.0.1'); header("Auth-Port: 145");

Is there any directive to tell nginx to use SSL on the PHP file?

I know I can use stunnel to create tunnels between nginx and the imap/pop servers, but that solution looks a little bit ugly :)

No, nginx does not support SSL between itself and IMAP/POP3 backend.