Mail directives
listen (mail-core)
Mail server listener; syntax excerpt, other parameters exist.
Formal Syntax & Structure
nginx syntaxnginx
listen address:port [ssl];Parameters & Attributes
| Name | Type | Description |
|---|---|---|
| address | address:port | port | unix:path | Select mail listener endpoint; use explicit high loopback port for lab. |
| ssl | literal ssl | Require implicit TLS; not the STARTTLS upgrade mode. |
| proxy_protocol | literal proxy_protocol | Require incoming PROXY metadata (since 1.19.8); restrict listener to trusted peers. |
| socket_options | backlog=number | rcvbuf=size | sndbuf=size | bind | ipv6only=on/off | so_keepalive=... | other supported options | Check version and platform availability; not interchangeable with HTTP or stream listener options. |
Working Example
Example Snippetnginx
listen 127.0.0.1:19381 ssl;