doveadm expunge not expunging anymore

Aki Tuomi aki.tuomi at open-xchange.com
Tue Mar 17 12:46:32 EET 2020


> On 17/03/2020 12:42 mabi <mabi at protonmail.ch> wrote:
> 
>  
> Hello,
> 
> I have migrated my mailbox server from Dovecot 2.1.7 (Debian 7) to Dovecot 2.3.4 (Debian 10) and have a crontab setup in root to daily delete all mails in the INBOX of a specific user which are older than 90 days like this:
> 
> /usr/bin/doveadm expunge -u username\@domain.com mailbox INBOX savedbefore 90d
> 
> Unfortunately this does not work anymore. I also tried to run the command manually as root which does not return any output or errors.
> 
> Any idea why this command does not work anymore?
> 
> Regards,
> Mabi

Try `doveadm -Dv expunge -u username\@domain.com mailbox INBOX savedbefore 90`

It might give insight what goes wrong.

Aki


More information about the dovecot mailing list