Hi everyone, I want to exclude 1 cPanel account from sending emails, I mean if anyone sending spam emails etc can we disable email sending for that cPanel account/username.
Actually I want to disable email sending from 1 account because I'm using email service and he sending 2K+ daily emails thats why I want to disable email sending on his account.
As this is merged with other feature request (https://features.cpanel.net/topic/disable-email-accounts) I am starting new feature request. Please impleme
Yes as mentioned by @quietFinn, It is something easy to do via WHM API. Login to your server as root and execute the following.
whmapi1 suspend_outgoing_email user=example
The above will suspend the outgoing email facility if the mentioned user. You can also use "hold_outgoing_email" to hold the emails in the email queue instead of rejecting them.