This function checks whether Greylisting is enabled for the cPanel account.
uapi --output=jsonpretty \ --user=username \ cPGreyList \ has_greylisting_enabled
{- "apiversion": 3,
- "func": "has_greylisting_enabled",
- "module": "cPGreyList",
- "result": {
- "data": {
- "enabled": 0
}, - "errors": null,
- "messages": null,
- "metadata": { },
- "status": 1,
- "warnings": null
}
}