Module ngx_mail_core_module | english русский 简体中文 עברית 日本語 türkçe news about download security advisories documentation pgp keys faq links books support donation trac wiki nginx.com | ||||||||||||||||||||||||||||||||||||
This translation may be out of date. Check the English version for recent changes.
This module is not built by default, it should be
enabled with
the Example configuration
worker_processes 1; error_log /var/log/nginx/error.log info; mail { server_name mail.example.com; auth_http localhost:9000/cgi-bin/nginxauth.cgi; imap_capabilities IMAP4rev1 UIDPLUS IDLE LITERAL+ QUOTA; pop3_auth plain apop cram-md5; pop3_capabilities LAST TOP USER PIPELINING UIDL; smtp_auth login plain cram-md5; smtp_capabilities "SIZE 10485760" ENHANCEDSTATUSCODES 8BITMIME DSN; xclient off; server { listen 25; protocol smtp; } server { listen 110; protocol pop3; proxy_pass_error_message on; } server { listen 143; protocol imap; } server { listen 587; protocol smtp; } }
Directives
Sets an listen 127.0.0.1:110; listen *:110; listen 110; # то же, что и *:110 listen localhost:110; IPv6 addresses (0.7.58) are specified in square brackets: listen [::1]:110; listen [::]:110;
UNIX-domain sockets (1.3.5) are specified with the “ listen unix:/var/run/nginx.sock;
The optional
Different virtual servers must listen on different
Sets the protocol of a proxied server. Supported protocols are IMAP, POP3 and SMTP. If the directive is not set, the protocol can be detected automatically basing on the well-known port specified in the listen directive:
Unnecessary protocols can be disabled using the
configuration
parameters
Sets a configuration for the virtual server.
Sets a name of the virtual server, used:
Controls if the “TCP keepalive” mode should be enabled on the client’s
connection (
Sets the timeout which is used before proxying to the backend started. |