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

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

Reply via email to