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.

Authorizations:
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

Response Schema: application/json
object
object

Request samples

whmapi1 --output=jsonpretty \
  cpgreylist_untrust_entries_for_common_mail_provider \
  provider='1'

Response samples

Content type
application/json
{
  • "data": {
    • "providers_failed": {
      • "property1": {
        • "ips_untrusted": 21
        },
      • "property2": {
        • "ips_untrusted": 21
        }
      },
    • "providers_untrusted": {
      • "property1": "Unknown mail provider.",
      • "property2": "Unknown mail provider."
      }
    },
  • "metadata": {
    • "command": "cpgreylist_untrust_entries_for_common_mail_provider",
    • "reason": "OK",
    • "result": 1,
    • "version": 1
    }
}