Delayed flags changes over IDLE

Kostya Vasilyev kman at fastmail.com
Mon Mar 11 16:18:04 EET 2019


Aki,

Please see below.

On Mon, Mar 11, 2019, at 12:58 PM, Aki Tuomi via dovecot wrote:
> 
> On 10.3.2019 10.14, Kostya Vasilyev via dovecot wrote:
> > Hello,
> >
> > I'm experiencing slow flags changes over IMAP IDLE:
> >
> > - If I start an IDLE session / command
> > - Change the flags of some messages via another email app
> > - Dovecot can take a minute or more to notify the IDLE connection about flags changes
> >
> > If I use another email app to add or remove a message, Dovecot sends that (EXISTS / EXPUNGE) instantly and also flushes the (so far delayed) flags changes. So it does "know" already.
> >
> > The system is Debian Testing, 64 bit, file system is ext4.
> >
> > Dovecot is 2.3.4.1 (f79e8e7e4) - I believe from Debian repos (I had Dovecot's own repo added at some point, disabled now).
> >
> > My mail is stored under ~/mail/.imap (not sure what this format is called), I mean not "single file mbox".
> >
> > I have not changed any IDLE related config settings:
> >
> > doveconf  | grep -i idle
> > default_idle_kill = 1 mins
> > director_ping_idle_timeout = 30 secs
> > imap_idle_notify_interval = 2 mins
> > imapc_max_idle_time = 29 mins
> > mailbox_idle_check_interval = 30 secs
> >
> > What can I do to make Dovecot notify IDLE clients about flags changes - more quickly? Preferably near-instant?
> >
> Can you send doveconf -n?

----------------------------

doveconf -n
# 2.3.4.1 (f79e8e7e4): /etc/dovecot/dovecot.conf
# Pigeonhole version 0.5.4 ()
# OS: Linux 4.18.16-x86_64-linode118 x86_64 Debian buster/sid 
# Hostname: kman.mobi
auth_default_realm = kman.mobi
auth_mechanisms = plain login
login_log_format_elements = user=<%u> method=%m rip=%r lip=%l mpid=%e %c %k
mail_location = mbox:~/mail:INBOX=/var/mail/%n
mail_privileged_group = mail
namespace inbox {
  inbox = yes
  location = 
  mailbox Drafts {
    auto = create
    special_use = \Drafts
  }
  mailbox Junk {
    special_use = \Junk
  }
  mailbox Sent {
    auto = create
    special_use = \Sent
  }
  mailbox "Sent Messages" {
    special_use = \Sent
  }
  mailbox Trash {
    auto = create
    special_use = \Trash
  }
  prefix = 
}
passdb {
  args = scheme=CRYPT username_format=%u /etc/dovecot/users
  driver = passwd-file
}
protocols = " imap"
service auth {
  unix_listener /var/spool/postfix/private/auth {
    group = postfix
    mode = 0666
    user = postfix
  }
}
service imap-login {
  inet_listener imap {
    port = 0
  }
}
service pop3-login {
  inet_listener pop3 {
    port = 0
  }
}
ssl_cert = </etc/letsencrypt/live/kman.mobi/fullchain.pem
ssl_cipher_list = kECDHE+CHACHA20:kECDHE+AESGCM:kECDHE+AES:!AESCCM:!aNULL
ssl_dh = # hidden, use -P to show it
ssl_key = # hidden, use -P to show it
ssl_min_protocol = TLSv1.2
ssl_prefer_server_ciphers = yes
userdb {
  args = username_format=%u /etc/dovecot/users
  driver = passwd-file
}
protocol imap {
  mail_max_userip_connections = 20
}


----------------------------

-- K


More information about the dovecot mailing list