[Dovecot] question about snarf plugin in dovecot 2
Tom Lieuallen
toml at engr.orst.edu
Mon Dec 13 23:50:07 EET 2010
On 12/3/10 3:14 PM, Timo Sirainen wrote:
> On 3.12.2010, at 22.19, Tom Lieuallen wrote:
>
>> I'm trying to get the snarf plugin working with dovecot 2.0.7. Specifically, I want to use the UW-IMAP style optional snarfing.
>
> v2.0.7? It requires v2.0.8, which I just released..
Well, that seems important. :-) I have since upgraded to v2.0.8
>> I'm looking at the wiki2 documentation. The first question is whether the UW-IMAP optional snarfing will require any changes to the mail_location. The first section suggests (but doesn't specifically state, which I'd propose be clarified) that mail_location be updated to point at ~/mbox for INBOX. However, with the optional snarfing, sometimes inbox will be at /var/mail and for some users, it'll be ~/mbox. What, if anything, do I do to mail_location?
>
> Added a comment there:
>
> # keep mail_location etc. settings as above
>
>> Does it matter where (in which config file) the plugin block is placed?
>
> Nope.
>
>> mail_location = mbox:~/mail:INBOX=/var/mail/%u:INDEX=/a2/imap-index/%u
>
> ~/mbox here instead of /var/mail/%u
After these changes, snarfing doesn't work for me, either straight or UW
optional style. Either way I try it, when I connect, it creates an
empty ~/mbox file but does not snarf my inbox into it. My mail client
(thunderbird) doesn't see any messages at all in my inbox. I remove the
snarf namespace and change my mail_location back and my inbox is, of
course, back. Note that I have all the UW compatibility namespaces in
there.
mail_location = mbox:~/mail:INBOX=~/mbox:INDEX=/a2/imap-index/%u
# default namespace
namespace {
type = private
separator = /
prefix =
inbox = yes
}
# for backwards compatibility:
namespace {
type = private
separator = /
prefix = mail/
hidden = yes
list = no # for v1.1+
}
namespace {
type = private
separator = /
prefix = ~/mail/
hidden = yes
list = no # for v1.1+
}
namespace {
type = private
separator = /
prefix = ~%u/mail/
hidden = yes
list = no # for v1.1+
}
namespace {
type = shared
separator = /
prefix = sharedimap/
hidden = yes
list = no
location = maildir:/a1/dove-shared:INDEX=/a2/imap-index/dove-shared/%u
}
namespace snarf {
prefix = /snarf
separator = /
location =
mbox:/private/dovecot/var/run/dovecot/empty:INBOX=/var/mail/%u:INDEX=MEMORY
list = no
hidden = yes
}
plugin {
snarf = /snarf/INBOX
}
plugin {
mbox_snarf = ~/mbox
}
---------
Dec 13 13:17:48 zen.engr.oregonstate.edu dovecot: [ID 583609 mail.info]
imap-login: Login: user=<testacct>, method=PLAIN, rip=1.2.3.4,
lip=4.3.2.1, mpid=23156, TLS
Dec 13 13:17:48 zen.engr.oregonstate.edu dovecot: [ID 583609 mail.debug]
imap: Debug: Loading modules from directory: /private/dovecot/lib/dovecot
Dec 13 13:17:48 zen.engr.oregonstate.edu dovecot: [ID 583609 mail.debug]
imap: Debug: Module loaded:
/private/dovecot/lib/dovecot/lib10_quota_plugin.so
Dec 13 13:17:48 zen.engr.oregonstate.edu dovecot: [ID 583609 mail.debug]
imap: Debug: Module loaded:
/private/dovecot/lib/dovecot/lib11_imap_quota_plugin.so
Dec 13 13:17:48 zen.engr.oregonstate.edu dovecot: [ID 583609 mail.debug]
imap(testacct): Debug: Effective uid=9876, gid=5094,
home=/nfs/farm/u3/t/testacct
Dec 13 13:17:48 zen.engr.oregonstate.edu dovecot: [ID 583609 mail.debug]
imap(testacct): Debug: Quota root: name=INBOX backend=fs args=mount=/a1
Dec 13 13:17:48 zen.engr.oregonstate.edu dovecot: [ID 583609 mail.debug]
imap(testacct): Debug: Quota root: name=Home quota backend=fs
args=mount=/nfs/farm/u3/t/testacct
Dec 13 13:17:48 zen.engr.oregonstate.edu dovecot: [ID 583609 mail.debug]
imap(testacct): Debug: Namespace : type=private, prefix=, sep=/,
inbox=yes, hidden=no, list=yes, subscriptions=yes
location=mbox:~/mail:INBOX=~/mbox:INDEX=/a2/imap-index/testacct
Dec 13 13:17:48 zen.engr.oregonstate.edu dovecot: [ID 583609 mail.debug]
imap(testacct): Debug: fs: root=/nfs/farm/u3/t/testacct/mail,
index=/a2/imap-index/testacct, control=, inbox=/nfs/farm/u3/
t/testacct/mbox
Dec 13 13:17:48 zen.engr.oregonstate.edu dovecot: [ID 583609 mail.debug]
imap(testacct): Debug: fs quota add mailbox dir = /a1
Dec 13 13:17:48 zen.engr.oregonstate.edu dovecot: [ID 583609 mail.debug]
imap(testacct): Debug: fs quota block device = /dev/dsk/emcpower0c
Dec 13 13:17:48 zen.engr.oregonstate.edu dovecot: [ID 583609 mail.debug]
imap(testacct): Debug: fs quota mount point = /a1
Dec 13 13:17:48 zen.engr.oregonstate.edu dovecot: [ID 583609 mail.debug]
imap(testacct): Debug: fs quota mount type = ufs
Dec 13 13:17:48 zen.engr.oregonstate.edu dovecot: [ID 583609 mail.debug]
imap(testacct): Debug: fs quota add mailbox dir = /nfs/farm/u3/t/testacct
Dec 13 13:17:48 zen.engr.oregonstate.edu dovecot: [ID 583609 mail.debug]
imap(testacct): Debug: fs quota block device =
stak.engr.oregonstate.edu:/farm-u3
Dec 13 13:17:48 zen.engr.oregonstate.edu dovecot: [ID 583609 mail.debug]
imap(testacct): Debug: fs quota mount type = nfs
Dec 13 13:17:48 zen.engr.oregonstate.edu dovecot: [ID 583609 mail.debug]
imap(testacct): Debug: Namespace : type=private, prefix=mail/, sep=/,
inbox=no, hidden=yes, list=no, subscriptions
=yes location=mbox:~/mail:INBOX=~/mbox:INDEX=/a2/imap-index/testacct
Dec 13 13:17:48 zen.engr.oregonstate.edu dovecot: [ID 583609 mail.debug]
imap(testacct): Debug: fs: root=/nfs/farm/u3/t/testacct/mail,
index=/a2/imap-index/testacct, control=, inbox=/nfs/farm/u3/
t/testacct/mbox
Dec 13 13:17:48 zen.engr.oregonstate.edu dovecot: [ID 583609 mail.debug]
imap(testacct): Debug: Namespace : type=private, prefix=~/mail/, sep=/,
inbox=no, hidden=yes, list=no, subscriptio
ns=yes location=mbox:~/mail:INBOX=~/mbox:INDEX=/a2/imap-index/testacct
Dec 13 13:17:48 zen.engr.oregonstate.edu dovecot: [ID 583609 mail.debug]
imap(testacct): Debug: fs: root=/nfs/farm/u3/t/testacct/mail,
index=/a2/imap-index/testacct, control=, inbox=/nfs/farm/u3/
t/testacct/mbox
Dec 13 13:17:48 zen.engr.oregonstate.edu dovecot: [ID 583609 mail.debug]
imap(testacct): Debug: Namespace : type=private, prefix=~testacct/mail/,
sep=/, inbox=no, hidden=yes, list=no, subscri
ptions=yes location=mbox:~/mail:INBOX=~/mbox:INDEX=/a2/imap-index/testacct
Dec 13 13:17:48 zen.engr.oregonstate.edu dovecot: [ID 583609 mail.debug]
imap(testacct): Debug: fs: root=/nfs/farm/u3/t/testacct/mail,
index=/a2/imap-index/testacct, control=, inbox=/nfs/farm/u3/
t/testacct/mbox
Dec 13 13:17:48 zen.engr.oregonstate.edu dovecot: [ID 583609 mail.debug]
imap(testacct): Debug: Namespace : type=shared, prefix=sharedimap/,
sep=/, inbox=no, hidden=yes, list=no, subscrip
tions=yes
location=maildir:/a1/dove-shared:INDEX=/a2/imap-index/dove-shared/testacct
Dec 13 13:17:48 zen.engr.oregonstate.edu dovecot: [ID 583609 mail.debug]
imap(testacct): Debug: maildir++: root=/a1/dove-shared,
index=/a2/imap-index/dove-shared/testacct, control=, inbox=
Dec 13 13:17:48 zen.engr.oregonstate.edu dovecot: [ID 583609 mail.debug]
imap(testacct): Debug: Namespace snarf: type=private, prefix=/snarf,
sep=/, inbox=no, hidden=yes, list=no, subscri
ptions=yes
location=mbox:/private/dovecot/var/run/dovecot/empty:INBOX=/var/mail/testacct:INDEX=MEMORY
Dec 13 13:17:48 zen.engr.oregonstate.edu dovecot: [ID 583609 mail.debug]
imap(testacct): Debug: fs: root=/private/dovecot/var/run/dovecot/empty,
index=, control=, inbox=/var/mail/testacct
Dec 13 13:17:49 zen.engr.oregonstate.edu dovecot: [ID 583609 mail.debug]
imap(testacct): Debug: Namespace : Permission lookup failed from
/nfs/farm/u3/t/testacct/mbox
Dec 13 13:17:49 zen.engr.oregonstate.edu dovecot: [ID 583609 mail.debug]
imap(testacct): Debug: Namespace : Using permissions from
/nfs/farm/u3/t/testacct/mail: mode=0700 gid=-1
Dec 13 13:17:49 zen.engr.oregonstate.edu dovecot: [ID 583609 mail.debug]
imap(testacct): Debug: Namespace : Permission lookup failed from
/nfs/farm/u3/t/testacct/mbox
Dec 13 13:17:49 zen.engr.oregonstate.edu dovecot: [ID 583609 mail.debug]
imap(testacct): Debug: Namespace : Using permissions from
/nfs/farm/u3/t/testacct/mail: mode=0700 gid=-1
Dec 13 13:17:49 zen.engr.oregonstate.edu dovecot: [ID 583609 mail.debug]
imap(testacct): Debug: Namespace : Permission lookup failed from
/nfs/farm/u3/t/testacct/mbox
Dec 13 13:17:49 zen.engr.oregonstate.edu dovecot: [ID 583609 mail.debug]
imap(testacct): Debug: Namespace : Using permissions from
/nfs/farm/u3/t/testacct/mail: mode=0700 gid=-1
Dec 13 13:17:49 zen.engr.oregonstate.edu dovecot: [ID 583609 mail.debug]
imap(testacct): Debug: Namespace : Permission lookup failed from
/nfs/farm/u3/t/testacct/mbox
Dec 13 13:17:49 zen.engr.oregonstate.edu dovecot: [ID 583609 mail.debug]
imap(testacct): Debug: Namespace : Using permissions from
/nfs/farm/u3/t/testacct/mail: mode=0700 gid=-1
Dec 13 13:17:49 zen.engr.oregonstate.edu dovecot: [ID 583609 mail.debug]
imap(testacct): Debug: box=/nfs/farm/u3/t/testacct/mbox mount=/a1 match=no
Dec 13 13:17:49 zen.engr.oregonstate.edu dovecot: [ID 583609 mail.debug]
imap(testacct): Debug: box=/nfs/farm/u3/t/testacct/mbox
mount=/nfs/farm/u3/t/testacct match=yes
Dec 13 13:17:49 zen.engr.oregonstate.edu dovecot: [ID 583609 mail.debug]
imap(testacct): Debug: quota-fs: host=stak.engr.oregonstate.edu,
path=/farm-u3, uid=9876, bytes
Dec 13 13:17:49 zen.engr.oregonstate.edu dovecot: [ID 583609 mail.debug]
imap(testacct): Debug: quota-fs: uid=9876, value=3210126336,
limit=4096000000
Dec 13 13:17:49 zen.engr.oregonstate.edu dovecot: [ID 583609 mail.debug]
imap(testacct): Debug: quota-fs: host=stak.engr.oregonstate.edu,
path=/farm-u3, uid=9876, bytes
Dec 13 13:17:49 zen.engr.oregonstate.edu dovecot: [ID 583609 mail.debug]
imap(testacct): Debug: quota-fs: uid=9876, value=3210126336,
limit=4096000000
Dec 13 13:17:52 zen.engr.oregonstate.edu dovecot: [ID 583609 mail.info]
imap(testacct): Connection closed bytes=56/864
thank you
Tom Lieuallen
Oregon State University
More information about the dovecot
mailing list