[Dovecot] problem with some mailboxes (failed: Is a directory)
I have this problem with some mailboxes (actually Maildirs) on my system. After some user's activity there is following information in dovecot logs:
Jan 29 16:24:28 mailserv dovecot: IMAP(username): unlink(/var/spool/mail/imap/user/username/Maildir/cur/Sent:2,ST) failed: Is a directory
User can not connect to his account neither via POP3 nor IMAP. There is one workaround I know which is:
rm /var/spool/mail/imap/user/username/Maildir/dovecot.index*
But after some time (some activity of user) the problem comes back.
Mikie
mikie@x.org.pl ha scritto:
I have this problem with some mailboxes (actually Maildirs) on my system. After some user's activity there is following information in dovecot logs:
Jan 29 16:24:28 mailserv dovecot: IMAP(username): unlink(/var/spool/mail/imap/user/username/Maildir/cur/Sent:2,ST) failed: Is a directory
User can not connect to his account neither via POP3 nor IMAP. There is one workaround I know which is:
rm /var/spool/mail/imap/user/username/Maildir/dovecot.index*
But after some time (some activity of user) the problem comes back.
Mikie
Please post the configuration of dovecot (dovecot -n) for more information of your problem.
Cordially,
Claudio.
--
Claudio Prono Systems Development @ PSS Srl, Divisione Implementazione Sistemi Via San Bernardino, 17 - 10137 Torino (TO) - IT Tel +39-011.32.72.100 Fax +39-011.32.46.497 PGP Fingerprint: 75C2 4049 E23D 2FBF A65F 40DB EA5C 11AC C2B0 3647 Disclaimer: http://atpss.net/disclaimer
I have this problem with some mailboxes (actually Maildirs) on my system. After some user's activity there is following information in dovecot logs:
Jan 29 16:24:28 mailserv dovecot: IMAP(username): unlink(/var/spool/mail/imap/user/username/Maildir/cur/Sent:2,ST) failed: Is a directory
User can not connect to his account neither via POP3 nor IMAP. There is one workaround I know which is:
rm /var/spool/mail/imap/user/username/Maildir/dovecot.index*
But after some time (some activity of user) the problem comes back.
Mikie
Please post the configuration of dovecot (dovecot -n) for more information of your problem.
# 1.0.15: /etc/dovecot/dovecot.conf log_path: /var/log/dovecot.log info_log_path: /var/log/dovecot-info.log log_timestamp: %Y-%m-%d %H:%M:%S protocols: imap imaps pop3 pop3s ssl_cert_file: /etc/apache2/ssl/server.crt ssl_key_file: /etc/apache2/ssl/server.key disable_plaintext_auth: no login_dir: /var/run/dovecot/login login_executable(default): /usr/lib/dovecot/imap-login login_executable(imap): /usr/lib/dovecot/imap-login login_executable(pop3): /usr/lib/dovecot/pop3-login first_valid_uid: 100 first_valid_gid: 100 default_mail_env: maildir:%h mail_location: maildir:%h mail_debug: yes mail_executable(default): /usr/lib/dovecot/imap mail_executable(imap): /usr/lib/dovecot/imap mail_executable(pop3): /usr/lib/dovecot/pop3 mail_plugin_dir(default): /usr/lib/dovecot/modules/imap mail_plugin_dir(imap): /usr/lib/dovecot/modules/imap mail_plugin_dir(pop3): /usr/lib/dovecot/modules/pop3 pop3_uidl_format(default): pop3_uidl_format(imap): pop3_uidl_format(pop3): %f auth default_with_listener: mechanisms: plain login verbose: yes passdb: driver: sql args: /etc/dovecot/dovecot-sql.conf userdb: driver: sql args: /etc/dovecot/dovecot-sql.conf socket: type: listen client: path: /var/spool/postfix/private/auth mode: 432 user: postfix group: postfix master: path: /var/run/dovecot-auth-master mode: 384 user: mailsystem auth default: user: mailsystem verbose: yes passdb: driver: sql args: /etc/dovecot/dovecot-sql.conf userdb: driver: sql args: /etc/dovecot/dovecot-sql.conf
On Jan 29, 2009, at 11:52 AM, mikie@x.org.pl wrote:
I have this problem with some mailboxes (actually Maildirs) on my
system. After some user's activity there is following information in dovecot
logs:Jan 29 16:24:28 mailserv dovecot: IMAP(username): unlink(/var/spool/mail/imap/user/username/Maildir/cur/Sent:2,ST)
failed: Is a directory
Something has created a directory called Sent inside Maldir/cur or
Maildir/new. Dovecot treats it as a message and so it has added \Seen
and \Deleted flags to it. Dovecot didn't create the Sent directory,
look at other software/scripts you have.
There is one workaround I know which is:
rm /var/spool/mail/imap/user/username/Maildir/dovecot.index*
Delete the Sent* directory.
Jan 29 16:24:28 mailserv dovecot: IMAP(username): unlink(/var/spool/mail/imap/user/username/Maildir/cur/Sent:2,ST) failed: Is a directory Something has created a directory called Sent inside Maldir/cur or Maildir/new. Dovecot treats it as a message and so it has added \Seen and \Deleted flags to it. Dovecot didn't create the Sent directory, look at other software/scripts you have.
Indeed.
There is one workaround I know which is: rm /var/spool/mail/imap/user/username/Maildir/dovecot.index* Delete the Sent* directory.
Seems like there used to be any software or exadmin which created those directories. I can not find out the source of it. I'm thinking about deleting all those but I am wondering if Maildir specification does allow any subdirectories in new/cur/tmp?
Thanks a lot!
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On Fri, 30 Jan 2009, mikie@x.org.pl wrote:
Delete the Sent* directory.
Seems like there used to be any software or exadmin which created those directories. I can not find out the source of it. I'm thinking about deleting all those but I am wondering if Maildir specification does allow any subdirectories in new/cur/tmp?
No, therefore there must another program / script / cronjob / way.
"Sent" sounds like "Thunderbird" sent mailfolder. Does your users have direct access to the filesystem? Can the users access the "full filesystem" with IMAP? So one of them could use "~/Maildir/cur" as mail root in the mail client or something like that.
Bye,
Steffen Kaiser -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux)
iQEVAwUBSYL3X3WSIuGy1ktrAQKPRAgAg1n7WCYbOTgNBMnWjO00qsqAuzA0+xg6 r5brGGV5Uv7qnuvaqY/0MS80KJ7PMbWRd8J1ynQMpRTVm1JxawkS6LzblpYt56ne AvGNlvUbVVhmX/13+Jn+8TKAP9W1fsFpamo9KGHzc9W2Lg2A6h5HDopC+C9YmDnF KHPk6d7d9ZNyzXGPYhslzW/5NArUkOt+8WgJ1VzBhZGVIk+/wlZa8S8lMQn1rABD mInmoStNkAuZUDnw3jUz90GbUdfJcmqfuPmXwCj1UgTVtQzG79ppzJS4d8FjdYaz wuxc+u8UvcK3nNPnfQv3qLW19PpyOYr8K7HCo+zCavYcXBKpHtJGYw== =IpWH -----END PGP SIGNATURE-----
On Jan 30, 2009, at 5:24 AM, mikie@x.org.pl wrote:
There is one workaround I know which is: rm /var/spool/mail/imap/user/username/Maildir/dovecot.index* Delete the Sent* directory.
Seems like there used to be any software or exadmin which created
those directories. I can not find out the source of it. I'm thinking about deleting all those but I am wondering if Maildir specification does
allow any subdirectories in new/cur/tmp?
tmp/ doesn't matter, but everything in new/ and cur/ is supposed to be
a message, no directories.
participants (4)
-
Claudio Prono
-
mikie@x.org.pl
-
Steffen Kaiser
-
Timo Sirainen