diff --git a/docs/u_e-dovecot-expunge.md b/docs/u_e-dovecot-expunge.md index 52d0062cd..a3ab62f7e 100644 --- a/docs/u_e-dovecot-expunge.md +++ b/docs/u_e-dovecot-expunge.md @@ -31,8 +31,11 @@ If you want to automate such a task you can create a cron job on your host that ``` #!/bin/bash -/usr/local/bin/docker-compose exec dovecot-mailcow doveadm expunge -A mailbox 'Junk' savedbefore 2w -/usr/local/bin/docker-compose exec dovecot-mailcow doveadm expunge -A mailbox 'Junk' SEEN not SINCE 12h +# Path to mailcow-dockerized, e.g. /opt/mailcow-dockerized +cd /path/to/your/mailcow-dockerized + +/usr/local/bin/docker-compose exec -T dovecot-mailcow doveadm expunge -A mailbox 'Junk' savedbefore 2w +/usr/local/bin/docker-compose exec -T dovecot-mailcow doveadm expunge -A mailbox 'Junk' SEEN not SINCE 12h [...] ```