February 08, 2011 09:05AM
Hello,

i do some tests with nginx and the mail proxy modules. running imap/pop3 seems to work. Now i try with smtp.
My auth-server is a little php-script:

<?
header("HTTP/1.0 200 OK");
header("Auth-Status: OK");
header("Auth-Server: 127.0.0.1");
header("Auth-Port: 25");
header("Auth-Protocol: smtp");
header("Auth-User: myusername");
header("Auth-Pass: mypass");
?>

When testing smtp by telnet i got: 451 4.3.2 Internal server error after auth login.
and in log:
2011/02/08 14:04:42 [error] 27740#0: *23 upstream sent invalid response: "550 5.7.0 Error: insufficient authorization" while reading response from upstream, client: ip.ip.ip.ip, server: 0.0.0.0:26, login: "myusername", upstream: 127.0.0.1:25

what else is needed?

i have 2 more questions.
how to provide a basic log for mail-proxying? i only got server-errorlog to work.
i read that nginx in smtp-proxy mode wants to do the complete auth-stuff and needs an "open" smtp-engine behind. This is not what i like. I would like that nginx is just transfering sessions to assigned host and let the real smtp-engine(postfix) let do the auth stuff. with pop/imap proxy ngingx is working like this but not with smtp. is this possible with nginx?

Thanks,
Hajo
Subject Author Posted

Error: insufficient authorization

HajoLOcke February 08, 2011 09:05AM

Re: Error: insufficient authorization

Maxim Dounin February 08, 2011 09:28AM

Re: Error: insufficient authorization

HajoLOcke February 08, 2011 09:46AM

Re: Error: insufficient authorization

Maxim Dounin February 08, 2011 10:32AM

Re: Error: insufficient authorization

HajoLOcke February 08, 2011 11:09AM

Re: Error: insufficient authorization

Maxim Dounin February 08, 2011 11:42AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 254
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