Author Topic: managesieve not filtering  (Read 13254 times)

Offline raiden

  • Newbie
  • *
  • Posts: 4
managesieve not filtering
« on: February 15, 2010, 04:40:05 AM »
Hey all,

I've installed RC 0.3.1, and now I've enabled the managesieve plugin. It seems to have activated well.

I see the tab Filters, can add and modify filters, and they even are processed on to the server.

 
Code: [Select]

# cat .dovecot.sieve
require ["fileinto"];
# rule:[SPAM]
if anyof (header :contains "Subject" "***SPAM***")
{
        fileinto "INBOX.Trash";
}
# rule:[Facebook]
elsif anyof (header :contains "From" "facebook")
{
        fileinto "Facebook";
}



As you can see it saves the filters nicely in the homedir of the users. Only the message-filtering itself does not work yet. Spam keeps ending up in my inbox.

Anyone an idea where I should check next ?

Thanks

Offline raiden

  • Newbie
  • *
  • Posts: 4
managesieve not filtering
« Reply #1 on: February 17, 2010, 03:43:39 AM »
Nobody ? JohnDoh ?

Offline JohnDoh

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2,855
managesieve not filtering
« Reply #2 on: February 17, 2010, 12:28:31 PM »
well it sounds like a dovecot/sieve problem not an RC one. you say the rules are processed do you mean stuff from facebook goes into your facebook folder? your script doesnt make sense to me one folder has the INBOX. at the start and the other doesnt i would ahve thought they should have been the same. have you looked in your dovecot logs to see if there are any errors processing the file?
Roundcube Plugins: Contextmenu, SpamAssassin Prefs, and more…

Offline Granada

  • Jr. Member
  • **
  • Posts: 35
managesieve not filtering
« Reply #3 on: February 18, 2010, 01:52:52 AM »
Hi raiden,

did you take a look at your logfiles? My own script filtering spam just looks the same as yours, but it works the way intended with our installation of cyrus-imap.
cyrus generates these kind of log entries, maybe dovecot does have some similiar feature to track down the problem:

Code: [Select]
Feb 18 07:01:41 mailserverXY cyrus/lmtp[25865]: Delivered: <32071_1266472901_4B7CD7C4_32071_1095519_1_DZLOEPFHSVPJZETBFSYC@msa.hinet.net> to mailbox: user.username.Trash

Regards
Ruediger

Offline raiden

  • Newbie
  • *
  • Posts: 4
managesieve not filtering
« Reply #4 on: February 18, 2010, 02:01:15 AM »
How does this actually work ? I have Postfix delivering mails into the Maildir, and that works fine. How does the sieve-filtering actually work ?

I don't see any weird errors in dovecot. And if I connect to the managesieve-port, I get a good response.

Quote
   well it sounds like a dovecot/sieve problem not an RC one. you say the rules are processed do you mean stuff from facebook goes into your facebook folder? your script doesnt make sense to me one folder has the INBOX. at the start and the other doesnt i would ahve thought they should have been the same. have you looked in your dovecot logs to see if there are any errors processing the file?


When I said, it was processing the scripts, I was assuming the RC and the managesieve-parts were working cause the scripts writtein RC, where stored on the server via managesieve.

Maybe if I understand how it works, than I might be able to troubleshoot better. Furthermore, INBOX.Trash is just another folder in the Maildir.

Grtz, and thnx for the responses

Offline JohnDoh

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2,855
managesieve not filtering
« Reply #5 on: February 18, 2010, 02:46:09 AM »
The sieve plugins for RC are just sieve clients there is no filtering done in RC, you must setup your server to read the sieve files and perform the filtering when it delivers the mail.
Roundcube Plugins: Contextmenu, SpamAssassin Prefs, and more…

Offline raiden

  • Newbie
  • *
  • Posts: 4
managesieve not filtering
« Reply #6 on: February 18, 2010, 03:18:46 AM »
Hey John,

Sorry for the n00b questions. So if I understand correctly, mypostfix needs to read the sieverules, and deliver it to the right dir. Managesieve by itself is a manner to manage te sieverules (as the name says  :confused:)

Thanks

Offline JohnDoh

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2,855
managesieve not filtering
« Reply #7 on: February 19, 2010, 11:47:05 AM »
well it depends on your setup if postfix actually delivers your email then that will need to read the sieve files, if it gives it to dovecot to deliver then dovecot will need to read the files.
Roundcube Plugins: Contextmenu, SpamAssassin Prefs, and more…

Offline q3media

  • Newbie
  • *
  • Posts: 1
Same here!
« Reply #8 on: February 26, 2010, 03:54:36 AM »
I'm with you on this one.
I have squirrelmail with avelsieve running on the same system.
That seems to be working OK.

So sieve is doing fine.

But managesieve filters from RC are not applied.
They are getting written but nothing seems to happen…

Let me know what I can supply to resolve this issue.

Offline karatha

  • Newbie
  • *
  • Posts: 1
managesieve not filtering
« Reply #9 on: March 07, 2010, 01:57:44 PM »
I have a global  rule for spam. I done it on the server console and it's working correctly:

require ["fileinto"];
# Move spam to spam folder
if header :contains "X-Spam-Flag" ["YES"] {
fileinto "SPAM";
stop;
}

But I  have similar problem with managesieve plugin . I can create  modify the rules but that doesn't work.

require ["fileinto"];
# rule:[Test_rule]
if anyof (header :contains "Subject" "Apple")
{
        fileinto "INBOX.Test";
}

It doesn't work. If I modify it manualy (with mcedit):  "fileinto "INBOX.Test"; " ----> "fileinto "Test"; " It start to work.
So it looks like the "INBOX" at the begin cause the problem.

Can anybody help me? :o

Offline JohnDoh

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2,855
managesieve not filtering
« Reply #10 on: March 10, 2010, 05:44:01 AM »
you could try the sieverules plugin, rather than managesive. this has an option in the config to turn off the IMAP root.
Roundcube Plugins: Contextmenu, SpamAssassin Prefs, and more…

Offline katie

  • Newbie
  • *
  • Posts: 5
managesieve not filtering
« Reply #11 on: March 11, 2010, 06:39:41 AM »
Quote from: Granada;25606

....
 maybe dovecot does have some similiar feature to track down the problem
....

FYI only:

Messagelog with Sieve-hit in Dovecot:
(xxxxxxx = anonymized)

Code: [Select]
Mar 11 12:02:06 mx1 [B][COLOR=DarkRed]dovecot[/COLOR][/B]: deliver(xxxx@xxxxxxxxxxx.xx): [B][COLOR=DarkRed]sieve[/COLOR][/B]: msgid=<4b98cdacf006b_5a14127b298380571d@mx002.twitter.com.tmail>: stored mail into mailbox 'SozNW.twitter'
« Last Edit: March 11, 2010, 06:40:37 AM by katie »

Offline mich@l

  • Newbie
  • *
  • Posts: 1
connect server managiesieve
« Reply #12 on: March 13, 2010, 04:48:08 PM »
Hello

I have problem with configuration plugin managiesieve.
I install this plugin but don't connect with server managiesieve.
How repair this problem ?

Offline menno

  • Newbie
  • *
  • Posts: 5
managesieve not filtering
« Reply #13 on: March 15, 2010, 07:44:47 PM »
Are there any plugins that can work with procmail instead of sieve rules?

Offline nessudo

  • Newbie
  • *
  • Posts: 2
managesieve not filtering
« Reply #14 on: March 15, 2010, 09:15:51 PM »
I'm new and have a few questions ... is there anyone there to help