determine why mail clients download mails 2nd time
aki.tuomi at open-xchange.com
Thu Nov 29 10:55:25 EET 2018
On 29.11.2018 10.46, Poliman - Serwis wrote:
> pon., 26 lis 2018 o 09:25 Aki Tuomi <aki.tuomi at open-xchange.com
> <mailto:aki.tuomi at open-xchange.com>> napisał(a):
> On 26.11.2018 10.01, Poliman - Serwis wrote:
>> 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):
>> /Nov 23 07:05:02 s1 dovecot: lda(poli at poli.li
>> <mailto:poli at poli.li>): Error: User initialization failed:
>> Initializing mail storage from mail_location setting failed:
>> <http://poli.li/poli/Maildir>) failed: Permission denied
>> (euid=5000(vmail) egid=5000(vmail) missing +w perm: /var/vmail,
>> dir owned by 0:0 mode=0755)/
> /var/vmail is not owned by vmail:vmail, which I think it should be
> in your configuration.
> Thank you for answer. Strange thing, because it is owned by
> vmail:vmail, please take a look:
> /drwxrwx--- 46 vmail vmail 4096 Aug 22 11:52 vmail/
> 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.
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.
>> and maybe /
>> /Nov 12 09:27:59 s1 dovecot: imap(artur at firmastanaszek.pl
>> <mailto:artur at firmastanaszek.pl>): Error: Corrupted index cache
>> Broken MIME parts for mail UID 559 in mailbox INBOX: Cached MIME
>> parts don't match message during parsing: Cached header size
>> mismatch (parts=)
>> Nov 12 09:27:59 s1 dovecot: imap(artur at firmastanaszek.pl
>> <mailto:artur at firmastanaszek.pl>): Error:
>> failed: No such file or directory (in mail-cache.c:28)/
>> and after this event probably all mailboxes download again all
>> emails from 1.11 to 22.11. They were duplicated in mail clients.
> Unlikely that this causes all mailboxes to download all mails.
> 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.
> 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
>> /Pozdrawiam / Best Regards
>> /Piotr Bracha/
> Also which version of dovecot is this?
> root at s1:/var# dovecot --version
> 2.2.22 (fe789d2)
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.
> /Pozdrawiam / Best Regards
> /Piotr Bracha/
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the dovecot