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@example.com): passdb didn't return userdb entries, trying the next dovecot: auth: sql(me@example.com): SELECT CONCAT(homedir, "/", maildir) AS mail, CONCAT(homedir, "/", maildir) AS home, uid, gid FROM postfix_users WHERE email = 'me@example.com'
dovecot: auth: master out: USER 1 me@example.com
mail=/mnt/data/vmail/example.com/me/
home=/mnt/data/vmail/example.com/me/ uid=5000
gid=5000
dovecot: lda(me@example.com): Effective uid=5000, gid=5000, home=/mnt/data/vmail/example.com/me/dovecot: lda(me@example.com): Namespace: type=private, prefix=, sep=., inbox=yes, hidden=no, list=yes, subscriptions=yes
dovecot: lda(me@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@example.com): fs: root=/tmp, index=, control=, inbox=
dovecot: lda(me@example.com): Namespace : Permission lookup failed from /tmp/Dovecot Delivery Mail
dovecot: lda(me@example.com): Namespace : Using permissions from /tmp: mode=0777 gid=-1
dovecot: lda(me@example.com): Namespace : Permission lookup failed from /tmp/Dovecot Delivery Mail
dovecot: lda(me@example.com): Namespace : Using permissions from /tmp: mode=0777 gid=-1
dovecot: lda(me@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@localdomain.org