>>>>> "Entrepreneur" == Entrepreneur AJ via dovecot <dovecot@dovecot.org> 
>>>>> writes:

> Migrating everything to a k0s kubernetes cluster, trying to migrate
> dovecot and all so far seems to be well with PVC for mail storage,
> ssl working great, authentication vis PostgreSQL working great.

So how do you have your local storage defined in your kubernetes
cluster?  That strikes me (as a total Kubernetes noob) as the possible
issue you're running into.  Your /src/vmail/sr
> Issue is when trying to look at another folder say Deleted or Spam etc 
> folder I am getting a timeout error with no logs.

> I disabled apparmour on the nodes the try again and the following error 
> message appears;

> Jun 24 21:01:55 imap-login: Info: Login: user=<eaj>, method=PLAIN, 
> rip=194.207.0.0, lip=10.244.24.235, mpid=15, TLS, session=<eTNaF6kbzJHCz3qg>
> Jun 24 21:01:55 imap(eaj)<15><eTNaF6kbzJHCz3qg>: Debug: Added userdb 
> setting: mail=maildir:/srv/vmail/eaj
> Jun 24 21:01:55 imap(eaj)<15><eTNaF6kbzJHCz3qg>: Debug: Effective 
> uid=1000, gid=1000, home=/srv/vmail/eaj
> Jun 24 21:01:55 imap(eaj)<15><eTNaF6kbzJHCz3qg>: Debug: 
> open(/proc/self/io) failed: Permission denied
> Jun 24 21:01:55 imap(eaj)<15><eTNaF6kbzJHCz3qg>: Debug: Namespace inbox: 
> type=private, prefix=, sep=, inbox=yes, hidden=no, list=yes, 
> subscriptions=yes location=maildir:/srv/vmail/eaj
> Jun 24 21:01:55 imap(eaj)<15><eTNaF6kbzJHCz3qg>: Debug: maildir++: 
> root=/srv/vmail/eaj, index=, indexpvt=, control=, inbox=/srv/vmail/eaj, alt=
> Jun 24 21:01:55 imap(eaj)<14><3PRZF6kb0JHCz3qg>: Debug: Mailbox INBOX: 
> Mailbox opened
> Jun 24 21:02:24 imap(eaj)<15><eTNaF6kbzJHCz3qg>: Debug: Mailbox Sent: 
> Couldn't open mailbox in list index: Storage size changed 160 != 396
> Jun 24 21:02:24 imap(eaj)<15><eTNaF6kbzJHCz3qg>: Debug: Mailbox Sent: 
> Mailbox opened
> Jun 24 21:02:24 imap(eaj)<15><eTNaF6kbzJHCz3qg>: Debug: Mailbox Drafts: 
> Couldn't open mailbox in list index: Storage size changed 160 != 396
> Jun 24 21:02:24 imap(eaj)<15><eTNaF6kbzJHCz3qg>: Debug: Mailbox Drafts: 
> Mailbox opened

> Thunderbird keeps showing a timeout error after a few minutes.

> Dovecot Version: 2.3.21 (47349e2482)

> dovecot -n config:
> # 2.3.21 (47349e2482): /etc/dovecot/dovecot.conf
> # OS: Linux 5.15.0-112-generic x86_64
> # Hostname: dovecot-549bdc98ff-tzwcf
> auth_debug = yes
> auth_debug_passwords = yes
> auth_mechanisms = plain login
> auth_verbose = yes
> auth_verbose_passwords = yes
> base_dir = /var/run/dovecot/
> first_valid_uid = 1000
> import_environment = TZ
> last_valid_uid = 1000
> log_path = /dev/stdout
> login_greeting = IMAP ready.
> mail_debug = yes
> mail_home = /srv/vmail/%n
> mail_location = maildir:~

I think this is wrong, you really want something like:

  mail_home = 
  mail_location = maildir:/srv/vmail/%d/%n/Maildir

Because you don't have local directories for your users.  You're doing
completely virtual, so I think this is what you want instead.  Also,
for future growth, you might want to add %d (domain) in your path just
in case.  

> namespace inbox {
>    hidden = no
>    inbox = yes
>    list = yes
>    location =
>    mailbox Drafts {
>      auto = subscribe
>      special_use = \Drafts
>    }
>    mailbox Junk {
>      special_use = \Junk
>    }
>    mailbox Sent {
>      auto = subscribe
>      special_use = \Sent
>    }
>    mailbox "Sent Messages" {
>      special_use = \Sent
>    }
>    mailbox Spam {
>      auto = subscribe
>      special_use = \Junk
>    }
>    mailbox Trash {
>      auto = subscribe
>      special_use = \Trash
>    }
>    prefix =
>    subscriptions = yes
>    type = private
> }
> passdb {
>    args = /etc/dovecot/dovecot-sql.conf.ext
>    driver = sql
> }
> plugin {
>    acl = vfile:/etc/dovecot/global-acls:cache_secs=300
>    acl_shared_dict = file:/var/lib/dovecot/shared-mailboxes
>    imap_compress_deflate_level = 9
>    mail_crypt_global_private_key = # hidden, use -P to show it
>    mail_crypt_global_public_key = # hidden, use -P to show it
>    mail_crypt_save_version = 2
>    zlib_save = zstd
>    zlib_save_level = 3
> }
> service auth-worker {
>    user = vmail
> }
> service auth {
>    unix_listener auth-userdb {
>      group = vmail
>      mode = 0600
>      user = vmail
>    }
> }
> service dict {
>    unix_listener dict {
>      group = vmail
>      mode = 0660
>      user = vmail
>    }
> }
> service imap-login {
>    inet_listener imap {
>      port = 143
>    }
>    inet_listener imaps {
>      port = 993
>      ssl = yes
>    }
> }
> service lmtp {
>    inet_listener lmtp {
>      port = 24
>    }
>    user = vmail
> }
> service pop3-login {
>    inet_listener pop3 {
>      port = 0
>    }
>    inet_listener pop3s {
>      port = 0
>      ssl = yes
>    }
> }
> service submission-login {
>    inet_listener submission {
>      port = 0
>    }
>    inet_listener submissions {
>      port = 0
>    }
> }
> ssl = required
> ssl_cert = </etc/dovecot/certs/tls.crt
> ssl_cipher_list = 
> ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384:DHE-RSA-CHACHA20-POLY1305
> ssl_key = # hidden, use -P to show it
> ssl_prefer_server_ciphers = yes
> userdb {
>    args = /etc/dovecot/dovecot-sql.conf.ext
>    driver = sql
> }
> verbose_ssl = yes
> protocol imap {
>    mail_plugins =
>    postmaster_address = postmas...@eajglobal.net
> }
> protocol lmtp {
>    mail_plugins =
>    postmaster_address = postmas...@eajglobal.net
> }


> Any pointers would be highly appreciated.

> _______________________________________________
> dovecot mailing list -- dovecot@dovecot.org
> To unsubscribe send an email to dovecot-le...@dovecot.org
_______________________________________________
dovecot mailing list -- dovecot@dovecot.org
To unsubscribe send an email to dovecot-le...@dovecot.org

Reply via email to