Update Greylisting new mail provider handling

This function sets whether Greylisting trusts new entries to cPanel's common mail providers list.

SecurityBasicAuth
Request
query Parameters
autotrust_new_common_mail_providers
integer
Default: 1

Whether Greylisting automatically trusts new mail providers that cPanel adds to the common mail providers list.

  • 1 — Automatically trust new mail providers cPanel adds to the common mail providers list.
  • 0 — Do not automatically trust new mail providers cPanel adds to the common mail providers list.
Enum: 0 1
Example: autotrust_new_common_mail_providers=1
PROVIDERKEY
integer

Whether Greylisting automatically trusts new IP addresses that cPanel adds to this mail provider.

  • 1 — Automatically trust new IP addresses cPanel adds to this mail provider.
  • 0 — Do not automatically trust new IP addresses cPanel adds to this mail provider.

If you do not specify this parameter, the system will not change Greylisting settings for any existing provider.

Note:

The parameter's name is the provider's key name. Example key and value:

  • google=0
Enum: 0 1
Example: PROVIDERKEY=0
Responses
200

HTTP Request was successful.

Response Schema: application/json
object
object
get/cpgreylist_save_common_mail_providers_config
Request samples
whmapi1 --output=jsonpretty \
  cpgreylist_save_common_mail_providers_config
Response samples
application/json
{
  • "data": {
    • "autotrust_new_common_mail_providers": 1,
    • "common_mail_providers": {
      • "cpanel": {
        • "autoupdate": 1,
        • "display_name": "cPanel",
        • "is_trusted": 1
        },
      • "sectigo": {
        • "autoupdate": 1,
        • "display_name": "Comodo/Sectigo",
        • "is_trusted": 1
        }
      }
    },
  • "metadata": {
    • "command": "cpgreylist_load_common_mail_providers_config",
    • "reason": "OK",
    • "result": 1,
    • "version": 1
    }
}