+ Reply to Thread
Page 1 of 2 1 2 LastLast
Results 1 to 10 of 19

Thread: managesieve not filtering

  1. #1
    raiden is offline Roundcube Newcomer
    Join Date
    Feb 2010
    Posts
    4
    Downloads
    0
    Uploads
    0

    Default managesieve not filtering

    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:
     
    # 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

  2. #2
    raiden is offline Roundcube Newcomer
    Join Date
    Feb 2010
    Posts
    4
    Downloads
    0
    Uploads
    0

    Default

    Nobody ? JohnDoh ?

  3. #3
    JohnDoh is offline Super Moderator
    Join Date
    May 2007
    Posts
    1,206
    Downloads
    6
    Uploads
    0

    Default

    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 Patches: Sieverules, SpamAssassin Prefs, and more…

  4. #4
    Granada is offline Registered User
    Join Date
    Jan 2010
    Posts
    34
    Downloads
    0
    Uploads
    0

    Default

    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:
    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

  5. #5
    raiden is offline Roundcube Newcomer
    Join Date
    Feb 2010
    Posts
    4
    Downloads
    0
    Uploads
    0

    Default

    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.

    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

  6. #6
    JohnDoh is offline Super Moderator
    Join Date
    May 2007
    Posts
    1,206
    Downloads
    6
    Uploads
    0

    Default

    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 Patches: Sieverules, SpamAssassin Prefs, and more…

  7. #7
    raiden is offline Roundcube Newcomer
    Join Date
    Feb 2010
    Posts
    4
    Downloads
    0
    Uploads
    0

    Default

    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 )

    Thanks

  8. #8
    JohnDoh is offline Super Moderator
    Join Date
    May 2007
    Posts
    1,206
    Downloads
    6
    Uploads
    0

    Default

    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 Patches: Sieverules, SpamAssassin Prefs, and more…

  9. #9
    q3media is offline Roundcube Newcomer
    Join Date
    Feb 2010
    Posts
    1
    Downloads
    0
    Uploads
    0

    Default Same here!

    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.

  10. #10
    karatha is offline Roundcube Newcomer
    Join Date
    Mar 2010
    Posts
    1
    Downloads
    0
    Uploads
    0

    Default

    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?

+ Reply to Thread
Page 1 of 2 1 2 LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts