Description

This function checks whether plaintext authentication is enabled on the Dovecot® mail server.

Examples 




https://hostname.example.com:2083/cpsess##########/execute/Email/has_plaintext_authentication




$cpanel = new CPANEL(); // Connect to cPanel - only do this once.
 
// Check whether plaintext authentication is enabled.
$has_plaintext = $cpanel->uapi(
    'Email', 'has_plaintext_authentication'
);

 



my $cpliveapi = Cpanel::LiveAPI->new(); # Connect to cPanel - only do this once.
 
# Check whether plaintext authentication is enabled.
my $fastmail_enabled = $cpliveapi->uapi(
    'Email', 'has_plaintext_authentication',
);

 



<!-- Check whether plaintext authentication is enabled. -->
[% execute('Email', 'has_plaintext_authentication' ) %]

 



uapi --user=username Email has_plaintext_authentication



{  
   "messages":null,
   "errors":null,
   "status":1,
   "metadata":{  

   },
   "data":"1"
}



Parameters

This function does not accept parameters.

Returns

ReturnTypeDescriptionPossible valuesExample
dataBooleanWhether plaintext authentication is enabled on the Dovecot mail server.
  • 1 — Enabled.
  • 0 — Disabled.
1