Author Topic: "An error ocurred while saving" Sending / deleting email.  (Read 9265 times)

Offline om@r

  • Newbie
  • *
  • Posts: 4
"An error ocurred while saving" Sending / deleting email.
« 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?

Offline daashag

  • Full Member
  • ***
  • Posts: 198
Re: "An error ocurred while saving" Sending / deleting email.
« Reply #1 on: January 05, 2007, 02:06:18 PM »
Look at your smtp settings in the main.inc.php

Offline om@r

  • Newbie
  • *
  • Posts: 4
Re: "An error ocurred while saving" Sending / deleting email.
« Reply #2 on: January 05, 2007, 03:11:52 PM »
i'm using the smtp server of my isp to send mail, is that the problem?

Offline daashag

  • Full Member
  • ***
  • Posts: 198
Re: "An error ocurred while saving" Sending / deleting email.
« Reply #3 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

Offline om@r

  • Newbie
  • *
  • Posts: 4
Re: "An error ocurred while saving" Sending / deleting email.
« Reply #4 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.

Offline daashag

  • Full Member
  • ***
  • Posts: 198
Re: "An error ocurred while saving" Sending / deleting email.
« Reply #5 on: January 05, 2007, 04:07:43 PM »
Have you checked your error logs?

Offline om@r

  • Newbie
  • *
  • Posts: 4
Re: "An error ocurred while saving" Sending / deleting email.
« Reply #6 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

Offline daashag

  • Full Member
  • ***
  • Posts: 198
Re: "An error ocurred while saving" Sending / deleting email.
« Reply #7 on: January 05, 2007, 04:20:27 PM »
Are you subscribed to your folders?

Offline elsevir

  • Newbie
  • *
  • Posts: 1
Re: "An error ocurred while saving" Sending / deleting email.
« Reply #8 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.

Offline daashag

  • Full Member
  • ***
  • Posts: 198
Re: "An error ocurred while saving" Sending / deleting email.
« Reply #9 on: January 06, 2007, 06:57:54 PM »
Personal settings > folders

Offline djm

  • Newbie
  • *
  • Posts: 4
does vpopmail work with roundcube?
« Reply #10 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.

Offline nanohest

  • Newbie
  • *
  • Posts: 2
Re: "An error ocurred while saving" Sending / deleting email.
« Reply #11 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

Offline djm

  • Newbie
  • *
  • Posts: 4
"An error ocurred while saving" Sending / deleting email.
« Reply #12 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.

Offline nanohest

  • Newbie
  • *
  • Posts: 2
"An error ocurred while saving" Sending / deleting email.
« Reply #13 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

Offline djm

  • Newbie
  • *
  • Posts: 4
"An error ocurred while saving" Sending / deleting email.
« Reply #14 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: