Quote:
Originally Posted by Ericx If you could write out instructions for setting up the backend. I think I could hash out the zimlet that asks for an email address on an empty click or it will extract the info from a drag -n- drop.
I will have to look through the classes for the java.io for the append command, but I think I could do it. |
A simple setup can be found at this page...
http://wiki.zimbra.com/index.php?tit...st.2FBlacklist
Basically you want 3 files called blacklist, spamlovers, whitelist that are owned by user root and group zimbra with -rw-rw-r-- permissions (chown root:zimbra *) and (chmod 664 *)
Code:
-rw-rw-r-- 1 root zimbra 0 2007-02-01 11:27 blacklist
-rw-rw-r-- 1 root zimbra 0 2007-02-01 11:27 spamlovers
-rw-rw-r-- 1 root zimbra 18 2007-02-01 11:34 whitelist
And you want these next lines added to both amavisd.conf and amavisd.conf.in:
Code:
# ENVELOPE SENDER SOFT-WHITELISTING / SOFT-BLACKLISTING
# Zimbra Zimlet Whitelist/Blacklist hash tables
# Files are located in /etc/zimbra/
read_hash(\%whitelist_sender, '/etc/zimbra/whitelist');
read_hash(\%blacklist_sender, '/etc/zimbra/blacklist');
read_hash(\%spam_lovers, '/etc/zimbra/spamlovers');
# End of Whitelist/Blacklist hash tables
After that you can whitelist or blacklist users and domains by just editing those files and they even accept wildcards.
Note: You MIGHT have to restart 'zmamavisdctl' after you make changes.