Error: insufficient authorization

HajoLOcke nginx-forum at nginx.us
Tue Feb 8 17:05:44 MSK 2011


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

Posted at Nginx Forum: http://forum.nginx.org/read.php?2,173197,173197#msg-173197




More information about the nginx mailing list