create junkfolder with sieve in a murder setup

rupert rupertt at gmail.com
Fri Jan 25 13:00:58 EST 2008


On Jan 25, 2008 6:11 PM, rupert <rupertt at gmail.com> wrote:

> Hi,
> i have my murder cluster running, with postfix as MTA and amavis for spam
> and virus check.
> Now I would like to move all the junkmails automiticaly into a subfolder
> INBOX.Junk..
> I tried the autocreateinboxfolder option with varioous enytries like
> NBOX/Junk or only Junk,
> nothing did work. Can I maybe create the junkfolder with the first
> junkmessage received or
> should it be automtically.
>
> Since I have a murder setup, I read the sieve should run on the frontend,
> right?
>
> my sievesettings in imapd.conf
> sievedir: /var/lib/imap/sieve
> autocreate_sieve_script: /etc/mail/move_junk.sieve
> autocreateinboxfolders: INBOX/Junk
> createonpost: 1
>
>
> my move_junk script
> require "regex";
>     if header :regex "Subject" "^\*\*\*SPAM" {
>         fileinto "INBOX/Junk";
> }
>
>
> when I create a new user I cant find any entries in the maillog about the
> new folders :(
>

ok, i added the junkfolder creation to my accountadd script,
also the sieve script does its job when its added manually with sieveshell,
why does the autoadd function not work?

sievedir: /var/lib/imap/sieve
autocreate_sieve_script: /var/lib/imap/sieve/global/move_junk.sieve

ls /var/lib/imap/sieve/global/
defaultbc               move_junk.sieve.bc      move_junk.sieve.script


my updated script:

require "fileinto";
    if header :contains "Subject" "***SPAM***" {
        fileinto "INBOX/Junk";
}


thx again
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.andrew.cmu.edu/pipermail/info-cyrus/attachments/20080125/f122c481/attachment.html 


More information about the Info-cyrus mailing list