How to clear all the emails for default cPanel email account.

The directories responsible for a default cPanel email account is “new” and “cur“. You can find it in /home/username/mail/cur and /home/username/mail/new. If you want to remove all the emails for the default email account follow the steps given below:

# cd /home/username/mail/cur
# rm -rf *
# /home/username/mail/new
# rm -rf *

Even though you have removed all the emails from cur and new folder, the email disk quota in cPanel won’t be changed. This is because the email disk quota is cached in the file “maildirsize“. Either remove the file “maildirsize” or just rename it.

That’s it!!
Done!!!

Post navigation

Arunlal A

Senior System Developer at Zeta. Linux lover. Traveller. Let's connect! Whether you're a seasoned DevOps pro or just starting your journey, I'm always eager to engage with like-minded individuals. Follow my blog for regular updates, connect on social media, and let's embark on this DevOps adventure together! Happy coding and deploying!

Leave a Reply

Your email address will not be published. Required fields are marked *