I need a cron job to delete and archive old emails.
Category: Email
Have a question?
Ask the Community!

Question Asked by NorComp

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

Best Answer not yet chosen
Hello,

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.
  • Asked 2011-11-28 15:59
  • Hits: 10950
  • Expires in: Expired

Best Answer Chosen by InMotion Hosting Staff

Vote
0 Rate this answer as good
0
0 Rate this answer as bad
Hi NorComp,

Thanks for posting your question. I'm more than happy to assist you. We have an article on it that you may find useful. You'll need to install it first.

Archivemail to archive old emails

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.

Thanks!

Tim S
2011-11-28 16:12
Source(s):

No other Answers Submitted

Answer Question

Rating:
 
Please log in to rate this question.
Like this Question?

Comments

Currently no comments

You must log in before commenting.

Need more Help?

Search
Current Customers
Chat:Click to Chat Now
Call:888-321-HOST (4678)
E-mail:support@InMotionHosting.com
Ticket Submit a Support Ticket
Need more Email help?
Try browsing the standard Email category page in our Knowledge Base.
Not a Customer?
Get web hosting from a company that is here to help. Sign up today!

Follow InMotion Hosting!

 4236 Followers. Follow Us!