Il 2020-11-01 13:23 John Stoffel ha scritto:
How is your "mail_location" defined in your configuration? And what is your search term?
John
Hi, I just discovered having such strange .temp files on an old server of mine.
In some folders I have hundred of such files, but they really are hardlinks to the same .temp file (for each folder), so they do not consume much space. These files seems much more common in the Trash folder, but they appear even in other folder.
An example of a folder with 6 .temp files: [root@mail dbox-Mails]# ls -al /var/vmail/domain/user/dbox/mailboxes/INBOX/Trash/dbox-Mails drwxr-x---. 2 vmail vmail 4096 Oct 31 12:42 . drwxr-x---. 3 vmail vmail 4096 Mar 17 2020 .. -rw-r-----. 1 vmail vmail 512 Oct 29 09:45 dovecot.index -rw-r-----. 1 vmail vmail 392 Oct 28 13:59 dovecot.index.backup -rw-r-----. 1 vmail vmail 55296 Oct 31 12:42 dovecot.index.cache -rw-r-----. 1 vmail vmail 23536 Oct 31 12:42 dovecot.index.log -rw-r-----. 6 vmail vmail 22215889 Oct 12 10:42 .temp.1602492703.P47358Q0M194142.hostname -rw-r-----. 6 vmail vmail 22215889 Oct 12 10:42 .temp.1602494002.P50402Q0M898232.hostname -rw-r-----. 6 vmail vmail 22215889 Oct 12 10:42 .temp.1602494013.P50446Q0M771524.hostname -rw-r-----. 6 vmail vmail 22215889 Oct 12 10:42 .temp.1602494621.P51761Q0M119496.hostname -rw-r-----. 6 vmail vmail 22215889 Oct 12 10:42 .temp.1602494745.P51954Q0M387071.hostname -rw-r-----. 6 vmail vmail 22215889 Oct 12 10:42 .temp.1602495419.P53185Q0M671512.hostname -rw-r-----. 1 vmail vmail 848909 Oct 29 21:12 u.1623
6x 22M files = 128M... [root@mail dbox-Mails]# du -hscl .temp.160249* 22M .temp.1602492703.P47358Q0M194142.hostname 22M .temp.1602494002.P50402Q0M898232.hostname 22M .temp.1602494013.P50446Q0M771524.hostname 22M .temp.1602494621.P51761Q0M119496.hostname 22M .temp.1602494745.P51954Q0M387071.hostname 22M .temp.1602495419.P53185Q0M671512.hostname 128M total
...but only 22M really consumed (1 file, 6 hardlinks) [root@mail dbox-Mails]# du -hsc .temp.160249* 22M .temp.1602492703.P47358Q0M194142.hostname 22M total
I never run doveadm altmove; moreover, these .tempo files are both old (>1 year) and new (~3 weeks ago). Below you can find the output from dovecot -n. Any ideas? Thanks.
[root@mail tmp]# doveconf -n # 2.0.9: /etc/dovecot/dovecot.conf # OS: Linux 2.6.32-754.15.3.el6.x86_64 x86_64 CentOS release 6.10 (Final) auth_mechanisms = plain login auth_verbose_passwords = plain default_process_limit = 300 disable_plaintext_auth = no mail_location = sdbox:~/dbox mail_plugins = " quota" managesieve_notify_capability = mailto managesieve_sieve_capability = fileinto reject envelope encoded-character vacation subaddress comparator-i;ascii-numeric relational regex imap4flags copy include variables body enotify environment mailbox date mbox_write_locks = fcntl passdb { args = /etc/dovecot/conf.d/dovecot-sql.conf.ext driver = sql } plugin { autocreate = INBOX/Spam autocreate2 = INBOX/Trash autosubscribe = INBOX/Spam autosubscribe2 = INBOX/Trash quota = dict:User quota::file:%h/dbox/quota quota_rule = *:storage=1G sieve = ~/.dovecot.sieve sieve_after = /var/vmail/dovecot.sieve sieve_before = /var/vmail/autoreply.sieve sieve_dir = ~/sieve } protocols = imap pop3 lmtp sieve service auth { unix_listener /var/spool/postfix/private/auth { mode = 0666 } } service managesieve-login { inet_listener sieve { port = 4190 } } ssl_cert =
-- Danti Gionatan Supporto Tecnico Assyoma S.r.l. - www.assyoma.it email: g.danti@assyoma.it - info@assyoma.it GPG public key ID: FF5F32A8