[Dovecot] cannot delete emails in inbox
I am working on upgrading our current squirrelmail and replace uw-imap with dovecot. I have what looks like a successful installation. My current setup is: Centos 5.2 sendmail 8.13.8 dovecot 1.1.17 (imap) squirrelmail 1.4.17
I can send and receive email fine. However when I try to delete an email in my Inbox, it doesn't get deleted. It only sends a copy to the Trash folder. But the email is still in the Inbox. I can purge and delete the contents in my Trash and Sent folder, no problem. I am not sure if this is a Squirrelmail issue or a Dovecot issue. Please advice. Thank you -- Jane
JANE CUA wrote:
dovecot 1.1.17 (imap) squirrelmail 1.4.17
I can send and receive email fine. However when I try to delete an email in my Inbox, it doesn't get deleted. It only sends a copy to the Trash folder. But the email is still in the Inbox. I can purge and delete the contents in my Trash and Sent folder, no problem. I am not sure if this is a Squirrelmail issue or a Dovecot issue.
Do you have auto-expunge turned on in your Squirrelmail config?
JANE CUA wrote:
I am working on upgrading our current squirrelmail and replace uw-imap with dovecot. I have what looks like a successful installation. My current setup is: Centos 5.2 sendmail 8.13.8 dovecot 1.1.17 (imap) squirrelmail 1.4.17
I can send and receive email fine. However when I try to delete an email in my Inbox, it doesn't get deleted. It only sends a copy to the Trash folder. But the email is still in the Inbox. I can purge and delete the contents in my Trash and Sent folder, no problem. I am not sure if this is a Squirrelmail issue or a Dovecot issue. Please advice. Thank you -- Jane
What is the mtime of your dovecot.index.cache file? Is it significantly older than the last new message?
---Jack
On Jan 4, 2009, at 12:33 AM, JANE CUA wrote:
I am working on upgrading our current squirrelmail and replace uw- imap with dovecot. I have what looks like a successful
installation. My current setup is: Centos 5.2 sendmail 8.13.8 dovecot 1.1.17 (imap) squirrelmail 1.4.17I can send and receive email fine. However when I try to delete an
email in my Inbox, it doesn't get deleted. It only sends a copy to
the Trash folder. But the email is still in the Inbox. I can purge
and delete the contents in my Trash and Sent folder, no problem. I
am not sure if this is a Squirrelmail issue or a Dovecot issue.
Please advice. Thank you -- Jane
Is this with mbox? Have you looked at the logs if there are error
mesages (http://wiki.dovecot.org/Logging)? Sounds like INBOX is read-
only because it can't create a dotlock file to /var/mail. http://wiki.dovecot.org/MailboxFormat/mbox
Hi,
I found this in my dovecot.log dovecot: Jan 05 15:13:42 Error: IMAP(jane): file_lock_dotlock() failed with mbox file /var/spool/mail/jane: Permission denied dovecot: Jan 05 15:13:42 Error: IMAP(jane): file_lock_dotlock() failed with mbox file /var/spool/mail/jane: Permission denied
My current /var/spool/mail is -rw-rw---- 1 jane mail Jan 5 15:51 /var/spool/mail/jane
from this reference http://wiki.dovecot.org/MailboxFormat/mbox I've added mail_privileged_group = mail I also did the chmod +t /var/spool/mail
Restarted dovecot. I still get the same problem?
What is the mtime of your dovecot.index.cache file? Is it significantly older than the last new message? --Where can I find this? I am new to dovecot.
Rdgs, Jane
----- Original Message ----- From: Timo Sirainen <tss@iki.fi> Date: Sunday, January 4, 2009 10:00 am Subject: Re: [Dovecot] cannot delete emails in inbox To: Dovecot Mailing List <dovecot@dovecot.org>
On Jan 4, 2009, at 12:33 AM, JANE CUA wrote:
I am working on upgrading our current squirrelmail and replace uw- imap with dovecot. I have what looks like a successful installation. My current setup is: Centos 5.2 sendmail 8.13.8 dovecot 1.1.17 (imap) squirrelmail 1.4.17
I can send and receive email fine. However when I try to delete an email in my Inbox, it doesn't get deleted. It only sends a copy to the Trash folder. But the email is still in the Inbox. I can purge and delete the contents in my Trash and Sent folder, no problem. I am not sure if this is a Squirrelmail issue or a Dovecot issue. Please advice. Thank you -- Jane
Is this with mbox? Have you looked at the logs if there are error mesages (http://wiki.dovecot.org/Logging)? Sounds like INBOX is read- only because it can't create a dotlock file to /var/mail. http://wiki.dovecot.org/MailboxFormat/mbox
On Jan 5, 2009, at 7:06 PM, JANE CUA wrote:
My current /var/spool/mail is -rw-rw---- 1 jane mail Jan 5 15:51 /var/spool/mail/jane
What about the /var/spool/mail directory's permissions?
from this reference http://wiki.dovecot.org/MailboxFormat/mbox I've
added mail_privileged_group = mail
I think this should have helped, but only if the /var/spool/mail
directory's group is "mail".
I also did the chmod +t /var/spool/mail
This alone doesn't really do anything. But if the group thing doesn't
seem to work you can at least do:
chmod 01777 /var/spool/mail
Hi, thank you for the speedy reply... original /var/spool/mail permission:
drwxr-xr-x 3 root root 12288 Jan 5 14:31 mail
change to:
drwxr-xr-x 3 root mail 12288 Jan 5 14:31 mail
That didn't help...
then changed to:
drwxrwxr-x 3 root mail 12288 Jan 5 14:31 mail It works now. Will I have a security issue here? Please advice..
On Jan 5, 2009, at 7:06 PM, JANE CUA wrote
My current /var/spool/mail is -rw-rw---- 1 jane mail Jan 5 15:51 /var/spool/mail/jane
What about the /var/spool/mail directory's permissions?
from this reference http://wiki.dovecot.org/MailboxFormat/mbox I've added mail_privileged_group = mail
I think this should have helped, but only if the /var/spool/mail directory's group is "mail".
I also did the chmod +t /var/spool/mail
This alone doesn't really do anything. But if the group thing doesn't seem to work you can at least do:
chmod 01777 /var/spool/mail
Thank you, my setup seems to be working properly now. - Jane
On Mon, 2009-01-05 at 22:27 -0800, JANE CUA wrote:
drwxrwxr-x 3 root mail 12288 Jan 5 14:31 mail It works now. Will I have a security issue here? Please advice..
No. This is the way /var/mail permissions are usually set up.
participants (4)
-
Darren Pilgrim
-
Jack Stewart
-
JANE CUA
-
Timo Sirainen