Hello NethServer community,
My question: it’s possible for the users’ baskets can be emptied automatically from Nethesis?
Example of the following services:
-
Email
-
WebTop
Thanks in advance to all for reading me.
Hello NethServer community,
My question: it’s possible for the users’ baskets can be emptied automatically from Nethesis?
Example of the following services:
WebTop
Thanks in advance to all for reading me.
Hi @Nix,
welcome to the community.
At the moment I have no webtop here, but for mail a solution could be to delete files with a script, for example every night with a cronjob.
The files you have to delete are at:
/var/lib/nethserver/vmail/username/Maildir/.Trash/cur
/var/lib/nethserver/vmail/username/Maildir/.Trash/new
/var/lib/nethserver/vmail/username/Maildir/.Trash/tmp
But only delete the content, not the folders please. Also I would recommend to do a backup before first try.
I know it’s quite late, but it can be useful for another one, dovecot has doveadm command that can be scheduled in crontab like this to delete messages moved to trash 30 days before for the user defined
doveadm expunge -u mailbox Trash savedbefore 30d
Edited:
doveadm expunge -u {username} mailbox Trash savedbefore 30d
pfffff…
lol i’m really dumb…
doveadm expunge -u {username} mailbox Trash savedbefore 30d