<div dir="ltr">Silly question why not use postfix for this ?<div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On 20 February 2018 at 18:56, Azusa Taroura <span dir="ltr"><<a href="mailto:nginx-forum@forum.nginx.org" target="_blank">nginx-forum@forum.nginx.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi everyone,<br>
<br>
I’m trying to optimize mail-proxy.<br>
My performance test is 1 client sends many request to 1 nginx server.<br>
<br>
<br>
This is my current settings:<br>
<br>
worker_processes auto;<br>
worker_rlimit_nofile  100000;<br>
<br>
#error_log  /var/log/nginx/error.log debug;<br>
#error_log  /var/log/nginx/error.log warn;<br>
error_log /var/log/nginx/error.log crit;<br>
events {<br>
  worker_connections 1024;<br>
  #worker_connections 4000;<br>
  #multi_accept on;<br>
  #use epoll;<br>
}<br>
<br>
mail {<br>
  auth_http localhost:80/auth/smtp;<br>
  proxy_pass_error_message on;<br>
  proxy on;<br>
  smtp_auth login plain;<br>
  xclient   on;<br>
  server {<br>
      listen    25;<br>
      protocol  smtp;<br>
  }<br>
  server {<br>
      listen    465;<br>
      protocol  smtp;<br>
      ssl       on;<br>
      ssl_certificate      /etc/nginx/ssl/server.crt;<br>
      ssl_certificate_key  /etc/nginx/ssl/server.key;<br>
<br>
      ssl_session_cache shared:SSL:20m;<br>
      ssl_session_timeout 180m;<br>
<br>
      #ssl_protocols TLSv1 TLSv1.1 TLSv1.2;<br>
      #ssl_prefer_server_ciphers on;<br>
      #ssl_ciphers<br>
ECDH+AESGCM:ECDH+AES256:ECDH+<wbr>AES128:DHE+AES128:!ADH:!AECDH:<wbr>!MD5;<br>
      #ssl_dhparam /etc/nginx/cert/dhparam.pem;<br>
      #ssl_stapling on;<br>
      #ssl_stapling_verify on;<br>
      #ssl_trusted_certificate /etc/nginx/cert/trustchain.<wbr>crt;<br>
      #resolver 8.8.8.8 8.8.4.4;<br>
  }<br>
}<br>
<br>
<br>
Question>><br>
Low cpu usage, but the performance result is not good.<br>
Do yoy know how to take full advantage of nginx?<br>
<br>
Thank you for your time.<br>
Azusa Taroura<br>
<br>
Posted at Nginx Forum: <a href="https://forum.nginx.org/read.php?2,278656,278656#msg-278656" rel="noreferrer" target="_blank">https://forum.nginx.org/read.<wbr>php?2,278656,278656#msg-278656</a><br>
<br>
______________________________<wbr>_________________<br>
nginx mailing list<br>
<a href="mailto:nginx@nginx.org">nginx@nginx.org</a><br>
<a href="http://mailman.nginx.org/mailman/listinfo/nginx" rel="noreferrer" target="_blank">http://mailman.nginx.org/<wbr>mailman/listinfo/nginx</a></blockquote></div><br></div>