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 01-20-2010, 07:05 AM
Junior Member
 
Posts: 6
Default [SOLVED] Whitelisting in V6

Quote:
Originally Posted by brained View Post
Code:
#!/bin/bash
ACC=`/opt/zimbra/bin/zmprov gaa`
for i in $ACC
do
/opt/zimbra/bin/zmmailbox -z -m $i gact | grep -u email: | sort | uniq | sed -e 's/email:/whitelist_from/g' >> /tmp/autowhitelistall.tmp
done
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
Reply With Quote
  #2 (permalink)  
Old 01-20-2010, 11:00 AM
Moderator
 
Posts: 7,928
Default

What do you wish to achieve ? as the original post was from 2008.
__________________
Reply With Quote
  #3 (permalink)  
Old 01-20-2010, 11:03 AM
Junior Member
 
Posts: 6
Default

I'd like users to be able to contribute to a whitelist by adding addresses to their contact list
Reply With Quote
  #4 (permalink)  
Old 01-20-2010, 11:05 AM
Moderator
 
Posts: 7,928
Default

You will need to follow Improving Anti-spam system - Zimbra :: Wiki first to enable whitelisting. Have you tried the script ?
__________________
Reply With Quote
  #5 (permalink)  
Old 01-20-2010, 11:15 AM
Junior Member
 
Posts: 6
Default

I tried on a test box that was upgraded from 5.0.18 to 6.0.4 without success.

ERROR: account.NO_SUCH_ACCOUNT (no such account: gact)

Thought I would ask before I broke it...
Reply With Quote
  #6 (permalink)  
Old 01-20-2010, 11:26 AM
Moderator
 
Posts: 7,928
Default

Change
Code:
ACC=`/opt/zimbra/bin/zmprov gaa`
to
Code:
ACC=`/opt/zimbra/bin/zmprov -l gaa`
__________________
Reply With Quote
  #7 (permalink)  
Old 01-20-2010, 11:32 AM
Junior Member
 
Posts: 6
Default

Works same as on 4.0x versions.

Thanks!
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.