Control Web Panel

WebPanel => E-Mail => Topic started by: tiagocaus on February 08, 2020, 03:39:56 PM

Title: CWP Delete deleted emails, automatically
Post by: tiagocaus 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 {} \;
Title: Re: CWP Delete deleted emails, automatically
Post by: Sandeep on February 08, 2020, 06:35:29 PM
Hello we didn't delete any user file so delete commands are not included.