I'm not sure why sieve_before in your Dovecot config as I understand from what it says in the manual it should allways be run before user scripts but I have never tried it myself.
Managesieve and the sieve plugin are not the same thing. Managesieve is a protcol via which a user's sieve rules can be managed. The sieve plugin is the thing that does the work.
For the default_file config option in the plugin, you want the non complied version of the file and make sure it can be read by what ever user your webserver runs as. Then you need to delete the roundcube.sieve file from your .sieve directory. The default file is only checked when non user defined rules exist (and the roundcube.sieve file doesnt exist).
i don't know where i wrong...
I deleated my "roundcube.sieve" i loaded in default_file my "globalsieverc.sieve" (not the compiled one). chmod 777 it with "www-data" user or "vmail" user.
When i disable the plugin in rc's main.conf.php and enabled back "global_script_path = /home/vmail/globalsieverc.sieve" in dovecot.conf lda , all Spam mails are moved to the Spam folder.
How can i test if sieverules plugin loads my default file?
edit:
--------
Ok another test:
If i use
$sieverules_config['default_file'] = '/home/vmail/nofile.sieve';
or
$sieverules_config['default_file'] = '';
When i open "sieverules" in roundcube nothing appears. If I put:
$sieverules_config['default_file'] = '/home/vmail/globalsieverc.sieve';
He ask me:
"No existing filters detected!
Use default filters: There is a set of default filters available. Would you like to use these filters?"
(if i click "use default filters" the plugin create a roundcube.sieve empty with only a comment in the first row)
So the file can be read from roundcube, but it doesn't read the rules inside.
My lda:
protocol lda {
log_path = /home/vmail/dovecot-deliver.log
auth_socket_path = /var/run/dovecot/auth-master
postmaster_address =
pmrb5@email.it mail_plugins = quota cmusieve
global_script_path = /home/vmail/globalsieverc.sieve
#sieve_global_path = /home/vmail/globalsieverc.sieve
}
if i use "mail_plugins = quota sieve" no mails are delivered
----
thanks again my friend