Anne wrote:

> If I'm using Spam Assassin through amavis, can I still use user_prefs in 
> addition to the local.cf for whitelisting...so individuals can have 
> their own whitelists?  if so, can they add to that list themselves?

The *only* user_prefs file used is the one used by your amavisd-new
user, often something like /var/amavis/.spamassassin/user_prefs

One option is to use 'soft' w/b listing which can be done on a
per-recipient basis, and each recipient can have their own w/b hash
list. If you use static tables however, you have to reload amavisd-new
after each change.

See the example in the @score_sender_maps section of
amavisd.conf-sample, and modify it to use hash lists:

@score_sender_maps = ({  # a by-recipient hash lookup table
# # per-recipient personal tables  (NOTE: positive: black, negative: white)
# '[EMAIL PROTECTED]'  => [{'[EMAIL PROTECTED]' => 10.0}],
'[EMAIL PROTECTED]'  => [ read_hash("/home/user1/user1wb") ],
<...>

contents of /home/user1/user1wb:
.spamking.net 10.0
.elsevier.com -7.0
.ebay.com -7.0
.pentapharm.com -5.0
.enterprise-ireland.com -7.0
[EMAIL PROTECTED] -2.0

The problem with letting users maintain these files would be if they
delete or rename their file, amavisd-new would fail to start. It
would be better if the admin maintained them at some other location.
Maybe a script that allowed users to append to their file would work.

You can use SQL (or LDAP) which would not require a reload after each
change, but changes to the database would typically be done by an
admin, or a custom program could be used to allow users limited
update abilities.
http://www.ijs.si/software/amavisd/README.sql.txt

If you are interested in playing with MySQL, here is a start:
http://marc.theaimsgroup.com/?l=amavis-user&m=113479225731661&w=2

Gary V



-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
AMaViS-user mailing list
AMaViS-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amavis-user
AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3
AMaViS-HowTos:http://www.amavis.org/howto/

Reply via email to