InMotion Hosting Support Center

I need a cron job to delete and archive old emails.

Category: Email

2011-11-28 3:59 pm EST

Hits: 14,595

I am looking for the Cron Job command to run which will delete emails, from a specific inbox on our account, that is older then 10days. Below is a version i found but not sure if it will work with our VPS server account.

/usr/bin/archivemail --quiet --delete --days 10 /home/[Cpanel User Name]/mail/[Domain Name]/[Username]/inbox

Please help as i am not sure if this even works.

You must login before you can ask a follow up question.

You must login before you can submit an answer.

Best answer chosen by InMotion Hosting staff


Tim S
13,821 Points
2011-11-28 4:12 pm EST
Hi NorComp,

Thank you for taking the time to <a href='http://'>submit a question</a>! We have an article on it that you may find useful. You'll need to install it first.

<a href="">Archivemail to archive old emails</a>

Now, we haven't tested the cronjob you have posted, however once the script is installed you can test it out on your VPS.

If you need further assistance please feel free to contact us.


Tim S

You must login before you can post a comment about this answer.

Like this Question?

Support Center Login

Our Login page has moved. Please click the button below to be redirected to the login page.

Need more Help?


Ask the Community!

Get help with your questions from our community of like-minded hosting users and InMotion Hosting Staff.

Current Customers

Chat: Click to Chat Now E-mail:
Call: 888-321-HOST (4678) Ticket: Submit a Support Ticket

Not a Customer?

Get web hosting from a company that is here to help. Sign up today!