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 Emails on cPanel  (Read 3055 times)

0 Members and 1 Guest are viewing this topic.

sajugovind

  • Guest
Auto delete Emails on cPanel
« 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