> On 14 Sep 2017, at 21:19, Andreas Meyer <[email protected]> wrote: > > Benny Pedersen <[email protected]> schrieb am 14.09.17 um 19:36:34 Uhr: > >> Andreas Meyer skrev den 2017-09-14 18:43: >> >>> plugin { >>> sieve = ~/.dovecot.sieve >>> sieve_dir = ~/.sieve >>> } >>> >> >> plugin { >> sieve = /home/vmail/%d/%u/.dovecot.sieve >> sieve_dir = /home/vmail/%d/%u/.sieve >> } >> >> have you set HOME correct ? >> >> note i do not use home here in my config, but direct path >> >> maildir is in /home/vmail/%d/%u/.maildir > > I now tried with > > plugin { > #sieve = ~/.dovecot.sieve > sieve = /home/%u/.dovecot.sieve > sieve_dir = /home/%u/.sieve > } > > but no success. > > In the debug.log I see entries since this afternoon while > I'm trying to get the thing work like this: > > Sep 14 21:07:05 managesieve-login: Info: Login: user=<andreas>, method=PLAIN, > rip=62.227.79.208, lip=195.62.121.239, mpid=29836, session=<gyRu+ypZZAA+40/Q> > Sep 14 21:07:44 managesieve(andreas): Warning: sieve-storage: Active sieve > script symlink /home/andreas/.dovecot.sieve is broken: invalid/unknown path > to storage (points to /home/andreas/. > sieve/managesieve.sieve). > > # ls -al /home/andreas > insgesamt 887 > drwx------. 5 andreas andreas 4096 14. Sep 18:51 . > drwxr-xr-x. 5 root root 44 14. Sep 15:48 .. > -rw-------. 1 andreas andreas 87 12. Sep 22:25 .bash_history > -rw-r--r--. 1 andreas andreas 18 7. Dez 2016 .bash_logout > -rw-r--r--. 1 andreas andreas 193 7. Dez 2016 .bash_profile > -rw-r--r--. 1 andreas andreas 231 7. Dez 2016 .bashrc > lrwxrwxrwx 1 root root 38 14. Sep 18:51 .dovecot.sieve -> > /home/andreas/.sieve/managesieve.sieve > drwx------ 9 andreas andreas 4096 14. Sep 20:58 Maildir > drwx------ 3 andreas andreas 40 14. Sep 18:51 .sieve > drwx------ 2 andreas andreas 6 12. Sep 22:24 .ssh > > # ls -al /home/andreas/.sieve > insgesamt 8 > drwx------ 3 andreas andreas 40 14. Sep 18:51 . > drwx------. 5 andreas andreas 4096 14. Sep 18:51 .. > -rw------- 1 andreas andreas 483 14. Sep 13:27 managesieve.sieve > drwx------ 2 andreas andreas 6 14. Sep 18:38 tmp > > Why does dovecot say the symlink is broken?
When using managaesieve you need to have 2 locations configured. 1. sieve= this is the location of the primary sieve script. You dont need to set it. Managesieve uses it to create a symlink to the active filter you set in roundcube 2. sieve_dir= this is where managesieve stores all the filters you create in roundcube. One of them is the script that is symlinked from 1. Your main problem is that the symlink is owned by root. It should be owned by the user andreas as managesieve will run under user permissions and wants to set that symlink to point to your active filter script. Cor _______________________________________________ Roundcube Users mailing list [email protected] http://lists.roundcube.net/mailman/listinfo/users
