[Dovecot] Maildir: directory instead of file
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Since 1.0 sometimes happens that in the 'cur' directory of a maildir handled by Dovecot I find a directory instead of a file, just like this:
drwx------ 2 mailvirtuale mailvirtuale 4096 Aug 25 15:11 1219669940.M113849P13510.gw.areanet.it:2,S drwx------ 2 mailvirtuale mailvirtuale 20480 Aug 25 09:49 :2,S
This is the first time I find a directory named as a file, all other times I found a directory named just ":2,S"
Looking to the dovecot log I found this regarding the second directory:
Aug 25 09:46:27 gw dovecot: imap-login: Login: user=dsimonutti@areanet.it, method=PLAIN, rip=192.168.0.100, lip=192.168.0.254 Aug 25 09:46:27 gw dovecot: IMAP(dsimonutti@areanet.it): /var/spool/mail/areanet.it/dsimonutti/.DNS/dovecot-uidlist: Duplicate file entry at line 4673: 1171533630.P28442Q0M560589.gw.areanet.it:2,Sa (uid 2260 -> 4827) Aug 25 09:46:27 gw dovecot: IMAP(dsimonutti@areanet.it): /var/spool/mail/areanet.it/dsimonutti/.DNS/dovecot-uidlist: Duplicate file entry at line 4674: 1176880103.P23548Q8M176396.gw.areanet.it:2,S (uid 819 -
- Aug 25 09:46:27 gw dovecot: IMAP(dsimonutti@areanet.it): /var/spool/mail/areanet.it/dsimonutti/.DNS/dovecot-uidlist: Duplicate file entry at line 4675: 1178089300.P27489Q19M500157.gw.areanet.it:2,Sa (uid 941 -> 4829)
(and many other lines like the last ones)
But regarding the first directory I just found this entry:
Aug 25 15:12:27 gw dovecot: IMAP(dsimonutti@areanet.it): Fixed a duplicate: /var/spool/mail/areanet.it/dsimonutti/cur/:2, -> 1219669940.M113849P13510.gw.areanet.it
In the maildir section of configuration file I enabled just this:
maildir_copy_with_hardlinks = yes
Ciao, luigi
/ +--[Luigi Rosa]-- \
There are three possibilities: Pioneer's solar panel has turned away from the sun; there's a large meteor blocking transmission; or someone loaded Star Trek 3.2 into our video processor.
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFIxor/3kWu7Tfl6ZQRAnDHAJ9HAQwTmqqWYjBeqTjg2IQNpcuf3wCgl+lM 0hekHvqK2jBHDCfboe2pHEw= =4s3G -----END PGP SIGNATURE-----
On Tue, 2008-09-09 at 16:41 +0200, Luigi Rosa wrote:
Since 1.0 sometimes happens that in the 'cur' directory of a maildir handled by Dovecot I find a directory instead of a file, just like this:
drwx------ 2 mailvirtuale mailvirtuale 4096 Aug 25 15:11 1219669940.M113849P13510.gw.areanet.it:2,S drwx------ 2 mailvirtuale mailvirtuale 20480 Aug 25 09:49 :2,S
This is the first time I find a directory named as a file, all other times I found a directory named just ":2,S" .. Aug 25 15:12:27 gw dovecot: IMAP(dsimonutti@areanet.it): Fixed a duplicate: /var/spool/mail/areanet.it/dsimonutti/cur/:2, -> 1219669940.M113849P13510.gw.areanet.it
Dovecot most likely saw :2, and :2,S and renamed the :2, one.
I've no idea why you get directories there in the first place though. How often does the directory pop up there? I'd guess some kind of a misconfiguration.
What OS and filesystem are you using? Is it possible to create directories with empty names there? It really sounds like Dovecot sees an empty directory in new/ and then renames it to :2, in cur/. But what creates it into new/ in the first place, I've no idea.
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Timo Sirainen said the following on 09/09/08 16:45:
I've no idea why you get directories there in the first place though. How often does the directory pop up there? I'd guess some kind of a misconfiguration.
I got this kind of problem on at least 5 different servers: Fedora (before) and CentOS (now). With 1.0 the problem was occurring about 1 time a month, with next releases it happened very rarely (say, once every 4 months).
What OS and filesystem are you using?
CentOS, file system ext3. Dovecot compiled with
./configure --with-shadow --with-pam --with-ssl=openssl --with-pop3d
- --disable-ipv6 --sysconfdir=/etc --localstatedir=/var --with-mysql
(but happened also in a configuration without '--with-mysql')
What OS and filesystem are you using? Is it possible to create directories with empty names there? It really sounds like Dovecot sees an empty directory in new/ and then renames it to :2, in cur/. But what creates it into new/ in the first place
The MTA is Postfix, latest version. I don't know if it is possible to create directory with empty names on ext3
I've no idea.
Neither have I. :) I never told about this issue because I never had enough data to describe it. Mybe this happened to someone else?
Ciao, luigi
/ +--[Luigi Rosa]-- \
We're talking about an OS with commands like chown, awk, and grep here and where "zombie children floating in the pipe" is a legitimate description of an error state. --Bruce Bethke, "Headcrash" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFIxo2a3kWu7Tfl6ZQRAnrcAJ9fH984kl4TF29T8g/uJO24zNcnhACfbM/F sN3CRKmq1zyA/1eB8RFMMHs= =8YM3 -----END PGP SIGNATURE-----
participants (2)
-
Luigi Rosa
-
Timo Sirainen