Mailcow-dockerized: [Question] Trash settings

Created on 5 May 2017  路  3Comments  路  Source: mailcow/mailcow-dockerized

Hi everyone!
Is there some setting regarding automatic deletion of trash folder contents after some time?

Most helpful comment

FYI: This can be done with doveadm like this...

# For all and older than 30 days
docker-compose exec dovecot-mailcow doveadm expunge -A mailbox Trash savedbefore 30d
# For a single user + older than 60 days
docker-compose exec dovecot-mailcow doveadm expunge -u [email protected] mailbox Trash savedbefore 30d

If you run these in a script, you may need to run docker-compose exec -T xyz.

All 3 comments

Currently there is no such setting inside of mailcow and as far as I know SOGo doesn't provide it as well. You could however try to do this with the dovecot plugin Expire: https://wiki2.dovecot.org/Plugins/Expire

Thanks for answering! Actually I really want the trash bin to not cleanse by itself. So this is the ideal setting for me! 馃樃

FYI: This can be done with doveadm like this...

# For all and older than 30 days
docker-compose exec dovecot-mailcow doveadm expunge -A mailbox Trash savedbefore 30d
# For a single user + older than 60 days
docker-compose exec dovecot-mailcow doveadm expunge -u [email protected] mailbox Trash savedbefore 30d

If you run these in a script, you may need to run docker-compose exec -T xyz.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

patrick7 picture patrick7  路  3Comments

CrAazZyMaN21 picture CrAazZyMaN21  路  3Comments

phipag picture phipag  路  3Comments

a3li picture a3li  路  3Comments

thannaske picture thannaske  路  3Comments