Hi all,
this is my first post to this list, and hope someone can help me ;-)
I'm running dovecot.x86_64 1.0.7-7.el5 on a CentOS release 5.5 (Final) box.
when a user tries to create a sub-subfolder in Archiv, he gets the message:
"Mailbox doesn't allow inferior mailboxes"
Mailclient is MS Outlook 2003 SP3
is there a spezial configuration in /etc/dovecot.conf needed?
MailLocation is by default in /etc/dovecot:
# 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
#
#
Users have there IMAP folders in "~/mail"
# pwd /home/bema/mail # ls -l total 552 -rw------- 1 bema bema 0 Aug 9 16:21 Archiv -rw------- 1 bema bema 0 Aug 7 12:04 Aufgaben -rw------- 1 bema bema 0 Aug 4 16:05 Drafts -rw------- 1 bema bema 0 Aug 7 12:03 Gel&APY-schte Objekte -rw------- 1 bema bema 553349 Aug 7 12:05 Gesendete Objekte -rw------- 1 bema bema 0 Aug 7 11:50 Junk-E-Mail -rw------- 1 bema bema 0 Aug 7 12:04 Postausgang -rw------- 1 bema bema 887 Aug 7 12:05 Sent -rw------- 1 bema bema 0 Aug 4 16:05 Trash
many thanks Richard
when a user tries to create a sub-subfolder in Archiv, he gets the message:
"Mailbox doesn't allow inferior mailboxes"
is there a spezial configuration in /etc/dovecot.conf needed?
From memory I believe it depends on the format of the mailboxes. If you're using Maildir format then you can create sub-folders, but if you're using mbox you can't. It's possible to convert mailboxes from mbox to Maildir, but if you have a lot of users with a lot of mail then this could be a big task. Also, remember that if you do change format you also need to modify Postfix (assuming you're using Postfix) to deliver to that format.
On Mon, 2010-08-09 at 17:02 +0200, Richard Gliebe wrote:
when a user tries to create a sub-subfolder in Archiv, he gets the message:
"Mailbox doesn't allow inferior mailboxes"
Like Phill said, the problem is mbox format. If you don't want to switch away from it, you can still create Archiv/stuff, if you just don't first create Archiv as a mailbox. In IMAP protocol terms you need to:
Create Archiv/ directory to filesystem: 1 CREATE Archiv/ Create the mailbox file: 2 CREATE Archiv/child
The 1 step is actually optional. In any case you can probably do both in the client UI as well by just adding the '/' manually.
On 8/9/10 5:21 PM Timo Sirainen wrote:
On Mon, 2010-08-09 at 17:02 +0200, Richard Gliebe wrote:
when a user tries to create a sub-subfolder in Archiv, he gets the message:
"Mailbox doesn't allow inferior mailboxes"
Like Phill said, the problem is mbox format. If you don't want to switch away from it, you can still create Archiv/stuff, if you just don't first create Archiv as a mailbox. In IMAP protocol terms you need to:
Create Archiv/ directory to filesystem: 1 CREATE Archiv/ Create the mailbox file: 2 CREATE Archiv/child
The 1 step is actually optional. In any case you can probably do both in the client UI as well by just adding the '/' manually.
thanks for the hint with mail_location = maildir:~/Maildir. Creating sub and sub-subfolders works.
but now, when I'm sending an email from user1@ourdomain.at to user2@ourdomain.at, the mail is delivered to the users mailbox in /var/spool/mail/<user2>.
How to I tell sendmail to deliver the mails to the right users Inbox (~/Maildir)?
We are using # yum list | grep -i sendmail sendmail.x86_64 8.13.8-8.el5 installed sendmail-cf.x86_64 8.13.8-8.el5 installed
many thanks Richard
On 8/9/10 5:40 PM Richard Gliebe wrote:
On 8/9/10 5:21 PM Timo Sirainen wrote:
On Mon, 2010-08-09 at 17:02 +0200, Richard Gliebe wrote:
when a user tries to create a sub-subfolder in Archiv, he gets the message:
"Mailbox doesn't allow inferior mailboxes"
Like Phill said, the problem is mbox format. If you don't want to switch away from it, you can still create Archiv/stuff, if you just don't first create Archiv as a mailbox. In IMAP protocol terms you need to:
Create Archiv/ directory to filesystem: 1 CREATE Archiv/ Create the mailbox file: 2 CREATE Archiv/child
The 1 step is actually optional. In any case you can probably do both in the client UI as well by just adding the '/' manually.
thanks for the hint with mail_location = maildir:~/Maildir. Creating sub and sub-subfolders works.
but now, when I'm sending an email from user1@ourdomain.at to user2@ourdomain.at, the mail is delivered to the users mailbox in /var/spool/mail/<user2>.
How to I tell sendmail to deliver the mails to the right users Inbox (~/Maildir)?
We are using # yum list | grep -i sendmail sendmail.x86_64 8.13.8-8.el5 installed sendmail-cf.x86_64 8.13.8-8.el5 installed
many thanks Richard
sorry for the last mail:
procmail was the answer.
# cat /etc/procmailrc DEFAULT=$HOME/Maildir/
Do I have to make more adjustments in procmailrc for dovecot/sendmail? special for "maildir:~/Maildir"?
many thanks Richard
On 8/9/2010 11:21 AM, Timo Sirainen wrote:
On Mon, 2010-08-09 at 17:02 +0200, Richard Gliebe wrote:
when a user tries to create a sub-subfolder in Archiv, he gets the message:
"Mailbox doesn't allow inferior mailboxes" Like Phill said, the problem is mbox format. If you don't want to switch away from it, you can still create Archiv/stuff, if you just don't first create Archiv as a mailbox. In IMAP protocol terms you need to:
Create Archiv/ directory to filesystem: 1 CREATE Archiv/ Create the mailbox file: 2 CREATE Archiv/child
The 1 step is actually optional. In any case you can probably do both in the client UI as well by just adding the '/' manually.
You can also create namespaces, making your inbox an mbox and the rest of the folders Maildir.
Mixed mbox and Maildir
If you have your INBOX as mbox in /var/mail/username and the rest of the mailboxes in Maildir format under ~/Maildir, you can do this by creating two namespaces:
namespace private { separator = / prefix = "#mbox/" location = mbox:~/mail:INBOX=/var/mail/%u inbox = yes hidden = yes list = no # for v1.1+ } namespace private { separator = / prefix = location = maildir:~/Maildir }
On 8/10/10 10:39 PM John S wrote:
You can also create namespaces, making your inbox an mbox and the rest of the folders Maildir.
Mixed mbox and Maildir
If you have your INBOX as mbox in /var/mail/username and the rest of the mailboxes in Maildir format under ~/Maildir, you can do this by creating two namespaces:
namespace private { separator = / prefix = "#mbox/" location = mbox:~/mail:INBOX=/var/mail/%u inbox = yes hidden = yes list = no # for v1.1+ } namespace private { separator = / prefix = location = maildir:~/Maildir }
thanks. I moved yesterday all users from mbox to Maildir. Everything works now as it should.
regards Richard
Setting up namespaces like this on an ubuntu maverick server HAS accomplished allowing sendmail to deliver email to /var/mail/jon in mbox format and then, using a thunderbird client from another machine, drag email's to Maildir type folders in ~/Maildir on that remote server.
My question is, once a file is DELETED, or moved out of the inbox folder (at least as seen by thunderbird), the file IS copied to the correct Maildir folder, HOWEVER, that email STILL resides in /var/mail/jon. No longer shows up in my inbox folder on thunderbird (presumably because it has been indexed around), but it is still there. This means that /var/mail/jon is going to grow everytime I get an email and NEVER shrink.
Am I doing something wrong that dovecot is doing a COPY instead of a move, or is it some silly Thunderbird setting?
jon
participants (5)
-
John S
-
Jon
-
Phill Edwards
-
Richard Gliebe
-
Timo Sirainen