Re: Nginx mail proxy and TLS connection to the real mail server

2023-02-22 Thread Sergey A. Osokin
On Thu, Feb 23, 2023 at 12:03:15AM +0200, Christos Chatzaras wrote: > > > Short answer is no. The proxy_ssl_* family directives are available > > for ngx_http_proxy and ngx_stream_proxy modules only. > > Thank you for the reply. Finally I did it by combining the Nginx >

Re: Nginx mail proxy and TLS connection to the real mail server

2023-02-22 Thread Christos Chatzaras
> Short answer is no. The proxy_ssl_* family directives are available > for ngx_http_proxy and ngx_stream_proxy modules only. > > -- > Sergey A. Osokin Thank you for the reply. Finally I did it by combining the Nginx mail proxy with mu

Re: Nginx mail proxy and TLS connection to the real mail server

2023-02-22 Thread Sergey A. Osokin
Hi Christos, On Wed, Feb 22, 2023 at 10:04:34PM +0200, Christos Chatzaras wrote: > > I setup a Nginx mail proxy and I would like mail clients to > connect to it without TLS and then the Nginx proxy to connect > to the real mail server using TLS. > > Is this possi

Nginx mail proxy and TLS connection to the real mail server

2023-02-22 Thread Christos Chatzaras
Hello, I setup a Nginx mail proxy and I would like mail clients to connect to it without TLS and then the Nginx proxy to connect to the real mail server using TLS. Is this possible? Kind regards, Christos Chatzaras___ nginx mailing list nginx

Support for OAUTHBEARER and XOAUTH2 in nginx mail proxy module

2022-03-08 Thread Robert Mueller
Hi I've been working on adding support for the OAUTHBEARER (RFC7628) and also the legacy XOAUTH2 (pre-RFC version still usable at google, microsoft and others and still the most commonly supported protocol in client libraries unfortunately) to the nginx mail proxy module. Mostly this has been

Re: Nginx mail proxy - ensure sender match authenticated user

2021-05-21 Thread Maxim Dounin
Hello! On Thu, May 20, 2021 at 10:13:01PM -0400, mbrother wrote: > Thank you for your answer. As you know, nginx does not send Auth command to > backend server, so there's no way for the backend to know if the sender > matches the authenticated account. I tried proxy_smtp_auth config but nginx >

Re: Nginx mail proxy - ensure sender match authenticated user

2021-05-20 Thread mbrother
Hello Maxim, Thank you for your answer. As you know, nginx does not send Auth command to backend server, so there's no way for the backend to know if the sender matches the authenticated account. I tried proxy_smtp_auth config but nginx send mail COMMAND to my server but it can not understand :(

Re: Nginx mail proxy - ensure sender match authenticated user

2021-05-20 Thread Maxim Dounin
Hello! On Thu, May 20, 2021 at 03:25:48AM -0400, mbrother wrote: > I am a fan of nginx and I really like nginx mail proxy module. I'm having a > problem between the authenticated account and the sender when using this > module. For better understanding, please see my test below: >

Nginx mail proxy - ensure sender match authenticated user

2021-05-20 Thread mbrother
Hello, I am a fan of nginx and I really like nginx mail proxy module. I'm having a problem between the authenticated account and the sender when using this module. For better understanding, please see my test below: root@nginx:~# telnet xx.xx.xx.xx 25 Trying xx.xx.xx.xx ... Connected

Re: Nginx mail proxy LDAP iRedMail

2018-08-01 Thread Maxim Dounin
Hello! On Wed, Aug 01, 2018 at 04:50:27AM -0400, shiver25 wrote: > Hi there, > > I try configure a little mail infrastructure but i have problem with this. > So i have exacly three servers. One is MX (frontend) there is nginx with > configuration: > > user nginx; > worker_processes 2; >

Nginx mail proxy LDAP iRedMail

