[Dovecot] Problems with dovecot 2.0, sieve and mdbox

fakessh fakessh at fakessh.eu
Sat Sep 4 18:31:10 EEST 2010


On Sat, 04 Sep 2010 15:27:26 +0200, Patrick Westenberg <pw at wk-serv.de>
wrote:
> Hi guys,
> 
> I tried to use a global sieve skript to sort spam mails into
> a subfolder of INBOX. I´m using mdbox.
> 
> The log shows that the script is called and executed but it is
> not able to find or create the mailbox:
> 
> Sep  4 15:18:55 mercury dovecot: lmtp(6237, mail at steulerfliesen.de):
> Debug: Namespace : Permission lookup failed from
> /var/mail/steulerfliesen.de/mail/mdbox/mailboxes/Spamverdacht
> Sep  4 15:18:55 mercury dovecot: lmtp(6237, mail at steulerfliesen.de):
> Debug: Namespace : Using permissions from
> /var/mail/steulerfliesen.de/mail/mdbox: mode=0700 gid=-1
> 
> Sep  4 15:22:37 mercury dovecot: lmtp(6261, mail at steulerfliesen.de):
> Debug: Namespace : Permission lookup failed from
> /var/mail/steulerfliesen.de/mail/mdbox/mailboxes/INBOX.Spamverdacht
> Sep  4 15:22:37 mercury dovecot: lmtp(6261, mail at steulerfliesen.de):
> Debug: Namespace : Using permissions from
> /var/mail/steulerfliesen.de/mail/mdbox: mode=0700 gid=-1
> 
> My skript looks like this:
> 
> require "fileinto";
> if header :contains "X-Spam-Flag" "YES" {
>   fileinto "Spamverdacht";
> }
> 
> I also tried:
> 
> require "fileinto";
> if header :contains "X-Spam-Flag" "YES" {
>   fileinto "INBOX.Spamverdacht";
> }
> 
> How can I fix this?
> 
> Regards
> Patrick


the script should be

require
["fileinto","regex","comparator-i;ascii-numeric","reject","relational"];
# rule:[spammanage-before]
if header :value "ge" :comparator "i;ascii-numeric" ["X-Spam-score"]
["500"]  {
  discard;
  stop;
}
if header :value "ge" :comparator "i;ascii-numeric" ["X-Spam-score"]
["100"]  {
  fileinto "Junk.spam";
  stop;
}
if header :value "ge" :comparator "i;ascii-numeric" ["X-Spam-score"]
["10"]  {
  fileinto "Junk";
}

elsif anyof (
header :contains "Received"
             [ "[4.63.
               "[218.160.", "[218.242.]"
             ]
)
{
        fileinto "Junk";
}
elsif anyof (
      header :contains ["SPAM", "X-Spam-hits"]
             ["ADDRESSES_ON_CD",
              "X_OSIRU_DUL", "X_OSIRU_SPAMWARE_SITE",
"X_OSIRU_SPAM_SRC"
             ]
)
{
        fileinto "Junk";
}



More information about the dovecot mailing list