Page 1 of 2 12 LastLast
Results 1 to 10 of 18

Thread: Mail filters not working all of the time..

  1. #1
    padrino121 is offline Member
    Join Date
    Feb 2007
    Posts
    12
    Rep Power
    8

    Default Mail filters not working all of the time..

    I am running 4.5.2 and recently added about 10 mail filters to organize mail from distribution lists, it basically moves mail to folders based on the To or CC. I have no errors or anything in the logs but mail is only being moved to the correct folders maybe 25% of the time. I checked numerous message headers and I can see no difference between those that were filed and those that are not. Does anyone know some troubleshooting steps I can take to try and figure out what might be happening?

    Thanks

  2. #2
    gersh is offline Loyal Member
    Join Date
    Jan 2007
    Posts
    86
    Rep Power
    8

    Default Mail filters not working all of the time

    Check the Filter rule and make sure the message is being moved to the assigned folder, not the root folder.

  3. #3
    bburtin is offline Zimbra Employee
    Join Date
    Sep 2005
    Posts
    78
    Rep Power
    9

    Default

    Hard to say what's going on. Things get tricky when you have ten filters. I suspect that there actually is a difference between the messages that get filtered and the ones that don't. Also, don't forget about the "Do not process additional filter rules" checkbox, which would cause subsequent filters to not get evaluated.

    If you're still having trouble, feel free to post the current value of the zimbraMailSieveScript and the message that's not being filtered as you would expect. Also, check the server logs to make sure that there aren't any errors that occur while processing the mail filters.

    Boris

  4. #4
    padrino121 is offline Member
    Join Date
    Feb 2007
    Posts
    12
    Rep Power
    8

    Default

    I reviewed my mail rules and decided to setup everything for partial instead of extact matches and it seems to have corrected my issue. In looking at the mail source I do not see any whitespace so I'm not sure why it was happening but using "contains" solved the issue.

    Thanks for your help since the pointer to the Sieve script got me thinking about it.

  5. #5
    htin is offline Intermediate Member
    Join Date
    Feb 2007
    Location
    Vancouver, BC, Canada
    Posts
    16
    Rep Power
    8

    Default

    I have the same problem. It seem like work while using 'contain', but not when I use 'matches pattern'. Anyone has similar experiences?

    Thanks!

  6. #6
    phoenix is offline Zimbra Consultant & Moderator
    Join Date
    Sep 2005
    Location
    Vannes, France
    Posts
    23,201
    Rep Power
    56

    Default

    Quote Originally Posted by htin View Post
    I have the same problem. It seem like work while using 'contain', but not when I use 'matches pattern'. Anyone has similar experiences?

    Thanks!
    It's difficult to comment, you'd have to post details of the filters and some of the messages that don't get caught by the filters.
    Regards


    Bill


    Acompli: A new adventure for Co-Founder KevinH.

  7. #7
    htin is offline Intermediate Member
    Join Date
    Feb 2007
    Location
    Vancouver, BC, Canada
    Posts
    16
    Rep Power
    8

    Default

    Quote Originally Posted by phoenix View Post
    It's difficult to comment, you'd have to post details of the filters and some of the messages that don't get caught by the filters.
    Thanks Bill for your comment. Here is detail as much as I can think of.

    I have job@domain.com, jobs@domain.com, job@anotherdomain.com and jobs@anotherdomain.com.

    I create filter using ‘To’ ‘matches pattern’ ‘job*@*.com’, then file into ‘Jobs’ folder, end with ‘Do not process additional filters - On’. Doesn’t work that way. Not only this ‘jobs’ one. I also have ‘sales’, ‘members’ and all others individual username.

    So, I change using ‘contain’ to each address, and that work fine. I’ve about 50 filters to sort about 120 email address. I didn’t have chance to test each one yet. I’ll post if I see anything more.

    I'm currently using 4.5.3 GA, upgrade from 4.5.0 -> 4.5.2 -> 4.5.3.

    Thanks!
    Last edited by htin; 03-28-2007 at 08:43 AM.
    [Working together for better community]

  8. #8
    phoenix is offline Zimbra Consultant & Moderator
    Join Date
    Sep 2005
    Location
    Vannes, France
    Posts
    23,201
    Rep Power
    56

    Default

    I've just done a test on my own server with those rules rules you describe and they work OK. This is the seive for the rules:
    Code:
    zimbraMailSieveScript: require ["fileinto", "reject", "tag", "flag"];
    
    # jobs
    if anyof (header :matches "to" "job*@*.com" ,
     header :matches "to" "job*@*.uk" )
    {
        fileinto "/jobs";
        stop;
    }
    It also works if I file into a sub-folder. You can list the filters by doing a 'zmprov ga user@domain.com' and look for the zimbraMailSeiveScript in the output - does it look anything like my example? The best thing to do is create a test account that you can test individual filters on. The only difference between your system and mine is that I've just upgraded to 4.5.4 but that shouldn't make any difference.
    Regards


    Bill


    Acompli: A new adventure for Co-Founder KevinH.

  9. #9
    htin is offline Intermediate Member
    Join Date
    Feb 2007
    Location
    Vancouver, BC, Canada
    Posts
    16
    Rep Power
    8

    Default

    I tested and this is what happen.

    - This one work fine;
    # htin
    if anyof (header :contains "to" "htin@" )
    {
    fileinto "htin";
    stop;
    }

    - This one does’t work;
    # htin
    if anyof (header :matches "to" "htin@*" )
    {
    fileinto "htin";
    stop;
    }

    - I also notice that 2 of the filters look different.

    # Sys Reports
    if anyof (header :contains "to" "admin@zimbra.samona.com" ,
    header :contains "to" "root@zimbra.samona.com" ,
    header :contains "to" "postmaster@zimbra.samona.com" )
    {
    stop;
    fileinto "Sys Reports";
    }

    [* Why ‘stop’ come before ‘fileinto’ in above filter.]


    # Sys report delete
    if anyof (header :contains "subject" "LogWatch for zimbra.samona.com" ,
    header :contains "subject" "Daily mail report from" )
    {
    stop;
    }

    [* I don’t know where is delete part in above filter. Is that normal?]

    PS: I created all filter from WebUI with Basic client.
    Thanks!
    Last edited by htin; 03-28-2007 at 10:20 AM.
    [Working together for better community]

  10. #10
    htin is offline Intermediate Member
    Join Date
    Feb 2007
    Location
    Vancouver, BC, Canada
    Posts
    16
    Rep Power
    8

    Default

    Quote Originally Posted by htin View Post
    # Sys Reports
    if anyof (header :contains "to" "admin@zimbra.samona.com" ,
    header :contains "to" "root@zimbra.samona.com" ,
    header :contains "to" "postmaster@zimbra.samona.com" )
    {
    stop;
    fileinto "Sys Reports";
    }

    [* Why ‘stop’ come before ‘fileinto’ in above filter.]

    # Sys report delete
    if anyof (header :contains "subject" "LogWatch for zimbra.samona.com" ,
    header :contains "subject" "Daily mail report from" )
    {
    stop;
    }

    [* I don’t know where is delete part in above filter. Is that normal?]
    I delete above 2 filters and re-created. Now look normal.

    # Sys Reports
    if anyof (header :contains "to" "admin@zimbra.samona.com" ,
    header :contains "to" "root@zimbra.samona.com" ,
    header :contains "to" "postmaster@zimbra.samona.com" )
    {
    fileinto "Sys Reports";
    stop;
    }
    # Sys repost delete
    if anyof (header :contains "subject" "LogWatch for zimbra.samona.com" ,
    header :contains "subject" "Daily mail report from" )
    {
    discard;
    stop;
    }

    But, 'matches pattern' still not working.
    [Working together for better community]

Page 1 of 2 12 LastLast

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Problems with port 25
    By yogiman in forum Installation
    Replies: 57
    Last Post: 06-13-2011, 01:55 PM
  2. Replies: 7
    Last Post: 02-03-2011, 07:01 AM
  3. fresh install down may be due to tomcat
    By gon in forum Installation
    Replies: 10
    Last Post: 07-25-2007, 08:09 AM
  4. DynDNS and Zimbra
    By afterwego in forum Installation
    Replies: 30
    Last Post: 04-01-2007, 03:34 PM
  5. receiveing mail
    By maybethistime in forum Administrators
    Replies: 15
    Last Post: 12-09-2005, 04:55 PM

Posting Permissions

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