Mail directives

starttls (mail-ssl)

Controls protocol TLS upgrade; only requires upgrade before authentication.

Formal Syntax & Structure

nginx syntaxnginx
starttls on | off | only;

Parameters & Attributes

NameTypeDescription
modeon | off | onlyPermit protocol upgrade, disable it, or require it before authentication. Use only for mandatory upgrade, not implicit TLS.

Working Example

Example Snippetnginx
starttls only;
Nginx Reference