This function enables Greylisting on a cPanel account's selected domains.
uapi --output=jsonpretty \ --user=username \ cPGreyList \ enable_domains \ domains='example.com'
{- "apiversion": 3,
- "func": "enable_domains",
- "module": "cPGreyList",
- "result": {
- "data": [
- {
- "dependencies": [
- "example.com",
- "example1.com",
- "example2.com"
], - "domain": "example.com",
- "enabled": 0,
- "searchhint": "example, example1, example2",
- "type": "main"
}
], - "errors": null,
- "messages": null,
- "metadata": {
- "transformed": 1
}, - "status": 1,
- "warnings": null
}
}