How to configure Nginx as IMAP/POP3 reverse proxy - IBM Lotus Domino Server

Maxim Dounin mdounin at mdounin.ru
Sun Sep 26 19:49:43 MSD 2010


Hello!

On Sun, Sep 26, 2010 at 02:24:21AM -0700, Juliana The wrote:

> 
> Hi all,
> I'm newbie with nginx.
> I have IBM Lotus Domino Server as an email server with IP Address 192.168.221.1
> and Linux installed Nginx as IMAP/POP3 reverse proxy with IP Address 192.168.221.130
> I've configured nginx.conf like below :
> #user nobody;
> worker_processes 1;
> error_log /usr/local/nginx/logs/error.log;
> pid /usr/local/nginx/logs/nginx.pid;
> events {
> worker_connections 1024;
> multi_accept on;
> }
> mail {
> auth_http 192.168.221.1:81; #Domino server with http proxy (81)

This is obviously wrong as there is no URI of auth script.

http://wiki.nginx.org/MailAuthModule

> auth_http_timeout 6000;
> pop3_auth "plain";
> pop3_capabilities "TOP" "USER";
> imap_capabilities "IMAP4rev1" "UIDPLUS";
> server {
> listen 110;
> protocol pop3;
> proxy on;
> }
> server {
> listen 143;
> protocol imap;
> proxy on;
> }
> }
> When I tried telnet from client pc to Nginx, I get this response :
> C:\> telnet 192.168.221.130 110
> +OK POP3 ready
> C:\> telnet 192.168.221.130 143
> +OK IMAP4 ready
> I also can telnet from NGINX server to Domino and get this response :
> [root at centostest ~]# telnet 192.168.221.1 81
> Trying 192.168.221.1...
> Connected to 192.168.221.1 (192.168.221.1).
> Escape character is '^]'.
> [root at centostest ~]# telnet 192.168.221.1 110
> Trying 192.168.221.1...
> Connected to 192.168.221.1 (192.168.221.1).
> Escape character is '^]'.
> +OK Lotus Notes POP3 server version Release 8.5.1 ready on JULMAIL/JTHE.
> [root at centostest ~]# telnet 192.168.221.1 143
> Trying 192.168.221.1...
> Connected to 192.168.221.1 (192.168.221.1).
> Escape character is '^]'.
> * OK Domino IMAP4 Server Release 8.5.1 ready Sun, 26 Sep 2010 13:56:39 +1000
>  
> Does anyone can help how to configure nginx to get response like below :
> When I telnet from client to 192.168.221.130 110
> C:\> telnet 192.168.221.130 110
> +OK Lotus Notes POP3 server version Release 8.5.1 ready on JULMAIL/JTHE.
> When I telnet from client to 192.168.221.130 143
> C:\> telnet 192.168.221.130 143
> * OK Domino IMAP4 Server Release 8.5.1 ready Sun, 26 Sep 2010 13:56:39 +1000

No, you can't change server greeting lines in nginx.

Maxim Dounin



More information about the nginx mailing list