Quote Originally Posted by brained View Post
ACC=`/opt/zimbra/bin/zmprov gaa`
for i in $ACC
/opt/zimbra/bin/zmmailbox -z -m $i gact | grep -u email: | sort | uniq | sed -e 's/email:/whitelist_from/g' >> /tmp/autowhitelistall.tmp
sed -i '/clean-wire.net/d' /tmp/autowhitelistall.tmp
sed -i '/chromedcomputing.com/d' /tmp/autowhitelistall.tmp
... Repeat for each domain on the Zimbra server ...
cat /tmp/autowhitelistall.tmp | sort | uniq > /opt/zimbra/conf/spamassassin/autowhitelistall.cf
rm -f /tmp/autowhitelistall.tmp
/opt/zimbra/bin/zmamavisdctl restart
It's ugly but does the job and it's easy for end users to understand that addressbook = whitelist.
Brian: Does this work with version 6.0.4