Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
Go Back   Zimbra :: Forums > Zimbra Collaboration Suite > Administrators

Welcome to the Zimbra :: Forums!
Welcome, if you would like to post a comment please register. We also encourage you to explore all things Zimbra with our team and members of the community.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 05-25-2010, 06:18 PM
Loyal Member
 
Posts: 92
Question zmmailbox question - regular expression match in sieve mail filters?

AFAIK, sieve supports regular expressions. So, to the Sieve Enthusiasts of the World I ask you this - anyone care to post an example of it for what I type in for zmmailbox? Or maybe this is more of an issue where Zimbra uses Sieve but doesn't use all of it? that maybe regex support is some module that has to be integrated?

=== the short story ===

In the body of an email I have a like like this:

ip address: 10.123.45.1

I want to only match the above - but not this case:

ip address: 10.123.45.123

so when I'm in zmmailbox, this rule fails (with the space at the end):

afrl "testasdfasdf" active any body contains "ip address: 10.123.45.1 " redirect "blah@example.com" stop

=== long story ===

I have arpwatch setup on a few of our linux routers which basically sends email alerts if there are any changes in mac/ip combinations in arp. So, I've made the above rule to SMS page if that's happening so we can run around finding out who is arpspoofing our network.

In theory all this doesn't really matter, since we don't get that many false positives, and there is a plan to upgrade our switches to those that support port security.
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads

Why Join?

Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.

blog.zimbra.com




 

SEO by vBSEO ©2011, Crawlability, Inc.