<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <p><br>
    </p>
    <div class="moz-cite-prefix">On 29.11.2018 10.46, Poliman - Serwis
      wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CAG6pj8JvL0nme3BhZvWxRtb=6LU57P3G1-f3-Vgodx8JJ2EoYg@mail.gmail.com">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <div dir="ltr">
        <div dir="ltr">
          <div dir="ltr"><br>
            <br>
            <div class="gmail_quote">
              <div dir="ltr">pon., 26 lis 2018 o 09:25 Aki Tuomi <<a
                  href="mailto:aki.tuomi@open-xchange.com"
                  moz-do-not-send="true">aki.tuomi@open-xchange.com</a>>
                napisał(a):<br>
              </div>
              <blockquote class="gmail_quote" style="margin:0px 0px 0px
                0.8ex;border-left:1px solid
                rgb(204,204,204);padding-left:1ex">
                <div bgcolor="#FFFFFF">
                  <p><br>
                  </p>
                  <div
                    class="gmail-m_5738185189546848104moz-cite-prefix">On
                    26.11.2018 10.01, Poliman - Serwis wrote:<br>
                  </div>
                  <blockquote type="cite">
                    <div dir="ltr">
                      <div dir="ltr">
                        <div dir="ltr">
                          <div>I have strange problem. In last Friday I
                            had a problem with dovecot. It didn't see
                            directories with mailboxes in /var/vmail.
                            Somehow it crashed because probably two
                            things (a lot of this type of lines in
                            mail.err file):</div>
                          <div><i>Nov 23 07:05:02 s1 dovecot: lda(<a
                                href="mailto:poli@poli.li"
                                target="_blank" moz-do-not-send="true">poli@poli.li</a>):
                              Error: User initialization failed:
                              Initializing mail storage from
                              mail_location setting failed:
                              mkdir(/var/vmail/<a
                                href="http://poli.li/poli/Maildir"
                                target="_blank" moz-do-not-send="true">poli.li/poli/Maildir</a>)
                              failed: Permission denied
                              (euid=5000(vmail) egid=5000(vmail) missing
                              +w perm: /var/vmail, dir owned by 0:0
                              mode=0755)</i></div>
                        </div>
                      </div>
                    </div>
                  </blockquote>
                  <p>/var/vmail is not owned by vmail:vmail, which I
                    think it should be in your configuration.<br>
                  </p>
                </div>
              </blockquote>
              <div>Thank you for answer. Strange thing, because it is
                owned by vmail:vmail, please take a look:</div>
              <div><i>drwxrwx--- 46 vmail vmail  4096 Aug 22 11:52 vmail</i></div>
              <div>I have /var/vmail directory binded to /var/vmail on
                secondary disk. Maybe from some reason entry in
                /etc/fstab crashed? It happened after restart server.<br>
              </div>
            </div>
          </div>
        </div>
      </div>
    </blockquote>
    <p><br>
    </p>
    <p>Yes. It's possible it did not get mounted automatically, but it's
      your server, not mine. What dovecot log entry says that at the
      time the error was reported, /var/vmail as owned by root:root,
      with mode 0755.<br>
    </p>
    <blockquote type="cite"
