Optimizing nginx mail proxy

Alex Samad alex at samad.com.au
Tue Feb 20 08:56:06 UTC 2018


Silly question why not use postfix for this ?


On 20 February 2018 at 18:56, Azusa Taroura <nginx-forum at 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 at nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx/attachments/20180220/199ca2e1/attachment.html>


More information about the nginx mailing list