Dovecot + roundcube: UID COPY: Mailbox doesn’t exist: Trash
This issue can be fix by create a new imap folder: “Trash” then you will be able to delete mail from RoundCube.
As far as I know, VestaCP has this issued because they still using Dovecot 2.0.9 and it’s get fix after version 2.1.0
So to work around that, you may need to use the plugin (add some code to Dovecot).
# Dovecot automatically create a folders for us 🙂 # vim /etc/dovecot/conf.d/20-imap.conf mail_plugins = $mail_plugins autocreate # At the end of file paste following code plugin { autocreate = Trash autocreate2 = Junk autocreate3 = Drafts autocreate4 = Sent autosubscribe = Trash autosubscribe2 = Junk autosubscribe3 = Drafts autosubscribe4 = Sent }
Rapid Fix in single line:
if [[ `/usr/sbin/dovecot --version` < 2.1 ]]; then mv /etc/dovecot/conf.d/20-imap.conf /etc/dovecot/conf.d/20-imap.conf.bak && wget -O /etc/dovecot/conf.d/20-imap.conf https://www.dropbox.com/s/7xh7tu9xz5t82px/20-imap.conf?dl=1 && chmod 755 /etc/dovecot/conf.d/20-imap.conf && /etc/init.d/dovecot restart && /etc/init.d/dovecot status else echo "no need"; fi
Ref1: https://gist.github.com/xdobro4/e1436f79f3707917e57b
Ref2: http://wiki2.dovecot.org/MailboxSettings