Roundcube cannot delete mail

Hi people!

I recently installed roundcube on my server and when using the interface i cannot delete emails. It comes up saying cannot move file.

any ideas whats ups?

thanks
Ashley

Well, RoundCube should just be using the IMAP interface, so something may be awry with either Dovecot, or perhaps the permissions on the mail files themselves.

Do you see any errors in your mail log, either /var/log/maillog or /var/log/mail.log? How about in the procmail log, /var/log/procmail.log?

Also, I’d recommend checking the permissions on the various emails in question, by looking in $HOME/Maildir/cur, and making sure they’re owned by the user in question.

-Eric

To expand on the mail file permissions problem, when you create a virtual mail user, their mail files will be stored in a folder called “homes”, which is inside the home directory of the virtual server owner. Make sure all of the mail files are owned by the virtual mail user, and the group is owned by the user who owns the virtual server.

For example, this is one of my mail files with the domain changed for example purposes:

-rw------- 1 bob@example.com example 8617 Oct 5 21:35 1254796511.7114_0.server2.example.com:2,Sa

This is the data that has been logged in my mail.log. During this time period i tried to delete a message and I can’t see anything out of the ordinary here:
Oct 7 08:07:02 server dovecot: imap-login: Login: user=<ashley.domain>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, secured
Oct 7 08:07:02 server dovecot: IMAP(ashley.domain): Disconnected: Logged out
Oct 7 08:07:02 server dovecot: imap-login: Login: user=<ashley.domain>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, secured
Oct 7 08:07:02 server dovecot: IMAP(ashley.domain): Disconnected: Logged out
Oct 7 08:07:03 server dovecot: imap-login: Login: user=<ashley.domain>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, secured
Oct 7 08:07:03 server dovecot: IMAP(ashley.domain): Disconnected: Logged out
Oct 7 08:07:08 server dovecot: imap-login: Login: user=<ashley.domain>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, secured
Oct 7 08:07:08 server dovecot: IMAP(ashley.domain): Disconnected: Logged out
Oct 7 08:07:08 server dovecot: imap-login: Login: user=<ashley.domain>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, secured
Oct 7 08:07:08 server dovecot: IMAP(ashley.domain): Disconnected: Logged out
Oct 7 08:07:08 server dovecot: imap-login: Login: user=<ashley.domain>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, secured
Oct 7 08:07:08 server dovecot: IMAP(ashley.domain): Disconnected: Logged out
Oct 7 08:08:04 server dovecot: imap-login: Login: user=<ashley.domain>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, secured
Oct 7 08:08:04 server dovecot: IMAP(ashley.domain): Disconnected: Logged out
Oct 7 08:09:04 server dovecot: imap-login: Login: user=<ashley.domain>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, secured
Oct 7 08:09:04 server dovecot: IMAP(ashley.domain): Disconnected: Logged out

This is the output from a ls -l command in the /domain/homes/ashley/Maildir/cur (there are many files, but all have the same output bar the end bit:
-re------- 1 ashley.domain domain 4111 Oct 7 06:45 1254894337.12463_0.subserver.domain.com:2,S

It would seem to me (not an expert) that the permissions are all ok.

What do you think?

Thanks
Ashley

Well, assuming those permissions say “-rw-------” rather than " -re-------", that part looks good :slight_smile:

Can you use clients other than RoundCube to move/delete messages?

Ie, is this just a RoundCube issue, or are you seeing trouble with any client you use?

-Eric

ah, yes, they are “rw” and not “re” :stuck_out_tongue:

The only other client i have tried using is usermin, and that deletes the message.

Hrm, that may not be a good test, as it’s hard to say whether Usermin is accessing the files directly, or going through Dovecot as RoundCube is.

Have you had a chance to test something like Outlook or Thunderbird, configured to use IMAP?

It’d be great to know whether or not that works – then we’ll know whether we’re dealing with a Dovecot problem, or, well, something else :slight_smile:

-Eric

I have the same problem, but I tested also with outlook & mail, and there there was no problem. So it really is a roundcube problem…

same problem in my other post. i did 1 new user and everything was good.