Vesta Control Panel - Forum

Community Forum

Skip to content

Advanced search
  • Quick links
    • Main site
    • Github repo
    • Google Search
  • FAQ
  • Login
  • Register
  • Board index Main Section Mail Server
  • Search

[SOLVED] Problem Roundcube doesn't have default folders

Questions regarding the Mail Server
Dovecot, Exim, RoundCube
Post Reply
  • Print view
Advanced search
14 posts
  • 1
  • 2
  • Next
array
Posts: 8
Joined: Tue Mar 25, 2014 12:34 pm

[SOLVED] Problem Roundcube doesn't have default folders
  • Quote

Post by array » Wed Mar 26, 2014 3:28 pm

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.
Last edited by array on Tue Apr 22, 2014 7:21 am, edited 1 time in total.
Top

mephivio
Posts: 198
Joined: Thu Mar 27, 2014 7:35 am

Os: Debian 8x
Web: nginx + php-fpm
Re: Problem Roundcube doesn't have default folders for trash
  • Quote

Post by mephivio » Tue Apr 01, 2014 8:41 pm

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 ?
Top

array
Posts: 8
Joined: Tue Mar 25, 2014 12:34 pm

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

Post by array » Mon Apr 07, 2014 4:22 pm

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.
Top

MyKEcz
Posts: 18
Joined: Fri Apr 04, 2014 8:30 am

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

Post by MyKEcz » Mon Apr 07, 2014 6:33 pm

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.
Top

MyKEcz
Posts: 18
Joined: Fri Apr 04, 2014 8:30 am

Solution
  • Quote

Post by MyKEcz » Tue Apr 08, 2014 4:38 pm

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.
Last edited by MyKEcz on Wed Apr 09, 2014 7:38 am, edited 2 times in total.
Top

nightstryke
Posts: 83
Joined: Tue Jan 14, 2014 6:43 am

Re: Solution
  • Quote

Post by nightstryke » Tue Apr 08, 2014 8:44 pm

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
}
Top

MyKEcz
Posts: 18
Joined: Fri Apr 04, 2014 8:30 am

Re: Solution
  • Quote

Post by MyKEcz » Wed Apr 09, 2014 7:39 am

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.
Top

darz82
Posts: 1
Joined: Sat Apr 12, 2014 12:37 pm

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

Post by darz82 » Sat Apr 12, 2014 12:40 pm

You could also try this roundcube plugin..

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

nightstryke
Posts: 83
Joined: Tue Jan 14, 2014 6:43 am

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

Post by nightstryke » Wed Apr 16, 2014 12:09 am

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.
Top

array
Posts: 8
Joined: Tue Mar 25, 2014 12:34 pm

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

Post by array » Wed Apr 16, 2014 5:07 pm

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
Top


Post Reply
  • Print view

14 posts
  • 1
  • 2
  • Next

Return to “Mail Server”



  • Board index
  • All times are UTC
  • Delete all board cookies
  • The team
Powered by phpBB® Forum Software © phpBB Limited
*Original Author: Brad Veryard
*Updated to 3.2 by MannixMD
 

 

cron

Login  •  Register

I forgot my password