Get your server issues fixed by our experts for a price starting at just 25 USD/Hour. Click here to register and open a ticket with us now!

Author Topic: Auto delete old emails on CPanel  (Read 2480 times)

0 Members and 1 Guest are viewing this topic.

Haripriya H

  • Guest
Auto delete old emails on CPanel
« on: November 17, 2013, 10:49:19 pm »
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.