NGINX SMTP Proxy

Hi,

i already googled, but unfortanly i wasnt able to find a example for
nginx smtp proxy configuration. i wanted to setup as a simple smtp proxy
in front of a sendmail daemon.

thanks!

Juergen

Hi,

You can check this one
http://wiki.nginx.org/MailCoreModule

and probably (albeit, only through a translation :slight_smile:
http://citrin.ru/nginx:ngx_mail_core_module

We’ll shortly be adding an updated version on http://nginx.org/en/docs/
too.

Also, do you need smtp proxy with or w/o authorization? What’s the
scenario of use?

Am 24.10.11 15:02, schrieb Andrew A.:

Also, do you need smtp proxy with or w/o authorization? What’s the scenario of
use?

http://mailman.nginx.org/mailman/listinfo/nginx

Hi Andrew,

thanks! the 2nd link looks good.

we just need to protect the real smtp server from the bad bad internet
:slight_smile: no smtp auth at all.

cheers,

juergen

On Monday 24 of October 2011 14:02:15 Juergen G. wrote:

Hi,

i already googled, but unfortanly i wasnt able to find a example for
nginx smtp proxy configuration. i wanted to setup as a simple smtp proxy
in front of a sendmail daemon.

This one works for me:

mail {

auth_http localhost:9090/cgi-bin/auth;
server {
listen [a:b:c::d]:25;

# this is SMTP proxy!
protocol smtp;
smtp_capabilities "PIPELINING" "SIZE 10240000" "VRFY" "ETRN" 

“ENHANCEDSTATUSCODES” “8BITMIME” “DSN”;

server_name maili2.prod.interseek.com;

proxy on;
proxy_timeout 30;
proxy_pass_error_message on;

# only if upstream supports XCLIENT
xclient on;

smtp_auth none;
so_keepalive on;

}
}

Brane

On Monday 24 of October 2011 16:16:19 Maxim D. wrote:

smtp_capabilities "PIPELINING" "SIZE 10240000" "VRFY" "ETRN"
"ENHANCEDSTATUSCODES" "8BITMIME" "DSN";

The “PIPELINING” here may be problematic, as out of the box nginx
doesn’t support SMTP pipelining.

Thanks alot for this clarification!

Brane

Hello!

On Mon, Oct 24, 2011 at 03:58:33PM +0200, Brane F. Gračnar wrote:

mail {

auth_http localhost:9090/cgi-bin/auth;
server {
listen [a:b:c::d]:25;

# this is SMTP proxy!
protocol smtp;
smtp_capabilities "PIPELINING" "SIZE 10240000" "VRFY" "ETRN" 

“ENHANCEDSTATUSCODES” “8BITMIME” “DSN”;

The “PIPELINING” here may be problematic, as out of the box nginx
doesn’t support SMTP pipelining.

Maxim D.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs