With the help of
http://www.goldfisch.at/knowwiki/bas...?do=export_raw (giving good examples)
How to check mailbox size of all accounts in Zimbra mail server. | STORY of AODDY. (good example of going through all accounts and doing a routine)
CLI of zimbra -h
I've come up with a set of instuctions and script which should complete the required task of making a NEW domain wide filter through seive. There probrably is an easier way to do it because it's creates a new rule for every email address. I see zimbra has maildrop but I'm to scared to tamper with main.cf and whatever .cf files. This set of instructions needs to be expanded to be put into a cron job in case of new email addresses and to not duplicate already made filters on email accounts.
So please nitpick, correct, enhance, or best of all give a better solution with detailed instructions.
**************************
cd /opt/zimbra/bin
vi filter1.sh
#!/bin/bash
all_account=`zmprov gaa |grep @whaterverdomain.com`
for account in ${all_account}
do
`zmmailbox -m ${account} -z afrl "nameoffilter1" active any header "subject" contains "***SPAM***" fileinto "Inbox/spam" stop`
done
:wq
su zimbra
./filter1.sh
*************
Use at your own risk