Completely disable email on single cPanel Account | Mahdi Hazaveh
A week ago one of our clients account been compromised and the attacker used the server to blast emails. as a system administrator my task was to prevent any outgoing email from the account before I start to investigate the attack and remove any kind of scripts from the hosting account. Studying cPanel files made me to come around following solution. To disable email for one account we can change the permission of /etc directory for that particular user, using our root power. simply use following commands: [crayon-5c6d5c07bfb38123649990/] You need to replace username with your user username. Once this is done the user will not be able to send anymore emails from local server. To undo this you should run the chattr once more: [crayon-5c6d5c07bfb41298279510/] That's it, Stay safe… out of spam!
Post to Tumblr