Add mail provider to Greylisting non-trusted hosts

This function marks the IP addresses for the specified mail provider as not trusted. Greylisting defers emails from non-trusted IP addresses.

SecurityBasicAuth
Request
query Parameters
provider
required
string

The mail provider.

Note:

To trust multiple mail providers, increment the parameter name. For example, provider-0, provider-1, provider-2.

Examples:
provider=provider-1=10 provider-2=33 provider-3=15
provider=1
Responses
200

HTTP Request was successful.

Response Schema: application/json
object
object
get/cpgreylist_untrust_entries_for_common_mail_provider
Request samples
whmapi1 --output=jsonpretty \
  cpgreylist_untrust_entries_for_common_mail_provider \
  provider='1'
Response samples
application/json
{
  • "data": {
    • "providers_failed": {
      • "provider_key1": {
        • "ips_untrusted": 21
        },
      • "provider_key2": {
        • "ips_untrusted": 21
        }
      },
    • "providers_untrusted": {
      • "provider_key1": "Unknown mail provider.",
      • "provider_key2": "Unknown mail provider."
      }
    },
  • "metadata": {
    • "command": "cpgreylist_untrust_entries_for_common_mail_provider",
    • "reason": "OK",
    • "result": 1,
    • "version": 1
    }
}