Plesk Email Security remove outdated SPAM from spam folder
By default, Plesk spamtrain removes spam messages older than 30 days from spam folders. When Plesk Email Securty installed, it is not removing outdated spam data from users' mailboxes.
6
votes
Plesk Tech Support
shared this idea
Thank you for your input. We will consider this functionality in upcoming releases if it is popular. Everyone, please continue voting for this feature if you consider it important.
—
IG
-
Pagemakers commented
This is needed
-
ryan commented
Yes, we also request this feature. At the moment we are running a daily CRON script.
If it's useful to anyone else here is the command:
for i in $(/usr/sbin/plesk bin mail -l | tr '\t' ' ' | cut -d' ' -f 3-); do doveadm expunge -u "$i" mailbox INBOX.Spam before 30d; done