Dovecot IMAP separator

I was trying to change default Dovecot separator from . to / but I failed! Not sure what I was doing wrong?

I understand that folder hierarchy cannot include slashes.

All I want is to see / in IMAP and be able to use Rouncudemail.

Could you please help me to find out my problem so I could use / as hierarchy separator?




Howdy -- we don't recommend changing the folder hierarchy separator. Doing so can cause unexpected problems.

If you'd really like to try changing that, what you would need to do is edit the Dovecot namespace settings.

You can read about that, including the configurable separator character, here:

You see example settings in this file:

you do so in /etc/dovecot/conf.d/10-mail.conf.

Note though that we've never tried changing the namespace separator before, and that's unfortunately not something we can support. But if you'd like to try changing that, the above file is where you would do that :-)

Ilia's picture
Submitted by Ilia on Fri, 05/03/2013 - 04:28

I have tried that and before it didn't work BUT now as I tried again all is fine!! ;) I just applied the following namespace and in IMAP clients, including Roundcubemail all works like charm.

namespace {
  type = private
  separator = /
  prefix =
  location = maildir:~/Maildir:INDEX=/var/lib/dovecot-virtualmin/index/%u:CONTROL=/var/lib/dovecot-virtualmin/control/%u
  inbox = yes
  hidden = no
  list = yes
  subscriptions = yes

I can't figure out how/where do I change the name of the inbox? By default it's named with capital letters, e.g.: "INBOX" and I would like it to be just "Inbox"? How to do it?

EDITED: And one more: How to stop 143 port only?

Unfortunately, I'm not sure that changing the INBOX name is possible.

I reviewed the Dovecot documentation, as well as the IMAP RFC specification, and I don't see a way to accomplish that.

What I did find though is this text in the IMAP RFC documentation:

mailbox         = "INBOX" / astring
                    ; INBOX is case-insensitive.  All case variants of
                    ; INBOX (e.g., "iNbOx") MUST be interpreted as INBOX
                    ; not as an astring.  An astring which consists of
                    ; the case-insensitive sequence "I" "N" "B" "O" "X"
                    ; is considered to be INBOX and not an astring.

That is, the IMAP specification says that the name "INBOX" must always be in all caps. Even though it can be referred to in mixed case, it will always be interpreted as caps.

Ilia's picture
Submitted by Ilia on Fri, 05/03/2013 - 08:51

Thank you very much for you help!

One more question: is there a way to disable 143 port while keeping 993?


Take a look in /etc/dovecot/conf.d/10-master.conf, you should be able to disable the "imap" listener, and just leave "imaps".

Ilia's picture
Submitted by Ilia on Fri, 05/03/2013 - 09:29

Ahh! Now I see! By default the lines are commented out but if you set:

port = 0

then it's all fine!

Thanks, Andrey

Ilia's picture
Submitted by Ilia on Sat, 05/04/2013 - 15:02

I have one more question!? ;)

I'm trying to find out how to make postfix to save all sent messages via SMTP to the user's Maildir/.Sent to make SENT folder synced with all devices?

Most clients will sync all folders by default, but if they don't, you'd need to configure your email client to sync that folder.

Ilia's picture
Submitted by Ilia on Sun, 05/05/2013 - 02:32

Yes, I know that! I just thought that maybe I could just forcefully set it via namespaces? It's alright! I have found the email apps that your just like gmail in general!

Do you guys use external mail servervices or you use your own mail servers?

Do you guys use external mail servervices or you use your own mail servers?

The domain is on a dedicated server that we manage... whenever we got that server, we installed CentOS on it, and then ran virtualmin's script. So we have a similar setup as you do :-)

Jamie uses Usermin as an email client, Joe uses Thunderbird, and I use Mutt.