Roundcube Community Forum

 

"An error ocurred while saving" Sending / deleting email.

Started by om@r, January 05, 2007, 01:39:02 PM

Previous topic - Next topic

om@r

i've just installed roundcube but i'm having a problem i just cant figure out.

My setup:

CentOS / qmail / courier-imap /

I can login with roundcube, and the folders and emails are displayed. But if I want to send an email i get an error

"An error ocurred while saving"

The email does get send, im just not seeing it in the sent folder. The IMAP root path is empty, and the other folders are default, i didn't change them. This is the layout of my email dir

/home/vpopmail/domains/bliep.com/user/Maildir
/home/vpopmail/domains/bliep.com/user/Maildir/cur
/home/vpopmail/domains/bliep.com/user/Maildir/new
/home/vpopmail/domains/bliep.com/user/Maildir/tmp
/home/vpopmail/domains/bliep.com/user/Maildir/.Drafts
/home/vpopmail/domains/bliep.com/user/Maildir/.Drafts/cur
/home/vpopmail/domains/bliep.com/user/Maildir/.Drafts/new
/home/vpopmail/domains/bliep.com/user/Maildir/.Drafts/tmp
/home/vpopmail/domains/bliep.com/user/Maildir/.Sent/
/home/vpopmail/domains/bliep.com/user/Maildir/.Sent/cur
/home/vpopmail/domains/bliep.com/user/Maildir/.Sent/new
/home/vpopmail/domains/bliep.com/user/Maildir/.Sent/tmp

and so on. If I use a mail client everything is fine, so i guess it has something to do with permission?

daashag


om@r

i'm using the smtp server of my isp to send mail, is that the problem?

daashag

Shouldn't be as long as RC can authenticate to a smtp server. If your smtp server is not on the server as RC. You need to set that up in the main.inc.php

om@r

RC can authenticate on the remote smtp server, when i send a mail via RC, i do recieve it on my external mail account (complete other domain), but RC just can't save a copy of the email in the sent folder.

daashag


om@r

IMAP Error: Could not save message in Sent in /var/www/html/roundcube/program/steps/mail/sendmail.inc on line 0

daashag


elsevir

howto suscribe to the folders ?

i use multi domain on a single vhost.
On the main domain 'domain1.org' .. it works fine .. with 'user1@domain1.org'
but when i use an user account 'user1@domain2.net' ... i get the error message .. but the mail is send. (i check it on the receive email account.

daashag


djm

I'm testing roundcube out on an old machine with an existing "qmail toaster" install from way back which uses vpopmail, squirrelmail, et al.  

I think the problem is that all of the virtual domains and user directories which contain all of the mail folders under the /home/vpopmail/domains/ directory structure is all 600-mode (vpopmail.vchkpw owned) and roundcube is running on my web server which is running as apache.

The thing I haven't figured out yet is why squirrelmail, also running on my webserver (apache) has no problem writing to the Trash and Sent folders under /home/vpopmail/domains.

When I/we figure that one out, then I assume we'll have the problem solved.

nanohest

I'm currently working with the same problem.
When I make a different submaildir for sent mail, like:
 $ maildirmake -f Sentmail Maildir/

And change:
 $rcmail_config['sent_mbox'] = 'Sent';
to:
 $rcmail_config['sent_mbox'] = 'Sentmail';
In main.inc.php

Then sending mail works just fine. But it does seem very strange though...
It should probably be reported as a bug.

By the way, my system is:
Debian Etch, postfix, courier imap

djm

Yes I/we need to understand how/why squirrelmail is able to write to these vpopmail dirs as user vpopmail and then make RoundCube do the same.  I'm hoping some other squirrelmail convert is on here and can provide the guidance on what to do here.

nanohest

I found a solution in this thread: http://www.roundcubeforum.net/showthread.php?t=3071

Set 'protect default folders' to false:
 $rcmail_config['protect_default_folders'] = FALSE;
in main.inc.php

djm

That solution is equivalent to deleting the folders in the filesystem and recreating them with permissions that the web server (and by extension roundcube) can access.

This may then affect other clients like squirrelmail's ability to access these folders.  I don't really want to mess with the current config.  I just want to add roundcube to the current vpopmail/squirrelmail setup I have so users have the option of using whatever client they want.  I had thought about doing something similar under the vpopmail/domain directory structure for those particular folders (Sent, Trash) - basically just doing a chmod 660 (from the current 600 perms) and then moving system groups around to allow writes to those files from both the vpopmail user and apache users, however, that seems hackish and I'm holding out for the correct solution.

C'mon, nobody on these forums or author(s) of RoundCube have encountered this before?  There must be ex qmail-toaster squirrelmail users here that are testing/migrating to roundcube and know what the issue is?  I'll keep digging on my end, but don't make me reinvent the wheel. :)  I'm sure this has been solved before the right way. :confused: