IMAP::activation_mode¶
Description¶
This command gets or sets the activation mode for IMAP STARTTLS. Returns the current activation mode if no option is specified. Sets the IMAP activation mode to:
- none (IMAP STARTTLS detection will not activate)
- allow (IMAP will optionally activate TLS if client or server support STARTTLS)
- require (IMAP will require that both client and server support STARTTLS).
Syntax¶
IMAP::activation_mode [<none | allow | require>]
Examples¶
when CLIENT_ACCEPTED {
if { ([IP::addr [IP::client_addr] equals 10.0.0.0/8]) } {
IMAP::activation_mode require
}
if { ([IP::addr [IP::client_addr] equals 10.0.0.0/8]) } {
set mode [IMAP::activation_mode]
}
}