Something Different In Linux

Home » cpanel » auto delete old emails on CPanel

auto delete old emails on CPanel

Posted by Rishikesh Vispute Categories: cpanel

How to auto delete old emails on CPanel ?


You need 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 username.




2 Responses so far.

  1. Mahesh says:

    Thaks for sharing this. My inbox is flooding with lot of emails. Mostly automated emails as soon as the content is created. These emails should have been deleted. Your solution helped me. Thank you

Popular Posts

remove index.php fro

How to remove index.php from url in magento Ans : If you ...

PHP-Java bridge on p

  What is php-java bridge? The php-java bridge is the php ...

Set expiration for y

If you want to set the expiration to your site ...

Warning: Parameter 1

Error: Warning: Parameter 1 to modMainMenuHelper::buildXML() expected to be a ...

domain pointing to e

If you domain uses external MX record and it is ...