I need to expunge emails that have been sitting in users Junk mail folders every X number of days. I see where I can setup a main.local for dovecot and use:
But I am not sure how to actually set the numbers of days. The other option is typically to do:
but its returning:
I am open to ideas. Note, I am not using SA on my cpanel servers.
expire5 = Junk expire6 = INBOX.Junk
/usr/bin/doveadm expunge -A mailbox Trash savedbefore 27d
doveadm(root): Error: User listing returned failure