Timo Sirainen a ?crit :> On Mar 4, 2008, at 12:09 PM, Samuel HAMEAU wrote:
>
>> I am using dovecot 1.0.10 and pysieved, in a master/slave cluster
>> with ldap (auth_bind=yes). For conceptuals reasons, i would like to
>> keep on the same partition the mailstore + sieve scripts.
>>
>> I have try to set "sieve" and "home" variables
under the "plugin"
>> section with an absolute path, and i have tried to override home
>> variable in user_attrs (dovecot-ldap.conf) as well with an absolute
>> path, but in vain.
>
> Set mail_debug=yes and auth_debug=yes. What does deliver log then?
>
Thanks for your fast answer.
With the plugin options, i get :
- for the deliver :> deliver(shameau): 2008-03-04 13:38:06 Info: Loading modules from
> directory: /usr/lib/dovecot/modules/lda
> deliver(shameau): 2008-03-04 13:38:06 Info: Module loaded:
> /usr/lib/dovecot/modules/lda/lib90_cmusieve_plugin.so
> deliver(shameau): 2008-03-04 13:38:06 Info: Home dir not found:
> /var/spool/imap/user1/sieve
> deliver(shameau): 2008-03-04 13:38:06 Info: maildir:
> data=/var/spool/imap/user1
> deliver(shameau): 2008-03-04 13:38:06 Info: maildir:
> root=/var/spool/imap/user1, index=/var/spool/imap/user1, control=,
inbox> deliver(shameau): 2008-03-04 13:38:06 Info:
> msgid=<20080304123806.0477B22408E at semoule>: saved mail to INBOX
- for smartsieve/pysieved login, i get :> dovecot: 2008-03-04 13:39:22 Info: auth(default): new auth connection:
> pid=15871
> dovecot: 2008-03-04 13:39:22 Info: auth(default): client in:
> AUTH 1 PLAIN service=pysieved resp=<hidden>
> dovecot: 2008-03-04 13:39:22 Info: auth(default): ldap(user1): bind:
> dn=uid=user1,ou=Users,dc=company,dc=com
> dovecot: 2008-03-04 13:39:22 Info: auth(default): client in (unknown
> command):
> dovecot: 2008-03-04 13:39:22 Info: auth(default): client out:
> OK 1 user=user1
> dovecot: 2008-03-04 13:39:22 Info: auth(default): master in:
> USER 1 user1 service=pysieved
> dovecot: 2008-03-04 13:39:22 Info: auth(default): ldap(shameau): user
> search: base=ou=Users,dc=company,dc=com scope=subtree
> filter=(&(objectClass=posixAccount)(uid=shameau))
> fields=homeDirectory,uidNumber,gidNumber
> dovecot: 2008-03-04 13:39:22 Info: auth(default): master out:
> USER 1 user1 uid=1428 home=/home/user1 gid=1000
So, it seems it works for deliver (the home dir is the equivalent of my
"home" variable in the plugin section, but not the sieve variable
(which
would be /var/spool/imap/user1/pysieved/sieve). However, it doesn't for
the auth (from auth-master socket) which keeps the home value fetched
from ldap.
I am using the auth-master/auth-client sockets with pysieved. When i
connect using the smartsieve php frontal, pysieved seeks data in
/home/user1 insted of /var/spool/imap/user1/sieve ...
is it a dovecot or pysieved issue ?
sam