clearified what gets deleted by the sample docker.override.yml

Dieser Commit ist enthalten in:
Philipp Beckers 2020-11-20 20:05:20 +01:00
Ursprung df4bba3abd
Commit 37ec46ae9e

Datei anzeigen

@ -33,7 +33,7 @@ docker-compose exec dovecot-mailcow doveadm expunge -u 'mailbox@example.com' mai
## Job scheduler
### via the host system cron:
### via the host system cron
If you want to automate such a task you can create a cron job on your host that calls a script like the one below:
@ -81,7 +81,7 @@ version: '2.1'
```
The job controller just need access to the docker control socket to be able to emulate the behavior of "exec". Then we add a few label to our dovecot-container to activate the job scheduler and tell him in a cron compatible scheduling format when to run. If you struggle with that schedule string you can use [crontab guru](https://crontab.guru/).
This docker-compose.override.yml deletes all mails older then 2 weeks every day at 4 am. To see if things ran proper, you can not only see in your mailbox but also check Ofelia's docker log if it looks something like this:
This docker-compose.override.yml deletes all mails older then 2 weeks from the "Junk" folder every day at 4 am. To see if things ran proper, you can not only see in your mailbox but also check Ofelia's docker log if it looks something like this:
```
common.go:124 â–¶ NOTICE [Job "dovecot-expunge-trash" (8759567efa66)] Started - doveadm expunge -A mailbox 'Junk' savedbefore 2w,