Author Topic: CWP Delete deleted emails, automatically  (Read 3011 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
CWP Delete deleted emails, automatically
« on: February 08, 2020, 03:39:56 PM »
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?


Code: [Select]
15 2 * * * /bin/find /home/account/mail/domain.com/user/new ! -mtime -30 -type f -exec rm {} \;
« Last Edit: February 08, 2020, 03:49:49 PM by tiagocaus »

Offline
*****
Re: CWP Delete deleted emails, automatically
« Reply #1 on: February 08, 2020, 06:35:29 PM »
Hello we didn't delete any user file so delete commands are not included.