Introduction
Email restrictions allow you to restrict incoming and outgoing email features for email addresses. Being able to manage these quickly via the command line will allow you to set the restrictions that you need at a user level or email-account level.
Procedure
Hold and release outgoing email for a cPanel user:
-
whmapi1 hold_outgoing_email user=example
- Review the documentation for more details.
-
whmapi1 release_outgoing_email user=example
- Review the documentation for more details.
Hold and release outgoing email for an individual email account:
-
uapi --user=username Email hold_outgoing email=username%40example.com
- Review the documentation for more details.
-
uapi --user=username Email release_outgoing email=username%40example.com
- Review the documentation for more details.
Suspend and unsuspend outgoing email for a cPanel user:
-
whmapi1 suspend_outgoing_email user=example
- Review the documentation for more details.
-
whmapi1 unsuspend_outgoing_email user=example
- Review the documentation for more details.
Suspend and unsuspend outgoing email for an individual email account:
-
uapi --user=username Email suspend_outgoing email=user%40example.com
- Review the documentation for more details.
-
uapi --user=username Email unsuspend_outgoing email=username%40example.com
- Review the documentation for more details.
Suspend and unsuspend incoming email for an individual email account:
-
uapi --user=username Email suspend_incoming email=user%40example.com
- Review the documentation for more details.
-
uapi --user=username Email unsuspend_incoming email=user%40example.com
- Review the documentation for more details.
Suspend and unsuspend login for an individual email account:
-
uapi --user=username Email suspend_login email=user%40example.com
- Review the documentation for more details.
-
uapi --user=username Email unsuspend_login email=user%40example.com
- Review the documentation for more details.