CWP Delete deleted emails, automatically

Started by tiagocaus, February 08, 2020, 03:39:56 PM

Previous topic - Next topic

tiagocaus

We know that a big problem with full disk space is because the person deletes the emails, BUT DOES NOT CLEAN THE EXCLUDED BOX.

Is there any way to create a CRON Job where it deletes all deleted emails?

I just found this code below. But he deletes it from the inbox, and he has to manually add the domains.

Is there a way to automate this when creating the hosting?


15 2 * * * /bin/find /home/account/mail/domain.com/user/new ! -mtime -30 -type f -exec rm {} \;

Sandeep

Hello we didn't delete any user file so delete commands are not included.