Admin-Ahead Community

Linux => Control Panels => cPanel => Topic started by: sajugovind on April 05, 2014, 10:26:02 pm

Title: Auto delete Emails on cPanel
Post by: sajugovind on April 05, 2014, 10:26:02 pm
Recently I had a concern that CX need to delete  the 20 days old emails automatically. This is steps I have followed to do this.


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

Code: [Select]
/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.

Thank you for your time !!!!!!!!!!!!!1