SOLVED Stop all email for an account

chetanmadaan

Active Member
Jun 18, 2010
39
6
58
Hi,

I am having issues with a website I am hosting and it's getting infected with malware on a daily basis. I am trying to see if I can stop all outgoing email from the account. For instance, in WHM I am able to limit the number of emails per hour and rest of it gets queued. Is there a way to just stop it so that the account is not able to send any emails whatsoever and not queue them as well?

Thank You, I am fine if Mod's want to move this to security category or something?
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,909
2,227
463

chetanmadaan

Active Member
Jun 18, 2010
39
6
58
Got it... just to be clear... this isn't available through WHM and I can login to SSH and run the following command that this will do it. right?

Code:
whmapi1 suspend_outgoing_email user=example
and to un-suspend it would just be unsuspend_outgoing_email right?