IMAP Enable Client to create folders

IMAP Enable Client to create folders

Postby stephen » Tue Jan 19, 2010 6:19 am

I am using Postfix and dovecot on FreeBSD and my IMAP mail clients report they cannot create Folders on their email clients.

To start with I looked in the dovecot wiki
http://wiki.dovecot.org/FrontPage

This is the discussing on IMAP Subfolders
http://www.imapwiki.org/ClientImplementation/MailboxCreate

In the /usr/local/etc/dovecot.conf config file there is a mail_location parameter
for the maildir storage
Code: Select all
##
## Mailbox locations and namespaces
##

# Location for users' mailboxes. This is the same as the old default_mail_env
# setting. The default is empty, which means that Dovecot tries to find the
# mailboxes automatically. This won't work if the user doesn't have any mail
# yet, so you should explicitly tell Dovecot the full location.
#
# If you're using mbox, giving a path to the INBOX file (eg. /var/mail/%u)
# isn't enough. You'll also need to tell Dovecot where the other mailboxes are
# kept. This is called the "root mail directory", and it must be the first
# path given in the mail_location setting.
#
# There are a few special variables you can use, eg.:
#
#   %u - username
#   %n - user part in user@domain, same as %u if there's no domain
#   %d - domain part in user@domain, empty if there's no domain
#   %h - home directory
#
# See doc/wiki/Variables.txt for full list. Some examples:
#
#   mail_location = maildir:~/Maildir
#   mail_location = mbox:~/mail:INBOX=/var/mail/%u
#   mail_location = mbox:/var/mail/%d/%1n/%n:INDEX=/var/indexes/%d/%1n/%n
#
# <doc/wiki/MailLocation.txt>
#
#mail_location =
mail_location = mbox:~/mail/:INBOX=/var/mail/%u


The users imap folders seem, to be stored in /home/username/mail folder but the inbox is stored in /var/mail/username

Solution:
This is how to create sub-folders from Thunderbird.

1. Create a folder and use the / at the end of the name test/
This creates a folder
2. Right click on test and click create sub folder
if you do not place the trailing / then this is just a storage folder
if you use a trailing / then you have created a folder that allows further sub folders.

Note! you cannot create sub folders of Inbox.
stephen
 
Posts: 507
Joined: Thu Feb 09, 2006 9:37 am
Location: Brisbane

Return to Linux Server Configuration Notes

Who is online

Users browsing this forum: No registered users and 2 guests

cron