[Dovecot] dovecot-2.0-beta4, lda and sieve: Permission lookup failed from /tmp/Dovecot Delivery
Pascal Volk
user+dovecot at localhost.localdomain.org
Wed Apr 14 17:18:50 EEST 2010
On 04/14/2010 03:46 PM Felix Leimbach wrote:
> Hi all,
>
> I'm testing a dovecot-2.0-beta4 and it is great so far, except that I
> can't get the sieve plugin for the LDA configured.
>
> It doesn't find the user's homedir and uses /tmp instead. Thus it never
> finds any sieve scripts.
>
> The log shows that the SQL queries return the correct home path, namely
> /mnt/data/vmail/example.com/me
>
> dovecot: auth: prefetch(me at example.com): passdb didn't return userdb
> entries, trying the next
> dovecot: auth: sql(me at example.com): SELECT CONCAT(homedir, "/", maildir)
> AS mail, CONCAT(homedir, "/", maildir) AS home, uid, gid FROM
> postfix_users WHERE email =
> 'me at example.com'
>
> dovecot: auth: master out: USER 1 me at example.com
> mail=/mnt/data/vmail/example.com/me/
> home=/mnt/data/vmail/example.com/me/ uid=5000
> gid=5000
> dovecot: lda(me at example.com): Effective uid=5000, gid=5000,
> home=/mnt/data/vmail/example.com/me/
>
> dovecot: lda(me at example.com): Namespace: type=private, prefix=, sep=.,
> inbox=yes, hidden=no, list=yes,
> subscriptions=yes
>
> dovecot: lda(me at example.com): maildir++:
> root=/mnt/data/vmail/example.com/me, index=, control=,
> inbox=/mnt/data/vmail/example.com/me
The first problem: home == mail && LAYOUT=maildir++.
So ~/.dovecot.sieve will be created inside
root=/mnt/data/vmail/example.com/me. IMAP will see the mailbox dovecot
with the child mailbox sieve.
When the directory /mnt/data/vmail/example.com/me/.dovecot.sieve exists
you are unable tor create a file/link with same name in your "home dir".
Please read: http://wiki.dovecot.org/VirtualUsers/Home
> However, the sieve plugin still uses /tmp instead of the home dir and fails:
>
> dovecot: lda(me at example.com): fs: root=/tmp, index=, control=,
> inbox=
> dovecot: lda(me at example.com): Namespace : Permission lookup failed from
> /tmp/Dovecot Delivery Mail
> dovecot: lda(me at example.com): Namespace : Using permissions from /tmp:
> mode=0777 gid=-1
> dovecot: lda(me at example.com): Namespace : Permission lookup failed from
> /tmp/Dovecot Delivery Mail
> dovecot: lda(me at example.com): Namespace : Using permissions from /tmp:
> mode=0777 gid=-1
> dovecot: lda(me at example.com): sieve: user has no valid personal script
It performs only permissions lookups. That was fixed 9 days ago:
http://hg.dovecot.org/dovecot-2.0/rev/9c94f073d014
> Any idea?
SELECT 'maildir:~/Maildir' AS mail, CONCAT(homedir, "/", maildir) AS home, …
Regards,
Pascal
--
The trapper recommends today: deadbeef.1010416 at localdomain.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 3690 bytes
Desc: S/MIME Cryptographic Signature
Url : http://dovecot.org/pipermail/dovecot/attachments/20100414/402a26bd/attachment.bin
More information about the dovecot
mailing list