Description
This function checks whether plaintext authentication is enabled on the Dovecot mail server.
Examples
cPanel or Webmail Session URL
https://hostname.example.com:2083/cpsess##########/execute/Email/has_plaintext_authentication
LiveAPI PHP Class
$cpanel = new CPANEL();
$has_plaintext = $cpanel->uapi(
'Email', 'has_plaintext_authentication'
);
LiveAPI Perl Module
my $cpliveapi = Cpanel::LiveAPI->new();
my $fastmail_enabled = $cpliveapi->uapi(
'Email', 'has_plaintext_authentication',
);
cPanel Template Toolkit
[% execute('Email', 'has_plaintext_authentication' ) %]
Command Line
uapi --user=username Email has_plaintext_authentication
|
Output (JSON)
{
"messages":null,
"errors":null,
"status":1,
"metadata":{
},
"data":"1"
}
Parameters
This function does not accept parameters.
Returns
|
Return
|
Type
|
Description
|
Possible values
|
Example
|
|
data
|
Boolean
|
Whether plaintext authentication is enabled on the Dovecot mail server.
|
- 1 — Enabled.
- 0 — Disabled.
|
1
|