[Solved] Disable SPAM mails for one domain in cPanel/WHM

It creates lot’s of frustations when you see the SPAM mailers/accounts in your servers but sometimes you don’t want to suspend or remove them

 

You can run the below commands through SSH console

To suspend email service for a the cPanel user “aacenyor”

  1. whmapi1 suspend_outgoing_email user=aacenyor

For unsuspending the account, please run the below command:

  1. whmapi1 unsuspend_outgoing_email user=aacenyor