Welcome! Log In Create A New Profile

Advanced

Re: Optimizing nginx mail proxy

February 21, 2018 03:56AM
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 February 2018 at 18:56, Azusa Taroura
> <nginx-forum@forum.nginx.org>
> 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:
> >
> > worker_processes auto;
> > worker_rlimit_nofile 100000;
> >
> > #error_log /var/log/nginx/error.log debug;
> > #error_log /var/log/nginx/error.log warn;
> > error_log /var/log/nginx/error.log crit;
> > events {
> > worker_connections 1024;
> > #worker_connections 4000;
> > #multi_accept on;
> > #use epoll;
> > }
> >
> > mail {
> > auth_http localhost:80/auth/smtp;
> > proxy_pass_error_message on;
> > proxy on;
> > smtp_auth login plain;
> > xclient on;
> > server {
> > listen 25;
> > protocol smtp;
> > }
> > server {
> > listen 465;
> > protocol smtp;
> > ssl on;
> > ssl_certificate /etc/nginx/ssl/server.crt;
> > ssl_certificate_key /etc/nginx/ssl/server.key;
> >
> > ssl_session_cache shared:SSL:20m;
> > ssl_session_timeout 180m;
> >
> > #ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
> > #ssl_prefer_server_ciphers on;
> > #ssl_ciphers
> > ECDH+AESGCM:ECDH+AES256:ECDH+AES128:DHE+AES128:!ADH:!AECDH:!MD5;
> > #ssl_dhparam /etc/nginx/cert/dhparam.pem;
> > #ssl_stapling on;
> > #ssl_stapling_verify on;
> > #ssl_trusted_certificate /etc/nginx/cert/trustchain.crt;
> > #resolver 8.8.8.8 8.8.4.4;
> > }
> > }
> >
> >
> > Question>>
> > Low cpu usage, but the performance result is not good.
> > Do yoy know how to take full advantage of nginx?
> >
> > Thank you for your time.
> > Azusa Taroura
> >
> > Posted at Nginx Forum: https://forum.nginx.org/read.
> > php?2,278656,278656#msg-278656
> >
> > _______________________________________________
> > nginx mailing list
> > nginx@nginx.org
> > http://mailman.nginx.org/mailman/listinfo/nginx
> _______________________________________________
> nginx mailing list
> nginx@nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Optimizing nginx mail proxy

Azusa Taroura February 20, 2018 02:56AM

Re: Optimizing nginx mail proxy

alexsamad February 20, 2018 03:58AM

Re: Optimizing nginx mail proxy

Azusa Taroura February 21, 2018 03:56AM

Re: Optimizing nginx mail proxy

Maxim Dounin February 20, 2018 08:04AM

Re: Optimizing nginx mail proxy

Azusa Taroura February 21, 2018 04:11AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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