Patrick Westenberg
2010-Sep-04 13:27 UTC
[Dovecot] Problems with dovecot 2.0, sieve and mdbox
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
On 04/09/2010 14:27, Patrick Westenberg wrote:> The log shows that the script is called and executed but it is not > able to find or create the mailbox:Hello Patrick, I probably can't help you with this problem, but I can mention that oftentimes if you ask about a problem on this list you may be asked to provide the output of "dovecot -n". Bill
On Sat, 04 Sep 2010 15:27:26 +0200 Patrick Westenberg <pw at wk-serv.de> articulated:> 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?This looks very much like a permissions problem. Please post the output of 'dovecot -n' and the "user/group" & modes set on "/var/mail/steulerfliesen.de/mail/mdbox/mailboxes/Spamverdacht" & "/var/mail/steulerfliesen.de/mail/mdbox/mailboxes/INBOX.Spamverdacht". -- Jerry ? Dovecot.user at seibercom.net Disclaimer: off-list followups get on-list replies or get ignored. Please do not ignore the Reply-To header. __________________________________________________________________ To get something clean, one has to get something dirty. To get something dirty, one does not have to get anything clean.
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 > Patrickthe 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"; }
Patrick Westenberg
2010-Sep-04 16:38 UTC
[Dovecot] Problems with dovecot 2.0, sieve and mdbox
Why so complicated? ---- Originalnachricht ---- Von: fakessh <fakessh at fakessh.eu> Gesendet: 4 Sep 2010 17:31 +02:00 An: Patrick Westenberg <pw at wk-serv.de> CC: <dovecot at dovecot.org> Betreff: Re: [Dovecot] Problems with dovecot 2.0, sieve and mdbox 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 > Patrickthe 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"; }
Patrick Westenberg
2010-Sep-04 22:40 UTC
[Dovecot] Problems with dovecot 2.0, sieve and mdbox
Hi again, FYI: this is the way it works for me: require ["fileinto", "mailbox"]; if header :contains "X-Spam-Flag" "YES" { fileinto :create "Spamverdacht"; } If the specified mailbox does not exist, it will be created. Regards Patrick
Patrick Westenberg <pw <at> wk-serv.de> writes: Hi Patrick,> > Hi again, > > FYI: this is the way it works for me: > > require ["fileinto", "mailbox"];you mean the really name "mailbox" or?> if header :contains "X-Spam-Flag" "YES" { > fileinto :create "Spamverdacht"; > } > > If the specified mailbox does not exist, it will be created. >cu Jim