2018-08-01 Thread shiver25
Hi there, I try configure a little mail infrastructure but i have problem with this. So i have exacly three servers. One is MX (frontend) there is nginx with configuration: user nginx; worker_processes 2; error_log /var/log/nginx/error.log info; pid/var/run/nginx.pid; load_module

Re: Nginx mail proxy

2018-03-05 Thread peanky
Thx, Maxim! Closed. Posted at Nginx Forum: https://forum.nginx.org/read.php?2,257510,278936#msg-278936 ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: Nginx mail proxy

2018-03-02 Thread Maxim Dounin
Hello! On Fri, Mar 02, 2018 at 09:54:31AM -0500, peanky wrote: > > Bacause nginx smtp proxy is designed to protect / balance your own > > smtp backends. If you want to proxy to external smtp servers, > > consider using other solutions. > > Thank you for answer! > 1. what is the diff between

Re: Nginx mail proxy

2018-03-02 Thread peanky
> Bacause nginx smtp proxy is designed to protect / balance your own > smtp backends. If you want to proxy to external smtp servers, > consider using other solutions. Thank you for answer! 1. what is the diff between "my smtp" and "3rd party smtp" from technical point of view? 2. which other

Re: Nginx mail proxy

2018-03-01 Thread Maxim Dounin
Hello! On Thu, Mar 01, 2018 at 05:55:10AM -0500, peanky wrote: > Why using nginx with not my smtp is wrong way? > PS: I see the date ot topic, but this time I try to solve the same problem. Bacause nginx smtp proxy is designed to protect / balance your own smtp backends. If you want to proxy

Re: Nginx mail proxy

2018-03-01 Thread peanky
Why using nginx with not my smtp is wrong way? PS: I see the date ot topic, but this time I try to solve the same problem. Posted at Nginx Forum: https://forum.nginx.org/read.php?2,257510,278855#msg-278855 ___ nginx mailing list nginx@nginx.org

Re: Optimizing nginx mail proxy

2018-02-21 Thread Azusa Taroura
ke full advantage of nginx? > > It is not clear what do you mean by "request", as there are no > requests in SMTP, and what do you mean by "performance result". > > In general, there is no need to optimize anything in nginx mail > proxy except very basic thi

Re: Optimizing nginx mail proxy

2018-02-21 Thread Azusa Taroura
Thank you for your reply! I would like to authenticate each connection. If I use Postfix for mail proxy, it authenticates each e-mail not for each connection. alexsamad Wrote: --- > Silly question why not use postfix for this ? > > > On 20

Re: Optimizing nginx mail proxy

2018-02-20 Thread Maxim Dounin
age of nginx? It is not clear what do you mean by "request", as there are no requests in SMTP, and what do you mean by "performance result". In general, there is no need to optimize anything in nginx mail proxy except very basic things like worker_connections and ssl_ses

Re: Optimizing nginx mail proxy

2018-02-20 Thread Alex Samad
Silly question why not use postfix for this ? On 20 February 2018 at 18:56, Azusa Taroura wrote: > Hi everyone, > > I’m trying to optimize mail-proxy. > My performance test is 1 client sends many request to 1 nginx server. > > > This is my current settings: > >

Optimizing nginx mail proxy

2018-02-19 Thread Azusa Taroura
Hi everyone, I’m trying to optimize mail-proxy. My performance test is 1 client sends many request to 1 nginx server. This is my current settings: worker_processes auto; worker_rlimit_nofile 10; #error_log /var/log/nginx/error.log debug; #error_log /var/log/nginx/error.log warn;

Re: Nginx mail proxy: 12: Cannot allocate memory

2017-02-21 Thread Dmitriy M.
> 20 февраля 2017 г., 11:55 пользователь Sergey Kandaurov > написал: >> >> Netgraph используете? > > С полезной ныне целью - уже нет, но модули всё еще подгружены и ноды > существуют. > Думаю, при следующем ребуте их уберём, они всё равно бесполезны > сейчас. Сообщу позже

Re: Nginx mail proxy: 12: Cannot allocate memory

