Update u_e-dovecot-idle_interval.md
Dieser Commit ist enthalten in:
Ursprung
acb295e3c4
Commit
c05d955018
1 geänderte Dateien mit 7 neuen und 7 gelöschten Zeilen
|
@ -1,25 +1,25 @@
|
||||||
# Changing the IMAP IDLE interval
|
# Changing the IMAP IDLE interval
|
||||||
## What is the IDLE interval?
|
## What is the IDLE interval?
|
||||||
Per default, dovecot sends a "I'm still here" notification to every client that has an open connection with dovecot to get mails as quickly as possible without manually polling it (IMAP PUSH). This notification is controlled by the setting [`imap_idle_notify_interval`](https://wiki.dovecot.org/Timeouts), whose default value is 2 minutes.
|
Per default, Dovecot sends a "I'm still here" notification to every client that has an open connection with Dovecot to get mails as quickly as possible without manually polling it (IMAP PUSH). This notification is controlled by the setting [`imap_idle_notify_interval`](https://wiki.dovecot.org/Timeouts), which defaults to 2 minutes.
|
||||||
|
|
||||||
The short interval results in the client getting a lot of messages for this connection, which is bad for mobile devices because every time the device receives this message, the mailing app has to wake up and look at it, only to see that it has nothing to do. This can result in unnecessary battery drain.
|
A short interval results in the client getting a lot of messages for this connection, which is bad for mobile devices, because every time the device receives this message, the mailing app has to wake up. This can result in unnecessary battery drain.
|
||||||
|
|
||||||
## Edit the value
|
## Edit the value
|
||||||
### Change configuration
|
### Change configuration
|
||||||
Create a new file `data/conf/dovecot/extra.conf` (or edit it if it already exists).
|
Create a new file `data/conf/dovecot/extra.conf` (or edit it if it already exists).
|
||||||
Insert the setting followed by the new value. For example, to set the interval to 29 minutes you could type:
|
Insert the setting followed by the new value. For example, to set the interval to 5 minutes you could type:
|
||||||
|
|
||||||
```
|
```
|
||||||
imap_idle_notify_interval = 29 mins
|
imap_idle_notify_interval = 5 mins
|
||||||
```
|
```
|
||||||
|
|
||||||
I choose 29 minutes because this is the maximum value allowed by the [corresponding RFC](https://tools.ietf.org/html/rfc2177).
|
29 minutes is the maximum value allowed by the [corresponding RFC](https://tools.ietf.org/html/rfc2177).
|
||||||
|
|
||||||
!!! warning
|
!!! warning
|
||||||
This isn't a default setting in mailcow because we don't know how this setting changes the behavior of other clients. Be careful if you change this and monitor different behavior.
|
This isn't a default setting in mailcow because we don't know how this setting changes the behavior of other clients. Be careful if you change this and monitor different behavior.
|
||||||
|
|
||||||
### Reload dovecot
|
### Reload Dovecot
|
||||||
Now reload dovecot:
|
Now reload Dovecot:
|
||||||
```
|
```
|
||||||
docker-compose exec dovecot-mailcow dovecot reload
|
docker-compose exec dovecot-mailcow dovecot reload
|
||||||
```
|
```
|
||||||
|
|
Laden …
In neuem Issue referenzieren