cPanel WHM icon

cPanel WHM

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

Actions262

Mail → Update Greylisting new mail provider handling

AI-generated

Summary

Update cPanel's Greylisting configuration to control automatic trust settings for new common mail providers and for new IP addresses added to specific mail providers in WHM.

Inputs

  • Autotrust New Common Mail Providers — Set whether Greylisting automatically trusts new mail providers added by cPanel to the common mail providers list. Choose 1 to enable automatic trust, or 0 to disable it.
  • PROVIDERKEY — Set whether Greylisting automatically trusts new IP addresses added by cPanel to a specific mail provider identified by PROVIDERKEY. Choose 1 to enable automatic trust, or 0 to disable it.

Output shape

a JSON object representing the updated Greylisting new mail provider handling configuration as returned by the WHM API

The operation returns the WHM API response data confirming the update or indicating an error. Only the specified optional parameters need be included; unspecified fields are not modified.

Examples

Example 1: Enable automatic trust of new common mail providers but disable automatic trust of new IP addresses for a specific provider

Set 'Autotrust New Common Mail Providers' to 1 and 'PROVIDERKEY' to 0.

Links

Discussion