Page 1 of 2

[SOLVED] Problem Roundcube doesn't have default folders

Posted: Wed Mar 26, 2014 3:28 pm
by array
My "out of the box" installation of Vesta works flawlesly but I've found something weird and suposse to be easy to fix. Newly created inboxes doesn't have the default folders appropieate, only inbox and sent, but not trash and others like de bin.
Is any way to do it automatically, because it's pretty hard to create and assign to special folders each address.

Thanks in advance.

Re: Problem Roundcube doesn't have default folders for trash

Posted: Tue Apr 01, 2014 8:41 pm
by mephivio
i have th same problem
i fix it in creating manualy the differents folders Trash, Send etc ...
but i suppose there is a more simple solution ?

Re: Problem Roundcube doesn't have default folders for trash

Posted: Mon Apr 07, 2014 4:22 pm
by array
Hi. I'm pretty sure that might be another way to do this. And even do it automatically, but haven't found it yet.
Hope someone could help us. I'm also doing it manually at this moment.

Re: Problem Roundcube doesn't have default folders for trash

Posted: Mon Apr 07, 2014 6:33 pm
by MyKEcz
You can create trash without ssh access. Just go to roundcube and login to your mail. In lower left corner click on "setting icon" and Administer folders. Then again in lower left corner click on "plus icon", name of a folder set to "Trash" and save it. From now trash appear in mail account. Maybe I can make automated solution unil VestaDevs fix it, but now I don't have much time to do this. Report this problem to https://bugs.vestacp.com.

Solution

Posted: Tue Apr 08, 2014 4:38 pm
by MyKEcz
Solution:

After deeper research I found native solution and deprecated.

To get Dovecot version:
# dovecot --version
Native solution - Dovecot 2.1+
# nano /etc/dovecot/dovecot.conf
In default looks dovecot.conf like this:
protocols = imap pop3
listen = *, ::
base_dir = /var/run/dovecot/
!include conf.d/*.conf
Below !include... add this:

Code: Select all

namespace {
    type = private
    separator = /
    prefix =
    inbox = yes

    mailbox Sent {
        auto = subscribe
        special_use = \Sent
    }
    mailbox Drafts {
        auto = subscribe
        special_use = \Drafts
    }
    mailbox Trash {
        auto = subscribe
        special_use = \Trash
    }
    mailbox Junk {
        auto = subscribe
        special_use = \Junk
    }
}
Restart service
# service dovecot restart
Deprecated solution - Dovecot 2.0 and below
# nano /etc/dovecot/conf.d/20-imap.conf
Replace /etc/dovecot/conf.d/20-imap.conf by this:

Code: Select all

protocol imap {
mail_plugins = $mail_plugins autocreate
}

plugin {
  autocreate = Trash
  autocreate2 = Spam
  autocreate3 = Sent
  autocreate4 = Drafts
  #autocreate5 = Custom
  autosubscribe = Trash
  autosubscribe2 = Spam
  autosubscribe3 = Sent
  autosubscribe4 = Drafts
  #autosubscribe5 = Custom
}
Restart service
# service dovecot restart
Now folders will be automatically created for new users.

Re: Solution

Posted: Tue Apr 08, 2014 8:44 pm
by nightstryke
You should really change your plugin code to this, even though it may create the Drafts folder for you when you create an email, but you can't always take that chance and should set plan for it ahead of time.

Code: Select all

plugin {
  autocreate = Trash
  autocreate2 = Spam
  autocreate3 = Sent
  autocreate4 = Drafts
  autosubscribe = Trash
  autosubscribe2 = Spam
  autosubscribe3 = Sent
  autosubscribe4 = Drafts
}

Re: Solution

Posted: Wed Apr 09, 2014 7:39 am
by MyKEcz
nightstryke wrote:You should really change your plugin code to this, even though it may create the Drafts folder for you when you create an email, but you can't always take that chance and should set plan for it ahead of time.

Code: Select all

plugin {
  autocreate = Trash
  autocreate2 = Spam
  autocreate3 = Sent
  autocreate4 = Drafts
  autosubscribe = Trash
  autosubscribe2 = Spam
  autosubscribe3 = Sent
  autosubscribe4 = Drafts
}
I found new solution check it out and try it above.

Re: Problem Roundcube doesn't have default folders for trash

Posted: Sat Apr 12, 2014 12:40 pm
by darz82
You could also try this roundcube plugin..

http://dummyluck.com/page/roundcube_plu ... osubscribe

Re: Problem Roundcube doesn't have default folders for trash

Posted: Wed Apr 16, 2014 12:09 am
by nightstryke
2.1 Solution does not work

Code: Select all

doveconf: Fatal: Error in configuration file /etc/dovecot/dovecot.conf: protocols: Unknown protocol: listen
[....] Restarting IMAP/POP3 mail server: dovecotdoveconf: Fatal: Error in configuration file /etc/dovecot/dovecot.conf: protocols: Unknown protocol: listen
 failed!

Edit: I was having some problems getting this working, turned out to be a formatting issue, disregard.

Re: Problem Roundcube doesn't have default folders for trash

Posted: Wed Apr 16, 2014 5:07 pm
by array
Hi.
Tried de 2.0 solution but doesn't work for me.
At least I cannot open webmail "failed conneciton with IMAP", restoring the 20-imap.conf file reactivates access to webmail.

any suggestion? I've tried several times to check spelling correctly but can't make it work.

Thanks