Cronjob to delete old emails

Is there a way to delete old emails using a cronjob?

Have you setup a cronjob to delete old emails (say older than 7 days) to keep your server from filling up? If so how did you do it?

You mean from the rainloop.

somehow, i am looking to delete all 7 days old emails regularly (from rainloop or otherwise)

Rainloop Webmail Client Plugin for Vesta Web Interface

Installation Instructions:

  1. Upload the ‘rainloop’ folder to the ‘plugins’ folder of your VWI installation.
  2. Edit the VWI settings and add “rainloop” to the plugins section.
  3. Create a Cron Job to autoupdate the domain settings and new domains