cPanel WHM icon

cPanel WHM

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

Actions262

Mail → Add block on emails from specific domains

AI-generated

Summary

Block incoming emails from a specified domain on the WHM server by adding the domain to the mail blocklist.

Inputs

  • Domain (required) — The fully qualified domain name (FQDN) to block incoming emails from. It must contain at least one label, a dot (.), and a top-level domain (TLD).

Output shape

A JSON object indicating the result of the block operation, including an 'updated' field that is 0 if the domain was already blocked.

The operation returns 'updated' as 0 if the domain was already blocked on the server. No additional fields or pagination are involved.

Links

Discussion