The mail server section, or mail configuration context, is available only if you've built NGINX with the mail module (
--with-mail). This section controls all aspects of working with the mail module.
The mail module allows for configuration directives that affect all aspects of proxying mail connections, as well as for specifying them per server. The server context also accepts the
server_name directives that we saw under the
http server section.
NGINX can proxy the IMAP, POP3, and SMTP protocols. The following table lists the directives that are available to this module:
Specifies the server used for authenticating the POP3/IMAP user. The functionality ...