SMTPS::activation_mode

Description

This command gets or sets the activation mode for SMTPS STARTTLS. Returns the current activation mode if no option is specified. Sets the SMTPS activation mode to:

  • none (SMTPS STARTTLS detection will not activate)
  • allow (SMTPS will optionally activate TLS if client or server support STARTTLS)
  • require (SMTPS will require that both client and server support STARTTLS).

Sets the activation mode to none (it will never activate), allow (if the SMTPS client sends STARTTLS, we will activate TLS), or require (all commands will be rejected until STARTTLS is received).

Syntax

SMTPS::activation_mode [<none | allow | require>]

Examples

when CLIENT_ACCEPTED {
    if { !([IP::addr [IP::client_addr] ne 10.0.0.0/8) } {
        SMTPS::activation_mode require
    }
}