Expunge Spam with Dovecot

image_print

Expunge spam mails older then 10 days for all accounts in domain domain.xx

/usr/bin/doveadm -Dv expunge -u *@domain.xx mailbox Junk savedbefore 10d