Thanks for your respond.
So we must 1st setup an HTTP authentication server (PHP or something )
for
auth_http, right ?
Could you tell me a little more how to setup this HTTP authen URL ?
In my example:
NGINX server IP : 192.168.1.100
POP3 / SMTP server IP : 192.168.1.101
On Thu, Oct 17, 2013 at 05:55:46AM -0400, hcmnttan wrote:
I found that link before,
Things I wonder is that where “localhost:9000/cgi-bin/auth;” is coming
from? Is it a http URL ?
I don’t know how to define “localhost:9000/cgi-bin/auth” URL for auth_http
Sorry if my question is so silly. I’m very new to NGINX.
It’s an auth http script URL - it’s a script you are expected to
write to check passwords/return appropriate backends in your
system. Try looking at other configuration examples at the link
provided to see complete examples with some simple auth scripts
included.
On Sat, Oct 19, 2013 at 05:36:54AM -0400, hcmnttan wrote:
334 VXNlcm5hbWU6
subject: Test mail
test
.
550 5.7.1 Client does not have permissions to send as this sender
I could do a test telnet from nginx to backend SMTP server. Could you help
??
Below is my config file
It’s an error from your backend server. Please note that nginx
doesn’t try to authenticate against SMTP backends. Instead, it
uses xclient to pass username to a backend, but in your config
it’s switched off.
Thanks,
It works for me now.
The error “550 5.7.1 Client does not have permissions to send as this
sender” is because our SMTP back-end did not accept SMTP relay from
NGINX.
Configure SMTP backend allow NGINX relay fix my error.
I used xclient-> on, when I try to auth login, SMTP backend return error
with code “500 5.3.3 Unrecognized command” like my SMTP does not support
xclient ( I guess)
I could config NGINX work for POP3,
But in SMTP, I just could do auth login only, when send a test email, an
error message appear ( using telnet )
telnet 192.168.1.15 25
220 mailproxy ESMTP ready
auth login
334 VXNlcm5hbWU6
xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
334 UGFzc3dvcmQ6
xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
235 2.0.0 OK
mail from: [email protected]
250 2.1.0 Sender OK
rcpt to: [email protected]
250 2.1.5 Recipient OK
data
354 Start mail input; end with .
subject: Test mail
test
.
550 5.7.1 Client does not have permissions to send as this sender
I could do a test telnet from nginx to backend SMTP server. Could you
help
??
Below is my config file
nginx.conf
user nobody;
worker_processes 1;
error_log logs/error.log info;
pid run/nginx.pid;