Welcome! Log In Create A New Profile

Advanced

Re: IMAP: auth_http

Shawn Za
April 14, 2014 03:14AM
This dummy auth script has been the ONLY way I can get my imap or smtp
proxy working!

The problem is that I can only have either imap or smtp. The block below
works great, I just put my backend server (remote location) instead of
127.0.0.1, and my Auth-Port is 143. I see that nginx accepts SSL or
starttls but the backend must run 143 and no SSL. Took forever to get
that working. Is there a way I can make it so that I have some kind of
condition running based on imap or smtp protocol? I tried writing a php
script but everytime I call it with auth_http it does not work. Don't
even ask why, I tried so many ways. There must be a way without having
to call my database directly. The dummy auth script worked wonders but
as mentioned, I need both imap and smtp working and the one below is
just for imap. Please help me get this working!


>> location = /mailauth {
>> add_header Auth-Status OK;
>> add_header Auth-Server 127.0.0.1;
>> add_header Auth-Port 8143;
>> add_header Auth-Wait 1;
>> return 204;
>> }
>>
>> as a dummy auth script.
>>
>> --
>> Maxim Dounin
>> http://nginx.org/en/donation.html

--
Posted via http://www.ruby-forum.com/.

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

IMAP: auth_http

Grant March 08, 2013 12:18AM

Re: IMAP: auth_http

Maxim Dounin March 10, 2013 12:42PM

Re: IMAP: auth_http

Grant March 10, 2013 05:44PM

Re: IMAP: auth_http

Maxim Dounin March 11, 2013 07:30AM

Re: IMAP: auth_http

Shawn Za April 13, 2014 07:04PM

Re: IMAP: auth_http

Shawn Za April 14, 2014 03:14AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 233
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready