<br><br><div class="gmail_quote">On Jan 25, 2008 6:11 PM, rupert &lt;<a href="mailto:rupertt@gmail.com">rupertt@gmail.com</a>&gt; wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi,<br>i have my murder cluster running, with postfix as MTA and amavis for spam and virus check.<br>Now I would like to move all the junkmails automiticaly into a subfolder INBOX.Junk..<br>I tried the autocreateinboxfolder option with varioous enytries like NBOX/Junk or only Junk,<br>

nothing did work. Can I maybe create the junkfolder with the first junkmessage received or<br>should it be automtically.<br><br>Since I have a murder setup, I read the sieve should run on the frontend, right?<br><br>my sievesettings in imapd.conf<br>

sievedir: /var/lib/imap/sieve<br>autocreate_sieve_script: /etc/mail/move_junk.sieve<br>autocreateinboxfolders: INBOX/Junk<br>createonpost: 1<br><br><br>my move_junk script<br>require &quot;regex&quot;;<br>&nbsp;&nbsp;&nbsp; if header :regex &quot;Subject&quot; &quot;^\*\*\*SPAM&quot; {<br>

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; fileinto &quot;INBOX/Junk&quot;;<br>}<br><br><br>when I create a new user I cant find any entries in the maillog about the new folders :(<br></blockquote><div><br>ok, i added the junkfolder creation to my accountadd script,<br>
also the sieve script does its job when its added manually with sieveshell,<br>why does the autoadd function not work?<br><br>sievedir: /var/lib/imap/sieve<br>autocreate_sieve_script: /var/lib/imap/sieve/global/move_junk.sieve <br>
<br>ls /var/lib/imap/sieve/global/<br>defaultbc&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; move_junk.sieve.bc&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; move_junk.sieve.script<br></div></div><br><br>my updated script:<br><br>require &quot;fileinto&quot;;<br>&nbsp;&nbsp;&nbsp; if header :contains &quot;Subject&quot; &quot;***SPAM***&quot; {<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; fileinto &quot;INBOX/Junk&quot;;<br>}<br><br><br>thx again<br>