2017-02-20 Thread Dmitriy M.
20 февраля 2017 г., 11:55 пользователь Sergey Kandaurov написал: > >> On 17 Feb 2017, at 23:13, Dmitriy M. wrote: >> >> Добрый день, >> >> в процессе работы nginx в качестве mail-прокси, как IMAP + IMAPs так и >> POP3 + POP3s, довольно часто (десятки в час

Re: Nginx mail proxy: 12: Cannot allocate memory

2017-02-20 Thread Sergey Kandaurov
> On 17 Feb 2017, at 23:13, Dmitriy M. wrote: > > Добрый день, > > в процессе работы nginx в качестве mail-прокси, как IMAP + IMAPs так и > POP3 + POP3s, довольно часто (десятки в час при сотнях запросах/сек) > наблюдаются сообщения вида: > > 2017/02/17 18:53:04 [alert]

Re: Nginx mail proxy: 12: Cannot allocate memory

2017-02-18 Thread Dmitry Ivanov
Здравствуйте, Dmitriy. Вы писали 18 февраля 2017 г., 23:58:47: > Следующим шагом будет обновление FreeBSD на 11-STABLE. Вышеописанные STABLE точно не нужен. И, кстати, вы не сможете с 10.1 на 11 перейти. Надо через 10.3 -- С уважением, Dmitry nginx...@sadok.spb.ru

Re: Nginx mail proxy: 12: Cannot allocate memory

2017-02-18 Thread Илья Шипицин
19 февраля 2017 г., 1:58 пользователь Dmitriy M. написал: > Добрый день, > см. в цитировании > > 18 февраля 2017 г., 10:28 пользователь Dmitry Ivanov > написал: > > Здравствуйте, Maksim. > > > > Вы писали 18 февраля 2017 г., 10:16:45: > > > >> EoL -

Re: Nginx mail proxy: 12: Cannot allocate memory

2017-02-18 Thread Dmitriy M.
Добрый день, см. в цитировании 18 февраля 2017 г., 10:28 пользователь Dmitry Ivanov написал: > Здравствуйте, Maksim. > > Вы писали 18 февраля 2017 г., 10:16:45: > >> EoL - 30 Апреля 2018. Так себе последние дни... > > --with-openssl=/root/nginx/libressl-2.4.5 > > может в

Re: Nginx mail proxy: 12: Cannot allocate memory

2017-02-18 Thread Dmitry Ivanov
Здравствуйте, Maksim. Вы писали 18 февраля 2017 г., 10:16:45: > EoL - 30 Апреля 2018. Так себе последние дни... --with-openssl=/root/nginx/libressl-2.4.5 может в этом дело? nginx с liberssl вообще работает нормально? зачем на FreeBSD что-то из исходников собирать, когда есть порты и в крайнем

Re: Nginx mail proxy: 12: Cannot allocate memory

2017-02-17 Thread Maksim Kulik
EoL - 30 Апреля 2018. Так себе последние дни... > Хм. На Фри из исходников.. ну, ладно. 10.3 уже доживает последние дни > ___ nginx-ru mailing list nginx-ru@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx-ru

Re: Nginx mail proxy: 12: Cannot allocate memory

2017-02-17 Thread Dmitry Ivanov
Здравствуйте, Dmitriy. Вы писали 17 февраля 2017 г., 23:13:23: > Наблюдается на FreeBSD 10, сборка из исходников: Хм. На Фри из исходников.. ну, ладно. 10.3 уже доживает последние дни -- С уважением, Dmitry nginx...@sadok.spb.ru

Re: Real IP in header for SMTP Nginx Mail Proxy

2017-01-20 Thread coolmike
Hi Thanks a lot for your answer. This sounds great, but when I enable it, I just get the following at my exim mailserver log: 2017-01-20 13:42:00 SMTP connection from [46.xx.xx.xx]:54087 (TCP/IP connection count = 1) 2017-01-20 13:42:00 SMTP connection from (mailproxy..com)

Re: Real IP in header for SMTP Nginx Mail Proxy

2017-01-20 Thread Maxim Dounin
Hello! On Fri, Jan 20, 2017 at 08:09:35AM +0100, Michael Brunner wrote: > > Hi > > I used the instruction below to build a mail proxy server with nginx: > > https://www.nginx.com/resources/admin-guide/mail-proxy/ > > I configured it for IMAP, POP3 and SMTP. > > It's working quite well but

Real IP in header for SMTP Nginx Mail Proxy

2017-01-19 Thread Michael Brunner
Hi I used the instruction below to build a mail proxy server with nginx: https://www.nginx.com/resources/admin-guide/mail-proxy/ I configured it for IMAP, POP3 and SMTP. It's working quite well but I don't see the real IP of the sender in the mail header. When a user is sending a mail via

Re: Nginx mail proxy

2015-03-22 Thread Maxim Dounin
Hello! On Sun, Mar 22, 2015 at 12:17:07AM -0400, imwack wrote: The SMTP backend is not mine, I use gmail or something else, what should i do? Just : xclienton; ? If the backend isn't your, then nginx mail proxy is a wrong thing to use. -- Maxim Dounin http://nginx.org

Re: Nginx mail proxy

2015-03-21 Thread imwack
The SMTP backend is not mine, I use gmail or something else, what should i do? Just : xclienton; ? Posted at Nginx Forum: http://forum.nginx.org/read.php?2,257510,257534#msg-257534 ___ nginx mailing list nginx@nginx.org

Nginx mail proxy

2015-03-20 Thread imwack
I want to use nginx as a mail proxy.I am new to nginx and need some help with the configuration, I got some problems. I want to use Foxmail ,use ngx proxy , this is my configuration. mail{ #server_namemailProxy; auth_http localhost:80/php/auth.php;

Re: nginx mail proxy - dovecot ssl backend

2014-09-05 Thread useopenid
Thanks! I setup stunnel in the interim, but this will be more efficient. Posted at Nginx Forum: http://forum.nginx.org/read.php?2,219069,253106#msg-253106 ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: nginx mail proxy - dovecot ssl backend

2014-09-04 Thread dukzcry
Yes, but got moved. Here's the diff: https://github.com/dukzcry/nginx/commit/f0af0f19ccc5e173fa43974cd05ef0b52692.diff and here's the patched tree: https://github.com/dukzcry/nginx Posted at Nginx Forum: http://forum.nginx.org/read.php?2,219069,253083#msg-253083

Re: nginx mail proxy - dovecot ssl backend

2014-02-24 Thread dukzcry
Now, here is the minimal patch: https://raw.github.com/druga/aeriebsd-tree/master/usr.sbin/nginx/patch-nginx_mail_proxy_ssl_backends.diff I do provide neither hostnames nor starttls support in it, because the code for their support is too much invasive :-( P.S.: The patch isn't good enough to be

Re: nginx mail proxy - dovecot ssl backend

2014-02-15 Thread NetCompany
any chance this patch / change will be added to the default release? We run nginx-full 1.4.4 from Debian Wheezy Backports and the 'issue' described above still seems to apply (no hostname / SSL support for backend server). Posted at Nginx Forum:

Re: nginx mail proxy - dovecot ssl backend

2014-02-15 Thread dukzcry
Hello. I plan to beat all the ugliness and produce a clean patch very soon. I'll let you know. Posted at Nginx Forum: http://forum.nginx.org/read.php?2,219069,247608#msg-247608 ___ nginx mailing list nginx@nginx.org

Re: nginx mail proxy - dovecot ssl backend

2014-02-15 Thread dukzcry
P.S.: I think then it may be examined for inclusion into nginx, but not now in it's current form :-) Posted at Nginx Forum: http://forum.nginx.org/read.php?2,219069,247609#msg-247609 ___ nginx mailing list nginx@nginx.org