Filipe Silva
Basic Pleskian
Greatings everyone.
I'm in the need of a comand to remove emails older than 30 days from the server. (We are using dovecot/postfix)
I found this : "find /var/qmail/mailnames/domain/*/*/cur -type f -mtime +30 -exec rm {} \;" and it works, but the other IT guy says it is too risky, but I can't find a specific dovecot/postfix comand to delete old mails.
The other solution is to violate the users account and delete old emails in the webmail.
What do you recommend?
Thank you.
PS: I am resorting to this because some users are not accessible to properly configure the email client and it is harder to educate them to use webmail to delete older emails.
I'm in the need of a comand to remove emails older than 30 days from the server. (We are using dovecot/postfix)
I found this : "find /var/qmail/mailnames/domain/*/*/cur -type f -mtime +30 -exec rm {} \;" and it works, but the other IT guy says it is too risky, but I can't find a specific dovecot/postfix comand to delete old mails.
The other solution is to violate the users account and delete old emails in the webmail.
What do you recommend?
Thank you.
PS: I am resorting to this because some users are not accessible to properly configure the email client and it is harder to educate them to use webmail to delete older emails.