Coder Social home page Coder Social logo

mrpk1906 / nginx Goto Github PK

View Code? Open in Web Editor NEW

This project forked from nginx/nginx

0.0 0.0 0.0 55.89 MB

An official read-only mirror of http://hg.nginx.org/nginx/ which is updated hourly. Pull requests on GitHub cannot be accepted and will be automatically closed. The proper way to submit changes to nginx is via the nginx development mailing list, see http://nginx.org/en/docs/contributing_changes.html

Home Page: http://nginx.org/

Perl 0.13% Makefile 0.08% C 96.46% C++ 0.38% XS 0.48% Vim Script 2.48%

nginx's Introduction

Documentation is available at http://nginx.org

This version implemented proxy_protocol to mail module

nginx version 1.18.0

Build dependencies

root@build-server:~# apt-get -q -y install --no-install-recommends build-essential git libgd3 libgd-dev libgeoip1 libgeoip-dev geoip-bin libpcre3 libpcre3-dev zlib1g zlib1g-dev openssl libssl-dev autotools-dev libxml2 libxml2-dev libxslt1.1 libxslt1-dev wget libsystemd-dev zlib1g-dev wget ca-certificates

Build

root@build-server:~# bash ./build

Example config

mail {
  server_name mail.server.com;
  auth_http 127.0.0.1:8080/mail/auth;
  proxy on;
  proxy_pass_error_message on;
  error_log /var/log/nginx/mail_proxy_error.log info;

  starttls on;
  smtp_capabilities PIPELINING ETRN ENHANCEDSTATUSCODES DSN 8BITMIME "SIZE 51200000";
  smtp_auth login plain;
  xclient off;

  pop3_auth plain;
  pop3_capabilities LAST TOP USER PIPELINING UIDL;

  imap_auth login plain;
  imap_capabilities IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE IDLE AUTH=PLAIN AUTH=LOGIN;

  ssl_certificate /etc/nginx/ssl/cert.crt;
  ssl_certificate_key /etc/nginx/ssl/cert.key;
  ssl_dhparam /etc/nginx/ssl-dhparams.pem;
  ssl_session_cache shared:mail_SSL:1m;
  ssl_session_timeout 1440m;

  ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
  ssl_prefer_server_ciphers on;

  ssl_ciphers "ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES128-SHA256:ECDHE-ECDSA-AES128-SHA:ECDHE-RSA-AES256-SHA384:ECDHE-RSA-AES128-SHA:ECDHE-ECDSA-AES256-SHA384:ECDHE-ECDSA-AES256-SHA:ECDHE-RSA-AES256-SHA:DHE-RSA-AES128-SHA256:DHE-RSA-AES128-SHA:DHE-RSA-AES256-SHA256:DHE-RSA-AES256-SHA:ECDHE-ECDSA-DES-CBC3-SHA:ECDHE-RSA-DES-CBC3-SHA:EDH-RSA-DES-CBC3-SHA:AES128-GCM-SHA256:AES256-GCM-SHA384:AES128-SHA256:AES256-SHA256:AES128-SHA:AES256-SHA:DES-CBC3-SHA:!DSS";

  server {
    listen           127.0.0.1:2525 proxy_protocol;

    protocol         smtp;
    auth_http_header User-Agent "Nginx SMTP proxy";
  }

  server {
    listen           127.0.0.1:2587 proxy_protocol;
    protocol         smtp;
    auth_http_header User-Agent "Nginx SMTP proxy";
  }

  server {
    listen           127.0.0.1:2143 proxy_protocol;
    protocol         imap;
    auth_http_header User-Agent "Nginx POP3/IMAP4 proxy";
  }

  server {
    listen           127.0.0.1:2110 proxy_protocol;
    protocol         pop3;
    auth_http_header User-Agent "Nginx POP3/IMAP4 proxy";
  }

}

nginx's People

Contributors

igorsysoev avatar mdounin avatar mdocguard avatar vbart avatar arut avatar pluknet avatar vlhomutov avatar piotrsikora avatar xeioex avatar defanator avatar cubicdaiya avatar fblr avatar iphucc avatar fdasilvayy avatar flygoast avatar agentzh avatar kou avatar chobits avatar othree avatar debayang avatar thresheek avatar orgads avatar ghedo avatar lukastribus avatar maage avatar nextsux avatar khaless avatar kelunik avatar ottok avatar lekensteyn avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.