summaryrefslogtreecommitdiffhomepage
path: root/src/mail/ngx_mail.c (follow)
AgeCommit message (Collapse)AuthorFilesLines
2021-03-05Mail: parsing of the PROXY protocol from clients.Maxim Dounin1-0/+2
Activated with the "proxy_protocol" parameter of the "listen" directive. Obtained information is passed to the auth_http script in Proxy-Protocol-Addr, Proxy-Protocol-Port, Proxy-Protocol-Server-Addr, and Proxy-Protocol-Server-Port headers.
2019-03-15Multiple addresses in "listen".Roman Arutyunyan1-36/+6
Previously only one address was used by the listen directive handler even if host name resolved to multiple addresses. Now a separate listening socket is created for each address.
2017-04-03Mail: configurable socket buffer sizes.Vladimir Homutov1-0/+2
The "rcvbuf" and "sndbuf" parameters are now supported by the "listen" directive.
2016-10-03Modules compatibility: removed unneeded IPV6_V6ONLY checks.Maxim Dounin1-1/+1
The IPV6_V6ONLY macro is now checked only while parsing appropriate flag and when using the macro. The ipv6only field in listen structures is always initialized to 1, even if not supported on a given platform. This is expected to prevent a module compiled without IPV6_V6ONLY from accidentally creating dual sockets if loaded into main binary with proper IPV6_V6ONLY support.
2016-06-20Introduced ngx_inet_get_port() and ngx_inet_set_port() functions.Roman Arutyunyan1-25/+1
2016-05-23Renamed "u" to "sockaddr" in listen options types.Maxim Dounin1-10/+10
2016-02-04Dynamic modules: changed ngx_modules to cycle->modules.Maxim Dounin1-8/+8
2016-02-04Dynamic modules: moved module-related stuff to separate files.Maxim Dounin1-8/+1
2015-06-16Disabled duplicate http, mail, and stream blocks.Vladimir Homutov1-0/+4
Such configurations have very limited use, introduce various problems and are not officially supported.
2015-06-08Mail: listen backlog=.Ruslan Ermilov1-0/+2
2015-06-08Mail: embed ngx_mail_listen_t into ngx_mail_conf_addr_t.Ruslan Ermilov1-42/+27
2015-05-20Simplified ngx_http_init_listening().Maxim Dounin1-7/+1
There is no need to set "i" to 0, as it's expected to be 0 assuming the bindings are properly sorted, and we already rely on this when explicitly set hport->naddrs to 1. Remaining conditional code is replaced with identical "hport->naddrs = i + 1". Identical modifications are done in the mail and stream modules, in the ngx_mail_optimize_servers() and ngx_stream_optimize_servers() functions, respectively. No functional changes.
2015-04-29Removed the deprecated "imap" directive.Ruslan Ermilov1-13/+0
2015-02-20Mail: error_log support.Vladimir Homutov1-7/+9
2015-01-23Mail: fixed a comment.Ruslan Ermilov1-1/+1
2014-08-20Mail: fixed a comment.Valentin Bartenev1-2/+1
There's no loc_conf in the mail module.
2013-07-11Style.Maxim Dounin1-1/+1
2013-07-11Core: extended ngx_sock_ntop() with socklen parameter.Vladimir Homutov1-2/+4
On Linux, sockaddr length is required to process unix socket addresses properly due to unnamed sockets (which don't have sun_path set at all) and abstract namespace sockets.
2012-08-17Mail: fixed handling of AF_UNIX addresses in "listen".Ruslan Ermilov1-0/+6
This makes AF_UNIX addresses in mail officially supported.
2012-08-17Mail: fixed sorting of listen addresses (ticket #187).Ruslan Ermilov1-0/+5
For http module this problem was already fixed in r4756.
2012-01-18Copyright updated.Maxim Konovalov1-0/+1
2011-12-05Added the "so_keepalive=" parameter to the "listen" directive.Valentin Bartenev1-0/+13
The "so_keepalive" directive in mail module was deprecated. Thanks to Vsevolod Stakhov for initial work.
2009-05-18mail proxy listen IPv6 supportIgor Sysoev1-121/+237
2009-05-05ngx_create_listening()Igor Sysoev1-49/+7
2009-05-04delete ngx_listening_inet_stream_socket()Igor Sysoev1-3/+47
2009-05-04axe imap module artifactsIgor Sysoev1-25/+25
2009-04-30*) refactor error_log processing: listen socket log might inherit built-inIgor Sysoev1-3/+2
error_log with zero level, and r2447, r2466, r2467 were not enough *) remove bogus "stderr" level *) some functions and fields renames
2008-09-01*) listen sslIgor Sysoev1-0/+7
*) no default ssl_cetificate and ssl_cetificate_key
2008-08-21*) remove zero termination in ngx_inet_ntop() and ngx_sock_ntop()Igor Sysoev1-2/+2
*) use ngx_snprintf() in ngx_inet_ntop() and ngx_sock_ntop() as they are called just once per connection *) NGX_INET_ADDRSTRLEN
2008-06-17*) back out r2040Igor Sysoev1-2/+2
*) refactor ngx_palloc() *) introduce ngx_pnalloc() *) additional pool blocks have smaller header
2008-03-24use ngx_int_t in ngx_sort() callbackIgor Sysoev1-2/+2
2007-09-15ngx_mail_pop3_module, ngx_mail_imap_module, and ngx_mail_smtp_moduleIgor Sysoev1-2/+4
2007-08-09set default listen() backlog to 511 on all platforms except FreeBSDIgor Sysoev1-1/+1
2007-05-21use stable search where it is requiredIgor Sysoev1-5/+4
2007-03-19Many changes:Igor Sysoev1-0/+416
*) rename imap to mail, sort pop3/imap functions *) smtp auth support *) pop3 starttls only *) fix segfault if cram-md5 was used without apop