<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p><font face="Arial">Hi,</font></p>
    <p><font face="Arial">Having moved from 'mbox' to 'Maildir', I'm
        trying to use a way to move a spam email to the Junk folder</font></p>
    <p><font face="Arial">I declared the junk folder as;</font></p>
    <blockquote>
      <p><font size="-2" face="Arial">namespace inbox {<br>
          type = private<br>
          disabled = no<br>
          ignore_on_failure = no<br>
            list = yes<br>
              subscriptions = yes<br>
          #hidden = no<br>
          #inbox = yes<br>
          #prefix = INBOX/<br>
          <br>
            mailbox "Drafts" {<br>
                auto = subscribe<br>
              special_use = \Drafts<br>
            }<br>
          <font color="#0080ff">  mailbox "Junk" {<br>
                  auto = subscribe<br>
                autoexpunge = 12 weeks<br>
                special_use = \Junk<br>
              }</font><br>
          <br>
            mailbox "Trash" {<br>
                auto = no<br>
              autoexpunge = 12 weeks<br>
              special_use = \Trash<br>
            }<br>
          <br>
            mailbox "Sent" {<br>
                auto = subscribe<br>
              special_use = \Sent<br>
            }</font></p>
      <p><font size="-2" face="Arial"><br>
        </font></p>
      <p><font size="-1" face="Arial">and spamassassin, very basic</font></p>
      <blockquote>
        <blockquote>
          <p><font size="-1" face="Arial">loadplugin
              Mail::SpamAssassin::Conf<br>
              <br>
              required_hits 5<br>
              required_score 5<br>
              rewrite_header subject [** SPAM ** ]<br>
              add_header all Status _YESNO_, score=_SCORE_
              required=_REQD_ tests=_TESTS_ autolearn=_AUTOLEARN_
              version=_VERSION_<br>
              spf_timeout 60<br>
              <br>
              rewrite_header to [Email could be SPAM ]<br>
              fold_headers 0<br>
              #defang_mime 0<br>
              report_safe 0<br>
            </font></p>
        </blockquote>
      </blockquote>
      <p><font size="-1" face="Arial"><br>
        </font></p>
      <p><font size="-1" face="Arial">and Procmail.. basic and I used
          what I found  on the webpage : <a moz-do-not-send="true"
            href="https://wiki.dovecot.org/procmail">https://wiki.dovecot.org/procmail</a><br>
        </font></p>
      <p><font size="-1" face="Arial">DELIVER="/usr/lib/dovecot/deliver
          -d $LOGNAME"<br>
          SHELL="/bin/bash"<br>
          SENDMAIL="/usr/sbin/sendmail -oi -t"<br>
          LOGFILE="/var/log/procmail.log"<br>
          DEFAULT="/var/spool2/mail/%u<br>
          :0fw<br>
          | /bin/spamc -s any<br>
          #######################################<br>
          #:0<br>
          #* ^X-Spam-Status: Yes<br>
          #$DEFAULT<br>
          #######################################<br>
          :0 w<br>
          * ^X-Spam-Status: Yes<br>
          | $DELIVER -m Junk<br>
          #<br>
          ## deliver to INBOX and stop<br>
          # deliver to INBOX and stop<br>
          :0 w<br>
          | $DELIVER<br>
          <br>
        </font></p>
      <p><font size="-1" face="Arial"><br>
        </font></p>
    </blockquote>
    <p><font size="-1" face="Arial">But with this config, a spam email,
        stay into the Inbox :-(</font></p>
    <p><font size="-1" face="Arial">/var/log/procmail.log... doesn't
        exist<br>
      </font></p>
    <p><font size="-1" face="Arial">Thanks for you help<br>
      </font></p>
    <blockquote>
      <p><font size="-1" face="Arial"></font><br>
      </p>
    </blockquote>
  </body>
</html>