mailcow-dockerized-docs/docs/u_e-dovecot-idle_interval.md

36 Zeilen
1,5 KiB
Markdown

2018-10-06 11:00:15 +02:00
# Changing the IMAP IDLE interval
## What is the IDLE interval?
2019-08-16 13:33:17 +02:00
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.
2018-10-06 11:00:15 +02:00
2019-08-16 13:33:17 +02:00
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.
2018-10-06 11:00:15 +02:00
## Edit the value
### Change configuration
Create a new file `data/conf/dovecot/extra.conf` (or edit it if it already exists).
2019-08-16 13:33:17 +02:00
Insert the setting followed by the new value. For example, to set the interval to 5 minutes you could type:
2018-10-06 11:00:15 +02:00
```
2019-08-16 13:33:17 +02:00
imap_idle_notify_interval = 5 mins
2018-10-06 11:00:15 +02:00
```
2019-08-16 13:33:17 +02:00
29 minutes is the maximum value allowed by the [corresponding RFC](https://tools.ietf.org/html/rfc2177).
2018-10-06 11:00:15 +02:00
!!! 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.
2019-08-16 13:33:17 +02:00
### Reload Dovecot
Now reload Dovecot:
2018-10-06 11:00:15 +02:00
```
docker-compose exec dovecot-mailcow dovecot reload
```
!!! info
You can check the value of this setting with
```
docker-compose exec dovecot-mailcow dovecot -a | grep "imap_idle_notify_interval"
```
If you didn't change it, it should be at 2m. If you did change it, you should see your new value.