clearified what gets deleted by the sample docker.override.yml
Dieser Commit ist enthalten in:
Ursprung
df4bba3abd
Commit
37ec46ae9e
1 geänderte Dateien mit 2 neuen und 2 gelöschten Zeilen
|
@ -33,7 +33,7 @@ docker-compose exec dovecot-mailcow doveadm expunge -u 'mailbox@example.com' mai
|
||||||
|
|
||||||
## Job scheduler
|
## 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:
|
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/).
|
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,
|
common.go:124 â–¶ NOTICE [Job "dovecot-expunge-trash" (8759567efa66)] Started - doveadm expunge -A mailbox 'Junk' savedbefore 2w,
|
||||||
|
|
Laden …
In neuem Issue referenzieren