cPanel WHM icon

cPanel WHM

Full cPanel WHM API — all 622 operations across Accounts, DNS, Mail, SSL, Backups, Databases and more

Actions262

Mail → Add mail provider to Greylisting trusted hosts

AI-generated

Summary

Add a mail provider to the Greylisting trusted hosts list in WHM to whitelist their mail servers from greylisting checks.

Inputs

  • Provider (required) — The name of the mail provider to trust. You can retrieve valid provider names by calling the cpgreylist_load_common_mail_providers_config API function. To trust multiple providers, increment the parameter name (e.g., provider-0, provider-1).

Output shape

An object representing the WHM API response indicating success or failure of adding the specified mail provider to the trusted hosts list.

The operation requires the provider name as a query string parameter. No additional fields are supported. The response includes validation for WHM API error indicators.

Links

Discussion