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 07-07-2008, 09:09 AM
Outstanding Member
 
Posts: 708
Default Sieve filtering not always working post-5.0.5

Emails from bugzilla.zimbra.com no longer get filtered into my "zimbra-bugzilla" folder. Why not? My other sieve rules seem to work OK. All the bugzilla mail lands in my INBOX.

First noticed after the upgrade of bugzilla.zimbra.com and upgrade of my server from 5.0.5->5.0.6, which happened the same day. Still a problem after upgrading my server to 5.0.7.

I've snipped a few "fileinto: (something other than INBOX); stop" rules, but otherwise this is my sieve script.
Code:
zimbraMailSieveScript: require ["fileinto", "reject", "tag", "flag"];

# logwatch-root
if allof (header :contains "from" "root@" ,
 header :contains "subject" "LogWatch for" )
{
    fileinto "root";
    stop;
}
# backups no news is good news
if allof (header :matches "subject" "*backup-reports* SUCCEEDED" ,
 header :matches "from" "root <root@ELIDED>" )
{
    fileinto "/Trash";
    stop;
}
# theclub
if anyof (header :is "sender" "owner-theclub@northfieldbikeclub.org" )
{
    fileinto "/Sorted/theclub";
    stop;
}
# Trash successful ZCS backups
if allof (header :contains "from" "admin@ELIDED" ,
 header :contains "to" "admin@ELIDED" ,
 header :is "subject" "ZCS Backup Report: SUCCESS" )
{
    fileinto "/Trash";
    stop;
}
# Discard zmbackup cron: http://bugzilla.zimbra.com/show_bug.cgi?id=19992
if allof (header :contains "from" "root@ELIDED" ,
 header :contains "to" "zimbra@ELIDED" ,
 header :contains "subject" "Cron <zimbra@mail2> /opt/zimbra/bin/zmbackup" )
{
    discard;
    stop;
}
# admin@ phishing
if allof (header :contains "from" "admin@ELIDED" ,
 header :contains "to" "admin@ELIDED" ,
 header :contains "subject" "VIRUS (HTML.Phishing" )
{
    fileinto "/Trash";
    stop;
}
# root
if anyof (header :contains "to" "root@ELIDED" )
{
    fileinto "root";
    stop;
}
# openexchange doesn't seem to honor unsubscribes
if anyof (header :contains "from" "portal-bounces@open-xchange.com" )
{
    discard;
    stop;
}
# zimbra-bugzilla
if allof (header :contains "from" "DONOTREPLY@zimbra.com" ,
 exists "X-Bugzilla-Reason:" )
{
    fileinto "zimbra-bugzilla";
    stop;
}
# store2 disk usage is high but stable
if allof (header :contains "from" "admin@" ,
 header :contains "subject" "Service /dev/mapper/store2p1 started on" )
{
    fileinto "Trash";
    stop;
}
# drop backup1 swatch
if allof (header :contains "from" "admin@" ,
 header :contains"subject" "Service /dev/mapper/backup1 started on"
 )
{
    discard;
    stop;
}
# zimbra-bugzilla2
if allof (header :contains "from" "DONOTREPLY@zimbra.com" ,
 header :matches "subject" "RE: [Bug*" )
{
    fileinto "zimbra-bugzilla";
    stop;
}
And here is selected source of yet another message that landed in my INBOX, but shouldn't have.

Code:
Return-Path: apache@zimbra.com
Date: Mon, 7 Jul 2008 07:31:45 -0700
Message-Id: <200807071431.m67EVjcE017033@www3.zimbra.com>
From: DONOTREPLY@zimbra.com
To: ELIDED
Subject: RE: [Bug 15320] zmrestore using restoreToTime option restores data
 after the specified time
X-Bugzilla-Reason: CC
In-Reply-To: <bug-15320-1250@http.bugzilla.zimbra.com/>
References: <bug-15320-1250@http.bugzilla.zimbra.com/>
Reply With Quote
  #2 (permalink)  
Old 07-14-2008, 06:24 AM
Intermediate Member
 
Posts: 21
Default

The strange thing is that the first rule »if allof (header :contains "from" "DONOTREPLY@zimbra.com" , exists "X-Bugzilla-Reason:" )« should match, too.

I know of problems with 'match' and folded subject lines - see the unfortunately still unconfirmed Bug #28644.
Reply With Quote
  #3 (permalink)  
Old 07-14-2008, 01:57 PM
Moderator
 
Posts: 6,236
Default

If you're concerned about sieve rules just dealing with Zimbra's bugzilla then the problem isn't you
Quote:
# zimbra-bugzilla
if allof (header :contains "from" "DONOTREPLY@zimbra.com" ,
exists "X-Bugzilla-Reason:" )
{
fileinto "zimbra-bugzilla";
stop;
The from after some of our upgrades & server moves is currently either:
DONOTREPLY@www1.zimbra.mail.ac4.yahoo.net
DONOTREPLY@www2.zimbra.mail.ac4.yahoo.net
DONOTREPLY@www3.zimbra.mail.ac4.yahoo.net
DONOTREPLY@www4.zimbra.mail.ac4.yahoo.net
We'll look into correcting that.

You could change that filter to do a 'anyof' if you don't interact with other bugzillas, or still do 'allof' with a header contains and do subject contains '[Bug' instead of the DONOTREPLY@zimbra.com address - again if you dont interact with others but you could do X-Bugzilla-Component: ZCS or just add all the 4 frontend addresses above.

Some more new headers in this version if you'd like to sort your mail even more:
X-Bugzilla-Reason:
X-Bugzilla-Type:
X-Bugzilla-Watch-Reason:
X-Bugzilla-Product:
X-Bugzilla-Component:
X-Bugzilla-Keywords:
X-Bugzilla-Severity:
X-Bugzilla-Who:
X-Bugzilla-Status:
X-Bugzilla-Priority:
X-Bugzilla-Assigned-To:
X-Bugzilla-Changed-Fields:
Reply With Quote
  #4 (permalink)  
Old 07-14-2008, 08:02 PM
Moderator
 
Posts: 6,236
Default

Bugzilla is now corrected back to DONOTREPLY@zimbra.com

Though I realize that still doesn't explain Rich's email that has that already had the old address & didn't catch on either of the 2 rules...
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.