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 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 domain.ch:
> Now I created the sieve scritp for user spamalert 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-F
ORM-forward-sie
>v e-script.txt
>
> --------------- ---------------
>
> require "fileinto";
> if header :contains "Subject" "SPAM
FROM *" {
> redirect "user-1 domain.ch";
> stop;
> }
>
> --------------- ---------------
>
> # chown kolab-r:kolab-r
>
/kolab/var/imapd/sieve/domain/d/domain.ch/s/spamalert/SPAM-F
ORM-forward-sie
>v e-script.txt
> # chmod 700
>
/kolab/var/imapd/sieve/domain/d/domain.ch/s/spamalert/SPAM-F
ORM-forward-sie
>v e-script.txt
>
> Next I created the sieve directory structure for
user-1:
>
> # opa /kolab
> # /kolab/bin/sieveshell -u user-1 domain.ch
-a user-1 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_o
n_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)
_______________________________________________
Kolab-users mailing list
Kolab-users kolab.org
https:
//kolab.org/mailman/listinfo/kolab-users
|