Hi Everyone,
I think i found the problem. It has to do with mbsync.
many apologies.
regards
kunal

On Sun, Apr 21, 2019 at 8:57 AM Kunal A. <kunal.oa@gmail.com> wrote:
Hi,
Once again sincere apologies for emailing here.
My dovecot isn't reading the newly updated e-mails from the mbsync.
I have tried running doveadm -D -v force-resync -u email1@example.com "Inbox/Public/Other Users/user1@example.com"

Plese help if possible. Highly appreciate if someone could help here...

Below is the debug log :-

Debug: Loading modules from directory: /usr/lib64/dovecot
Debug: Module loaded: /usr/lib64/dovecot/lib01_acl_plugin.so
Debug: Module loaded: /usr/lib64/dovecot/lib10_quota_plugin.so
Debug: Loading modules from directory: /usr/lib64/dovecot/doveadm
Debug: Module loaded: /usr/lib64/dovecot/doveadm/lib10_doveadm_acl_plugin.so
Debug: Skipping module doveadm_expire_plugin, because dlopen() failed: /usr/lib64/dovecot/doveadm/lib10_doveadm_expire_plugin.so: undefined symbol: expire_set_deinit (this is usually intentional, so just ignore this message)
Debug: Module loaded: /usr/lib64/dovecot/doveadm/lib10_doveadm_quota_plugin.so
Debug: Skipping module doveadm_fts_lucene_plugin, because dlopen() failed: /usr/lib64/dovecot/doveadm/lib20_doveadm_fts_lucene_plugin.so: undefined symbol: lucene_index_iter_deinit (this is usually intentional, so just ignore this message)
Debug: Skipping module doveadm_fts_plugin, because dlopen() failed: /usr/lib64/dovecot/doveadm/lib20_doveadm_fts_plugin.so: undefined symbol: fts_user_get_language_list (this is usually intentional, so just ignore this message)
Debug: Skipping module doveadm_mail_crypt_plugin, because dlopen() failed: /usr/lib64/dovecot/doveadm/libdoveadm_mail_crypt_plugin.so: undefined symbol: mail_crypt_box_get_pvt_digests (this is usually intentional, so just ignore this message)
doveadm(email1@example.com)<20402><>: Debug: auth USER input: email1@example.com uid=5000 gid=5000 home=/var/mail/vhosts/example.com/email1
doveadm(email1@example.com): Debug: Effective uid=5000, gid=5000, home=/var/mail/vhosts/example.com/email1
doveadm(email1@example.com): Debug: quota: No quota setting - plugin disabled
doveadm(email1@example.com): Debug: Namespace inbox: type=private, prefix=INBOX/, sep=/, inbox=yes, hidden=no, list=yes, subscriptions=yes location=maildir:~/Maildir
doveadm(email1@example.com): Debug: maildir++: root=/var/mail/vhosts/example.com/email1/Maildir, index=, indexpvt=, control=, inbox=/var/mail/vhosts/example.com/email1/Maildir, alt=
doveadm(email1@example.com): Debug: acl: initializing backend with data: vfile
doveadm(email1@example.com): Debug: acl: acl username = email1@example.com
doveadm(email1@example.com): Debug: acl: owner = 1
doveadm(email1@example.com): Debug: acl vfile: Global ACLs disabled
doveadm(email1@example.com): Debug: Namespace : type=public, prefix=Public/, sep=/, inbox=no, hidden=no, list=children, subscriptions=yes location=maildir:/mnt/5ea86261-cfae-4e17-b21f-3a6c1a03d795/Email/fastmail:LAYOUT=fs
doveadm(email1@example.com): Debug: fs: root=/mnt/5ea86261-cfae-4e17-b21f-3a6c1a03d795/Email/fastmail, index=, indexpvt=, control=, inbox=, alt=
doveadm(email1@example.com): Debug: acl: initializing backend with data: vfile
doveadm(email1@example.com): Debug: acl: acl username = email1@example.com
doveadm(email1@example.com): Debug: acl: owner = 0
doveadm(email1@example.com): Debug: acl vfile: Global ACLs disabled
doveadm(email1@example.com): Debug: Namespace : type=private, prefix=, sep=, inbox=no, hidden=yes, list=no, subscriptions=no location=fail::LAYOUT=none
doveadm(email1@example.com): Debug: none: root=, index=, indexpvt=, control=, inbox=, alt=
doveadm(email1@example.com): Debug: acl vfile: file /var/mail/vhosts/example.com/email1/Maildir/dovecot-acl not found


Doveconf output :-


# 2.3.5 (513208660): /etc/dovecot/dovecot.conf
# OS: Linux 5.0.7-200.fc29.x86_64 x86_64 Fedora release 29 (Twenty Nine)
# Hostname: machine
auth_mechanisms = plain login
mail_debug = yes
mail_gid = vmail
mail_location = maildir:~/Maildir
mail_plugins = acl quota
mail_privileged_group = mail
mail_uid = vmail
mbox_write_locks = fcntl
namespace {
  list = children
  location = maildir:/mnt/5ea86261-cfae-4e17-b21f-3a6c1a03d795/Email/fastmail:LAYOUT=fs
  prefix = Public/
  separator = /
  subscriptions = yes
  type = public
}
namespace inbox {
  inbox = yes
  list = yes
  location =
  mailbox Drafts {
    special_use = \Drafts
  }
  mailbox Junk {
    special_use = \Junk
  }
  mailbox Sent {
    special_use = \Sent
  }
  mailbox "Sent Messages" {
    special_use = \Sent
  }
  mailbox Trash {
    special_use = \Trash
  }
  prefix = INBOX/
  separator = /
}
passdb {
  driver = pam
}
passdb {
  args = /etc/dovecot/dovecot-sql.conf.ext
  driver = sql
}
plugin {
  acl = vfile
  acl_shared_dict = file:/var/mail/vhosts/example.com/Sharedbox
}
postmaster_address = postmaster at example.com
protocols = imap pop3
service auth-worker {
  user = vmail
}
service auth {
  unix_listener /var/spool/postfix/private/auth {
    group = postfix
    mode = 0666
    user = postfix
  }
  unix_listener auth-userdb {
    mode = 0600
    user = vmail
  }
  user = dovecot
}
service imap-login {
  inet_listener imap {
    port = 143
  }
  inet_listener imaps {
    port = 993
    ssl = yes
  }
}
service lmtp {
  unix_listener /var/spool/postfix/private/dovecot-lmtp {
    group = postfix
    mode = 0600
    user = postfix
  }
}
service pop3-login {
  inet_listener pop3 {
    port = 0
  }
  inet_listener pop3s {
    port = 995
    ssl = yes
  }
}
ssl = required
ssl_cert = </etc/pki/dovecot/certs/dovecot.pem
ssl_cipher_list = PROFILE=SYSTEM
ssl_key = # hidden, use -P to show it
userdb {
  driver = passwd
}
userdb {
  args = uid=vmail gid=vmail home=/var/mail/vhosts/%d/%n
  driver = static
}
protocol lmtp {
  mail_plugins = quota acl sieve quota
}
protocol lda {
  mail_plugins = quota acl sieve
}
protocol imap {
  mail_plugins = acl quota imap_acl quota acl imap_quota
}