<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">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">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">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><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">artur@firmastanaszek.pl</a>):
                  Error: Corrupted index cache file /var/vmail/<a href="http://firmastanaszek.pl/artur/Maildir/dovecot.index.cache" target="_blank">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">artur@firmastanaszek.pl</a>):
                  Error: unlink(/var/vmail/<a href="http://firmastanaszek.pl/artur/Maildir/dovecot.index.cache" target="_blank">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><br clear="all"><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><span style="color:rgb(153,153,153)"></span></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div>