ML
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    Zimbra Filter rules?

    IT Discussion
    zimbra
    3
    5
    1.0k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • K
      killmasta93
      last edited by scottalanmiller

      Hi i was wondering if someone has accomplished what im trying to do,
      Currently i need to create a filter for all the email users and future users.
      I could not find a way on the web console to add that filter without doing one by one,
      I did see this command

      zmmailbox addFilterRule
      

      but it would be the same way adding one by one so not sure if any more ideas?

      Thank you

      S 1 Reply Last reply Reply Quote 1
      • S
        scottalanmiller @killmasta93
        last edited by

        @killmasta93 Never tried to do Zimbra filters on a global scale like that. No idea if that is possible.

        K 1 Reply Last reply Reply Quote 0
        • K
          killmasta93 @scottalanmiller
          last edited by

          @scottalanmiller
          found out how to do it

          first enable headers

          zmprov mc default zimbraSieveEditHeaderEnabled TRUE
          

          then create filter

          cat /tmp/myfilters
          
          require ["fileinto", "reject", "tag", "flag", "editheader"];
          
          #Filter email based on a subject
          if header :contains "Subject" [
            "SPAM"
            ]
          {
              fileinto "Junk";
              stop;
          }
          

          then copy the sieve filters

          cat /tmp/myfilters |xargs -0 zmprov md domain.com zimbraAdminSieveScriptBefore
          

          and it works

          D 1 Reply Last reply Reply Quote 1
          • D
            dbeato @killmasta93
            last edited by

            @killmasta93 BUt did you mover that file to another location or just passed the file to the configuration?

            K 1 Reply Last reply Reply Quote 0
            • K
              killmasta93 @dbeato
              last edited by

              @dbeato the filter moves any subject that has SPAM to the folder junk which adds to all the domains instead of one by one

              1 Reply Last reply Reply Quote 0
              • 1 / 1
              • First post
                Last post