Kolab2 sieve scripts are not working and no logs available

Bernhard Reiter bernhard at intevation.de
Fri Aug 25 22:39:05 CEST 2006


Am Freitag, 16. Juni 2006 02:05 schrieb ComCept Net GmbH Soliva:
> I tried to install a sieve script by myself but it seems for some reason it
> does not work. As a pitty also within the log there is no message. To
> install the scripts I did following:
>
> Goal would be that all mails which have destination spamalert at domain.ch
> would be filtered depending Subjet SPAM FROM and if match forward the mail
> to mailbox of user-1. In this mailbox ther is a secon script which filters
> also the Subjet an if match move the mail to folder SPAM MESSAGES!

Cyrus' 2.2. Sieve implementation can only have one active Sieve script.

> First I created the directory structur for the sieve depending user
> spamalert at domain.ch:



> Now I created the sieve scritp for user spamalert at domain.ch that all
> messages would be filtered and if Subject is SPAM FROM forward the message
> to the mailbox of user-1:
>
> 	# vi
> /kolab/var/imapd/sieve/domain/d/domain.ch/s/spamalert/SPAM-FORM-forward-sie
>v e-script.txt
>
> 	---------------  ---------------
>
> 	require "fileinto";
> 	if header :contains "Subject" "SPAM FROM *" {
> 	redirect "user-1 at domain.ch";
> 	stop;
> 	}
>
> 	---------------  ---------------
>
> 	# chown kolab-r:kolab-r
> /kolab/var/imapd/sieve/domain/d/domain.ch/s/spamalert/SPAM-FORM-forward-sie
>v e-script.txt
> 	# chmod 700
> /kolab/var/imapd/sieve/domain/d/domain.ch/s/spamalert/SPAM-FORM-forward-sie
>v e-script.txt
>
> Next I created the sieve directory structure for user-1:
>
> 	# opa /kolab
> 	# /kolab/bin/sieveshell -u user-1 at domain.ch -a user-1 at domain.ch
> localhost
> 	connecting to localhost
>
> 	Please enter your password:
> 	> quit
>
> Next I created the second sript for the user-1 which receives all mails
> from spamalert which matches the filter if within the Subject SPAM FROM is
> shown:
>
> 	# vi
> /kolab/var/imapd/sieve/domain/d/domain.ch/u/user-1/SPAM-FORM-move-to-sieve-
>s cript.txt

Best is to use sieveshell to set the sieve scripts.
Also see:
http://wiki.kolab.org/index.php/Filtering_Emails_on_the_Server

> Why this is not working? From my point of view it should work! Why I do not
> see anything in /kolab/var/imapd/log/sieve.log?

Sievescript have to be bytecode compiled, I guess that would need to be done 
if you place them manually. Also there must be a symbolic link
to the active script. Set one of the prepared sieve scripts with the web admin
interface and examine the server to see how a correct structure would be.

Bernhard

-- 
Managing Director - Owner, www.intevation.net       (Free Software Company)
Germany Coordinator, fsfeurope.org       (Non-Profit Org for Free Software)
www.kolab-konsortium.com   (Email/Groupware Solution, Professional Service)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.kolab.org/pipermail/users/attachments/20060825/6383e333/attachment.sig>


More information about the users mailing list