How to auto delete Emails on cPanel

Today I will Let you know how to auto delete old Emails on cPanel :

You have to set the cron by using cpanel >> cronjob and add the following command to run in cron.

/usr/bin/archivemail –quiet –delete –days 20 /home/{USER}/mail/inbox

By using above command you can delete the 20 days old emails . Make sure you replace {USER}with your actual cPanel Hosting account username.

That’s all to do, You can also check how to backup your emails on cPanel. Please Give your opinion below if you experience any issues or to discuss your ideas and experiences.

Leave a Reply

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