cite="mid:CAG6pj8JvL0nme3BhZvWxRtb=6LU57P3G1-f3-Vgodx8JJ2EoYg@mail.gmail.com">
      <div dir="ltr">
        <div dir="ltr">
          <div dir="ltr">
            <div class="gmail_quote">
              <blockquote class="gmail_quote" style="margin:0px 0px 0px
                0.8ex;border-left:1px solid
                rgb(204,204,204);padding-left:1ex">
                <div bgcolor="#FFFFFF">
                  <p> </p>
                  <blockquote type="cite">
                    <div dir="ltr">
                      <div dir="ltr">
                        <div dir="ltr">
                          <div>and maybe <i><br>
                            </i></div>
                          <div><i> </i>
                            <div><i>Nov 12 09:27:59 s1 dovecot: imap(<a
                                  href="mailto:artur@firmastanaszek.pl"
                                  target="_blank" moz-do-not-send="true">artur@firmastanaszek.pl</a>):
                                Error: Corrupted index cache file
                                /var/vmail/<a
                                  href="http://firmastanaszek.pl/artur/Maildir/dovecot.index.cache"
                                  target="_blank" moz-do-not-send="true">firmastanaszek.pl/artur/Maildir/dovecot.index.cache</a>:
                                Broken MIME parts for mail UID 559 in
                                mailbox INBOX: Cached MIME parts don't
                                match message during parsing: Cached
                                header size mismatch (parts=)<br>
                                Nov 12 09:27:59 s1 dovecot: imap(<a
                                  href="mailto:artur@firmastanaszek.pl"
                                  target="_blank" moz-do-not-send="true">artur@firmastanaszek.pl</a>):
                                Error: unlink(/var/vmail/<a
                                  href="http://firmastanaszek.pl/artur/Maildir/dovecot.index.cache"
                                  target="_blank" moz-do-not-send="true">firmastanaszek.pl/artur/Maildir/dovecot.index.cache</a>)
                                failed: No such file or directory (in
                                mail-cache.c:28)</i></div>
                          </div>
                          <div><br>
                          </div>
                          <div>and after this event probably all
                            mailboxes download again all emails from
                            1.11 to 22.11. They were duplicated in mail
                            clients.<br>
                          </div>
                        </div>
                      </div>
                    </div>
                  </blockquote>
                  <p>Unlikely that this causes all mailboxes to download
                    all mails. <br>
                  </p>
                </div>
              </blockquote>
              <div>Honestly I am not sure that this was the reason of
                downloading emails again. I am more sure that the first
                error "Permission denied" could do this. <br>
              </div>
              <div>Do you know what could cause above error "Error:
                corrupted index cache file" and how to fix it? It was
                happened suddenly without any changes in dovecot
                configuration<br>
              </div>
              <blockquote class="gmail_quote" style="margin:0px 0px 0px
                0.8ex;border-left:1px solid
                rgb(204,204,204);padding-left:1ex">
                <div bgcolor="#FFFFFF">
                  <p> </p>
                  <blockquote type="cite">
                    <div dir="ltr">
                      <div dir="ltr">
                        <div dir="ltr">
                          <div dir="ltr">
                            <div>-- <br>
                              <div dir="ltr"
                                class="gmail-m_5738185189546848104gmail_signature">
                                <div dir="ltr">
                                  <div>
                                    <div dir="ltr">
                                      <div>
                                        <div dir="ltr">
                                          <div>
                                            <div dir="ltr">
                                              <div>
                                                <div dir="ltr">
                                                  <div>
                                                    <div dir="ltr">
                                                      <div>
                                                        <div dir="ltr">
                                                          <div>
                                                          <div>
                                                          <div><span
                                                          style="color:rgb(153,153,153)"><i>Pozdrawiam
                                                          / Best Regards<br>
                                                          </i></span></div>
                                                          <span
                                                          style="color:rgb(153,153,153)"><i>Piotr
                                                          Bracha</i></span><span
style="color:rgb(153,153,153)"></span><br>
                                                          </div>
                                                          </div>
                                                        </div>
                                                      </div>
                                                    </div>
                                                  </div>
                                                </div>
                                              </div>
                                            </div>
                                          </div>
                                        </div>
                                      </div>
                                    </div>
                                  </div>
                                </div>
                              </div>
                            </div>
                          </div>
                        </div>
                      </div>
                    </div>
                  </blockquote>
                  <p>Also which version of dovecot is this?<br>
                  </p>
                </div>
              </blockquote>
              <div>root@s1:/var# dovecot --version<br>
                2.2.22 (fe789d2) <br>
              </div>
              <blockquote class="gmail_quote" style="margin:0px 0px 0px
                0.8ex;border-left:1px solid
                rgb(204,204,204);padding-left:1ex">
                <div bgcolor="#FFFFFF">
                  <p> </p>
                  <p>Aki<br>
                  </p>
                </div>
              </blockquote>
            </div>
          </div>
        </div>
      </div>
    </blockquote>
    <div dir="ltr">
      <div dir="ltr">
        <div dir="ltr"><br>
        </div>
        <div dir="ltr">Corrupted index cache file can happen for many
          reasons, but it usually fixes itself. I would suggest enabling
          mail_log plugin if not done so yet, to get logging about mail
          actions.<br clear="all">
        </div>
      </div>
    </div>
    <blockquote type="cite"
cite="mid:CAG6pj8JvL0nme3BhZvWxRtb=6LU57P3G1-f3-Vgodx8JJ2EoYg@mail.gmail.com">
      <div dir="ltr">
        <div dir="ltr">
          <div dir="ltr"><br>
            -- <br>
            <div dir="ltr" class="gmail_signature">
              <div dir="ltr">
                <div>
                  <div dir="ltr">
                    <div>
                      <div dir="ltr">
                        <div>
                          <div dir="ltr">
                            <div>
                              <div dir="ltr">
                                <div>
                                  <div dir="ltr">
                                    <div>
                                      <div dir="ltr">
                                        <div>
                                          <div>
                                            <div><span
                                                style="color:rgb(153,153,153)"><i>Pozdrawiam
                                                  / Best Regards<br>
                                                </i></span></div>
                                            <span
                                              style="color:rgb(153,153,153)"><i>Piotr
                                                Bracha</i></span><span
                                              style="color:rgb(153,153,153)"></span><br>
                                          </div>
                                        </div>
                                      </div>
                                    </div>
                                  </div>
                                </div>
                              </div>
                            </div>
                          </div>
                        </div>
                      </div>
                    </div>
                  </div>
                </div>
              </div>
            </div>
          </div>
        </div>
      </div>
    </blockquote>
    <p><br>
    </p>
    <p>Aki<br>
    </p>
  </body>
</html>