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.

Was this answer helpful? 0 Users Found This Useful (1 Votes)