Description

This function sets Exim's queue to suspend and force failure for email that a user sends to an external address.


If mail for a cPanel user's account is suspended, the system will reject their email before the mail server puts it in queue.

Examples 




https://hostname.example.com:2087/cpsess##########/json-api/suspend_outgoing_email?api.version=1&user=example




https://hostname.example.com:2087/cpsess##########/xml-api/suspend_outgoing_email?api.version=1&user=example




whmapi1 suspend_outgoing_email user=example



{
  "metadata": {
    "version": 1,
    "reason": "OK",
    "result": 1,
    "command": "suspend_outgoing_email"
  }
}




<result>
   <metadata>
        <version>1</version>
        <reason>OK</reason>
        <result>1</result>
        <command>suspend_outgoing_email</command>
    </metadata>
</result>



Parameters

ParameterTypeDescriptionPossible valuesExample
userstring

Required

The cPanel account.

A valid cPanel account.

You cannot suspend the root user's outgoing email with this function.


example

Returns

This function only returns metadata.