how to optimize speed of imap mail

agaitan026

Verified User
Joined
Mar 24, 2021
Messages
42
Hi i have a directadmin server, almost in all mobile devices i get the mails after i open mail client, im not getting as push notification. Not sure if i have something wrong or IMAP Idle is disabled?

thank you
 
I think you have to set it up the OLDer way to sync mail every 5 min. Otherwise no it wont. Its not like big free google or yahoo.
 
Dovecot supports idle, which basically keeps a connection open from the client to the server for almost imediate delivery. If you have an Android phone, there are multiple clients that support IMAP IDLE. If you are on an iPhone, sadly they removed support for IMAP IDLE years ago and only support fetch (periodic checks) or manual where it only downloads email when you connect. See the imap_idle_notify_interval setting
 
Dovecot supports idle, which basically keeps a connection open from the client to the server for almost imediate delivery. If you have an Android phone, there are multiple clients that support IMAP IDLE. If you are on an iPhone, sadly they removed support for IMAP IDLE years ago and only support fetch (periodic checks) or manual where it only downloads email when you connect. See the imap_idle_notify_interval setting
where is imap_idle_notify_interval ?
 
where is imap_idle_notify_interval ?
It might not be in any config files, it has a default value of 2 minutes. I can go almost anywhere for example:
protocol imap {
imap_idle_notify_interval = 29 mins
mail_max_userip_connections = 10
mail_plugins = " quota imap_quota autocreate"
}

It could also be placed in the main config section like in your /etc/exim.variables.conf.custom file
 
It could also be placed in the main config section like in your /etc/exim.variables.conf.custom file
The configuration of the imap protocol is part of dovecot not exim.

All de loaded options and config files for dovecot can be checked by exec: dovecot -a
to check only the idle parameter: dovecot -a | grep idle_notify

# dovecot -a | grep idle_notify
imap_idle_notify_interval = 2 mins

To add this config, you need to create a file like /etc/dovecot/conf.d/90-imapidle.conf with the idle notify interval config:
echo "imap_idle_notify_interval = 29 mins" > /etc/dovecot/conf.d/90-imapidle.conf
restart dovecot: service dovecot restart

and recheck the loaded config: dovecot -a | grep idle_notify

# dovecot -a | grep idle_notify
imap_idle_notify_interval = 29 mins
 
The configuration of the imap protocol is part of dovecot not exim.
You are correct, I knew the setting could go almost anywhere and my mind hasn't been thinking clearly lately (death in the family). It is a dovecot setting and not exim. It also isn't necessary to support IMAP IDLE but it is used to control how often dovecot should send a little message to the client to remind them that the connection is still active. IMAP IDLE is enabled by default on dovecot. Ideally you want the value to be under 30 minutes but more than the default 2 minutes. Waking your mobile phone client every 2 minutes could be a huge battery drain, which is why it should be increased.
 
Back
Top