Cpanel Auto Delete Emails

I was looking for a way to delete old emails and seen the below online.

Im unsure how to have it delete individual email accounts emails.

eg if my email was would I replace {user} with {test} in a word, whats my mailbox {user name}



If you have a mailbox that is always going over-quota or filling up with mail like your default account or your spam box and you don't want to have to keep logging in and deleting the emails manually this howto will show you how you can have it automatically deleted.

  1. Login to your cpanel and click on the Cron jobs icon
  2. Next click on the Advanced (Unix Style) button to open the cron manager.
  3. Now let's say you want to have *ALL* the emails in your default email accounts inbox deleted that are older than 10 days and have it run at 6:45 AM each day.

    To do this enter the following information in the following fields:
    Minute: 45
    Hour: 06
    Day: *
    Month: *
    Weekday: *
    Command: /usr/bin/archivemail --quiet --delete --days 10 /home/{USER}/mail/inbox

    Make sure you replace {USER} with your actual cpanel username.
  4. Hit the Commit Changes button and wait until sometime after 6:45 AM (assuming you set it up to run at that time) and login to your default email account to see if your emails have been deleted
    If everything looks good your default inbox will now have any emails that are older than 10 days automatically deleted
    To login into your default email account you use your cpanel username and password