Roundcube Community Forum

Release Support => Pending Issues => Topic started by: om@r on January 05, 2007, 01:39:02 PM

Title: "An error ocurred while saving" Sending / deleting email.
Post by: om@r on January 05, 2007, 01:39:02 PM
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?
Title: Re: "An error ocurred while saving" Sending / deleting email.
Post by: daashag on January 05, 2007, 02:06:18 PM
Look at your smtp settings in the main.inc.php
Title: Re: "An error ocurred while saving" Sending / deleting email.
Post by: om@r on January 05, 2007, 03:11:52 PM
i'm using the smtp server of my isp to send mail, is that the problem?
Title: Re: "An error ocurred while saving" Sending / deleting email.
Post by: daashag on January 05, 2007, 03:39:49 PM
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
Title: Re: "An error ocurred while saving" Sending / deleting email.
Post by: om@r on January 05, 2007, 03:57:17 PM
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.
Title: Re: "An error ocurred while saving" Sending / deleting email.
Post by: daashag on January 05, 2007, 04:07:43 PM
Have you checked your error logs?
Title: Re: "An error ocurred while saving" Sending / deleting email.
Post by: om@r on January 05, 2007, 04:15:46 PM
IMAP Error: Could not save message in Sent in /var/www/html/roundcube/program/steps/mail/sendmail.inc on line 0
Title: Re: "An error ocurred while saving" Sending / deleting email.
Post by: daashag on January 05, 2007, 04:20:27 PM
Are you subscribed to your folders?
Title: Re: "An error ocurred while saving" Sending / deleting email.
Post by: elsevir on January 06, 2007, 01:19:48 PM
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.
Title: Re: "An error ocurred while saving" Sending / deleting email.
Post by: daashag on January 06, 2007, 06:57:54 PM
Personal settings > folders
Title: does vpopmail work with roundcube?
Post by: djm on May 30, 2008, 08:18:15 PM
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.
Title: Re: "An error ocurred while saving" Sending / deleting email.
Post by: nanohest on May 31, 2008, 02:54:53 PM
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
Title: "An error ocurred while saving" Sending / deleting email.
Post by: djm on May 31, 2008, 03:01:17 PM
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.
Title: "An error ocurred while saving" Sending / deleting email.
Post by: nanohest on May 31, 2008, 03:13:29 PM
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
Title: "An error ocurred while saving" Sending / deleting email.
Post by: djm on May 31, 2008, 03:27:14 PM
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:
Title: "An error ocurred while saving" Sending / deleting email.
Post by: tuxi on July 20, 2008, 12:52:46 AM
Hi everyone !

I'm afraid I have the same problem as reported here ...

I got 2 servers : 1st is the mail server (qmail + vpopmail/mysql, with squirrelmail working fine) running fedora and 2nd is a web server (hosting roundcube 0.2 alpha 1) running debian 4.0 r3.

I can authenticate with RC on the mail server using imap with TLS and also send messages through smtp with TLS (again) ... emails ARE SENT, but not "saved" (even if I force RC not to save sent messages, with the $rcmail_config['smtp_log'] var set to FALSE ... The log trace report :

Quote
IMAP Error: Could not save message in Sent in /web/www/rc/program/steps/mail/sendmail.inc on line 0

Plus, squirrelmail can send and receive emails without having any errors like this ...

I also added my ISP's imap server to test RC with it (they are already using RC on their own servers at http://imp.free.fr/rc (http://imp.free.fr/rc), and I can send/receive mails without any error (I think Free is using postfix and/or qmail for their mail functionality, so there is no reason it might not work for us - or they have experienced that problem and managed to solve it, can a technican read this post ;D )

I don't care if RC doesn't save my mails, I just want it to send and read them. Is it possible to bypass this saving function ?

If someone wants to test, I can create a temp. account. I DO want to use roundcube, not squirrelmail which themes are quite too much ... simple ?

Thanks !

edit : the solution explained just above doesn't fix the problem for me :(