[Dovecot] LAYOUT=fs still uses 'dot' prefixes for folders
running latest dovecot HEAD, per,
http://wiki.dovecot.org/MailLocation/Maildir
i've set LAYOUT=fs,
dovecot -n| grep -i layout
mail_location: maildir:/data/mail:LAYOUT=fs
and expect,
maildirs to actually use physical directories, such as:
* Maildir/folder/
* Maildir/folder/subfolder/
but, autocreate@login creates folders using "dot" prefixes, e.g.,
cd /data/mail/Domains/my.domain.com/Accounts/test_account
ls -1d .*
./
../
.Drafts/
.Spam/
.Templates/
.Trash/
&, login via TBird, creating a folder "test", also creates
.test/
a bug, or a misconfiguration?
On Wed, Oct 7, 2009 at 7:15 AM, Timo Sirainen tss@iki.fi wrote:
On Oct 7, 2009, at 1:30 AM, PGNet Dev wrote:
dovecot -n| grep -i layout mail_location: maildir:/data/mail:LAYOUT=fs
..
but, autocreate@login creates folders using "dot" prefixes, e.g.,
Set mail_debug=yes. What does it log when logging in?
after login, here's what's created,
ls -al
total 52
drwx------ 9 vmail vmail 4096 2009-10-07 09:22 ./
drwx------ 3 vmail vmail 4096 2009-10-07 09:20 ../
drwx------ 2 vmail vmail 4096 2009-10-07 09:20 cur/
-rw------- 1 vmail vmail 220 2009-10-07 09:21 dovecot.index.log
-rw------- 1 vmail vmail 17 2009-10-07 09:21 dovecot-uidlist
-rw------- 1 vmail vmail 8 2009-10-07 09:22 dovecot-uidvalidity
-rw------- 1 vmail vmail 0 2009-10-07 09:21 dovecot-uidvalidity.4accc028
drwx------ 5 vmail vmail 4096 2009-10-07 09:21 .Drafts/
drwx------ 2 vmail vmail 4096 2009-10-07 09:20 new/
drwx------ 5 vmail vmail 4096 2009-10-07 09:22 .Spam/
-rw------- 1 vmail vmail 34 2009-10-07 09:21 subscriptions
drwx------ 5 vmail vmail 4096 2009-10-07 09:22 .Templates/
drwx------ 2 vmail vmail 4096 2009-10-07 09:20 tmp/
drwx------ 5 vmail vmail 4096 2009-10-07 09:22 .Trash/
and here's the log, with mail_debug=yes
Oct 07 09:20:46 dovecot: Info: Dovecot v1.2.6 starting up (core dumps disabled) Oct 07 09:21:55 imap-login: Info: Login: user=testacct@my.domain.com, method=PLAIN, rip=192.168.1.4, lip=192.168.1.22, TLS Oct 07 09:21:55 IMAP(testacct@my.domain.com): Info: Loading modules from directory: /usr/local/lib/dovecot/imap Oct 07 09:21:55 IMAP(testacct@my.domain.com): Info: Module loaded: /usr/local/lib/dovecot/imap/lib10_quota_plugin.so Oct 07 09:21:55 IMAP(testacct@my.domain.com): Info: Module loaded: /usr/local/lib/dovecot/imap/lib11_imap_quota_plugin.so Oct 07 09:21:55 IMAP(testacct@my.domain.com): Info: Module loaded: /usr/local/lib/dovecot/imap/lib20_autocreate_plugin.so Oct 07 09:21:55 IMAP(testacct@my.domain.com): Info: Module loaded: /usr/local/lib/dovecot/imap/lib20_fts_plugin.so Oct 07 09:21:55 IMAP(testacct@my.domain.com): Info: Module loaded: /usr/local/lib/dovecot/imap/lib20_zlib_plugin.so Oct 07 09:21:55 IMAP(testacct@my.domain.com): Info: Module loaded: /usr/local/lib/dovecot/imap/lib21_fts_solr_plugin.so Oct 07 09:21:55 IMAP(testacct@my.domain.com): Info: Effective uid=1001, gid=1000, home=/data/mail/Domains/my.domain.com/Accounts/testacct Oct 07 09:21:55 IMAP(testacct@my.domain.com): Info: Quota root: name=storage=4096 backend=maildir args= Oct 07 09:21:55 IMAP(testacct@my.domain.com): Info: Namespace: type=private, prefix=, sep=/, inbox=yes, hidden=no, list=yes, subscriptions=yes Oct 07 09:21:55 IMAP(testacct@my.domain.com): Info: maildir: data=/data/mail/Domains/my.domain.com/Accounts/testacct Oct 07 09:21:55 IMAP(testacct@my.domain.com): Info: maildir++: root=/data/mail/Domains/my.domain.com/Accounts/testacct, index=, control=, inbox=/data/mail/Domains/my.domain.com/Accounts/testacct Oct 07 09:21:55 IMAP(testacct@my.domain.com): Info: Namespace: type=public, prefix=Public/, sep=/, inbox=no, hidden=no, list=yes, subscriptions=yes Oct 07 09:21:55 IMAP(testacct@my.domain.com): Info: maildir: data=/data/mail/Domains/my.domain.com/Public Oct 07 09:21:55 IMAP(testacct@my.domain.com): Info: maildir++: root=/data/mail/Domains/my.domain.com/Public, index=, control=, inbox= Oct 07 09:21:55 IMAP(testacct@my.domain.com): Info: Namespace: type=shared, prefix=Shared/, sep=/, inbox=no, hidden=no, list=yes, subscriptions=yes Oct 07 09:21:55 IMAP(testacct@my.domain.com): Info: maildir: data=/data/mail/Domains/my.domain.com/Shared Oct 07 09:21:55 IMAP(testacct@my.domain.com): Info: maildir++: root=/data/mail/Domains/my.domain.com/Shared, index=, control=, inbox= Oct 07 09:21:55 IMAP(testacct@my.domain.com): Info: Namespace : Using permissions from /data/mail/Domains/my.domain.com/Accounts/testacct: mode=0700 gid=-1 Oct 07 09:21:58 imap-login: Info: Login: user=testacct@my.domain.com, method=PLAIN, rip=192.168.1.4, lip=192.168.1.22, TLS Oct 07 09:21:58 IMAP(testacct@my.domain.com): Info: Loading modules from directory: /usr/local/lib/dovecot/imap Oct 07 09:21:58 IMAP(testacct@my.domain.com): Info: Module loaded: /usr/local/lib/dovecot/imap/lib10_quota_plugin.so Oct 07 09:21:58 IMAP(testacct@my.domain.com): Info: Module loaded: /usr/local/lib/dovecot/imap/lib11_imap_quota_plugin.so Oct 07 09:21:58 IMAP(testacct@my.domain.com): Info: Module loaded: /usr/local/lib/dovecot/imap/lib20_autocreate_plugin.so Oct 07 09:21:58 IMAP(testacct@my.domain.com): Info: Module loaded: /usr/local/lib/dovecot/imap/lib20_fts_plugin.so Oct 07 09:21:58 IMAP(testacct@my.domain.com): Info: Module loaded: /usr/local/lib/dovecot/imap/lib20_zlib_plugin.so Oct 07 09:21:58 IMAP(testacct@my.domain.com): Info: Module loaded: /usr/local/lib/dovecot/imap/lib21_fts_solr_plugin.so Oct 07 09:21:58 IMAP(testacct@my.domain.com): Info: Effective uid=1001, gid=1000, home=/data/mail/Domains/my.domain.com/Accounts/testacct Oct 07 09:21:58 IMAP(testacct@my.domain.com): Info: Quota root: name=storage=4096 backend=maildir args= Oct 07 09:21:58 IMAP(testacct@my.domain.com): Info: Namespace: type=private, prefix=, sep=/, inbox=yes, hidden=no, list=yes, subscriptions=yes Oct 07 09:21:58 IMAP(testacct@my.domain.com): Info: maildir: data=/data/mail/Domains/my.domain.com/Accounts/testacct Oct 07 09:21:58 IMAP(testacct@my.domain.com): Info: maildir++: root=/data/mail/Domains/my.domain.com/Accounts/testacct, index=, control=, inbox=/data/mail/Domains/my.domain.com/Accounts/testacct Oct 07 09:21:58 IMAP(testacct@my.domain.com): Info: Namespace: type=public, prefix=Public/, sep=/, inbox=no, hidden=no, list=yes, subscriptions=yes Oct 07 09:21:58 IMAP(testacct@my.domain.com): Info: maildir: data=/data/mail/Domains/my.domain.com/Public Oct 07 09:21:58 IMAP(testacct@my.domain.com): Info: maildir++: root=/data/mail/Domains/my.domain.com/Public, index=, control=, inbox= Oct 07 09:21:58 IMAP(testacct@my.domain.com): Info: Namespace: type=shared, prefix=Shared/, sep=/, inbox=no, hidden=no, list=yes, subscriptions=yes Oct 07 09:21:58 IMAP(testacct@my.domain.com): Info: maildir: data=/data/mail/Domains/my.domain.com/Shared Oct 07 09:21:58 IMAP(testacct@my.domain.com): Info: maildir++: root=/data/mail/Domains/my.domain.com/Shared, index=, control=, inbox= Oct 07 09:21:58 IMAP(testacct@my.domain.com): Info: Namespace : Using permissions from /data/mail/Domains/my.domain.com/Accounts/testacct: mode=0700 gid=-1
On Wed, 2009-10-07 at 09:28 -0700, PGNet Dev wrote:
and here's the log, with mail_debug=yes
Oct 07 09:21:55 IMAP(testacct@my.domain.com): Info: maildir: data=/data/mail/Domains/my.domain.com/Accounts/testacct
mail_location setting is overridden somewhere. Either namespace { location } setting or in your userdb (do you return "mail" field?)
On Wed, Oct 7, 2009 at 9:41 AM, Timo Sirainen tss@iki.fi wrote:
On Wed, 2009-10-07 at 09:28 -0700, PGNet Dev wrote:
and here's the log, with mail_debug=yes
Oct 07 09:21:55 IMAP(testacct@my.domain.com): Info: maildir: data=/data/mail/Domains/my.domain.com/Accounts/testacct
mail_location setting is overridden somewhere. Either namespace { location } setting or in your userdb (do you return "mail" field?)
i've both, but userdb doesn't return mail field. atm, i've
...
mail_location: maildir:/data/mail:LAYOUT=fs
...
namespace private {
separator = /
prefix = ""
inbox = yes
hidden = no
location = maildir:/data/mail/Domains/%d/Accounts/%n
}
...
auth default {
...
userdb static {
args = static uid=vmail gid=vmail
home=/data/mail/Domains/%d/Accounts/%n quota=maildir:storage=4096 nice=10 } ...
re: 'overridden', must LAYOUT=fs be re-specified? i assumed (incorrectly?) that it inherits from the global settings ...
On Wed, 2009-10-07 at 10:02 -0700, PGNet Dev wrote:
i've both, but userdb doesn't return mail field. atm, i've
... mail_location: maildir:/data/mail:LAYOUT=fs ... namespace private { separator = / prefix = "" inbox = yes hidden = no location = maildir:/data/mail/Domains/%d/Accounts/%n }
The namespace location completely overrides mail_location setting. So what you really want is to remove namespace location and use:
mail_location = maildir:/data/mail/Domains/%d/Accounts/%n:LAYOUT=fs
On Wed, Oct 7, 2009 at 10:07 AM, Timo Sirainen tss@iki.fi wrote:
The namespace location completely overrides mail_location setting. So what you really want is to remove namespace location and use:
my mistake about inheritance vs override. thanks for clearing that up.
mail_location = maildir:/data/mail/Domains/%d/Accounts/%n:LAYOUT=fs
now,
ls -1
cur/
dovecot-uidvalidity
dovecot-uidvalidity.4acccf38
Drafts/
INBOX/
new/
Spam/
subscriptions
Templates/
tmp/
Trash/
thanks again.
In converting everyone at our site from UW-IMAP I've run into a
problem with a few
Thunderbird users and I'm wondering if anyone has some recommendations.
We're running dovecot 1.0.13 (yes I know it's old but we don't upgrade
production
facilities that often). The affected Thunderbird users are running
version 2.0023.
What's happening is this:
1) The user creates a filter rule which looks for, say, the From:
header on a
message, and then tags that message with a Thunderbird tag
that they've
defined (in this case "ToDo").
2) The user also defines a search folderthat shows all mail items
tagged "ToDo".
3) Every day, the user opens the folder, handles all the ToDo
messages and
untags them as they are handled, causing them to disappear
from the
folder.
4) The next day (or the next time Thunderbird is started), all
the previously tagged messages are back (in addition to newer ones).
This doesn't happen with UW-IMAP (version imap-2007e which I think
is the
last version with bug fixes ever issued). I haven't traced out the
IMAP commands
going back and forth yet to see what might be different between the
two servers -
I thought I'd ask here first to see if this is a known issue for which
there is a solution
(like upgrading dovecot to a specific version).
On Tue, 2009-10-13 at 08:50 -0700, Michael Durket wrote:
4) The next day (or the next time Thunderbird is started), all
the previously tagged messages are back (in addition to newer ones).
I guess you're using mbox format? Apparently there's some bug that sometimes doesn't write flags to mbox file. mbox_lazy_writes=no should fix that, although it also makes performance somewhat worse.
participants (3)
-
Michael Durket
-
PGNet Dev
-
Timo Sirainen