On Mon, December 19, 2005 12:30 pm, Jean-Paul Natola said: > That was my thought, as all my users are windows users--- > > I guess the question would be phrased as, "can someone guide me , or point me in the direction of building a script/utility that would grab the file from a network location , then copy the entries into said cf file".
If you have a linux server, you could use something, and this is off the top of my head, like this: #!/bin/sh cnt=0 WLFL=/var/www/html/whitelist.src TARGET=/etc/mail/spamassassin/whitelist.cf CHK=`cat $WLFL|wc -l` if [ "$CHK" -gt '1' ] ; then until [ "$cnt" -ge "$CHK" ] ; do cnt=$(($cnt+1)) LN=`cat $WLFL|head -n$cnt|tail -n1` LN=`echo $LN|tr 'A-Z' 'a-z'` if [ "$LN" = '' ] ; then : else NCHK=`cat $TARGET|grep $LN` NCHK=`echo $NCHK|tr 'A-Z' 'a-z'` if [ "$NCHK" = '' ] ; then : else echo $LN >> $TARGET fi fi done fi To Better-Scripters-Than-Me: would this work? I know there's probably a better way, but if it works as written, it would avoid creating duplicate email addresses. Karl > > -----Original Message----- > From: Loren Wilton [mailto:[EMAIL PROTECTED] > Sent: Monday, December 19, 2005 12:07 PM > To: users@spamassassin.apache.org > Subject: Re: whitelist file > > A file called for instance "whilelist.cf" is a text file. You could have one of those that users could edit in the SA site rules directory, but it would generally be a bad idea. > > If users have shell accounts, they could I believe put whitelist entries in user_prefs in their .spamassassin directories, even without > allow_user_rules > set. > > You could write some sort of tool or web app that would periodically harvest > user whitelist entries from defined locations and add them to a > whitelist.cf > file in the normal location for site rules. > > Loren > > > ----- Original Message ----- > From: "Jean-Paul Natola" <[EMAIL PROTECTED]> > To: <users@spamassassin.apache.org> > Sent: Monday, December 19, 2005 8:41 AM > Subject: whitelist file > > > Hi all, > > I was wondering how I can go about having SA reference a file for whitelisitng. > > In other words , instead of manually editing the cf file, can I have a text > file on the network that users can go to , enter the address and domain they > are whitelisitng and have SA reference that ? > > Does that seem like a feasible solution? > > > > > > > Jean-Paul Natola > Network Administrator > Information Technology > Family Care International > 588 Broadway Suite 503 > New York, NY 10012 > Phone:212-941-5300 xt 36 > Fax: 212-941-5563 > Mailto: [EMAIL PROTECTED] > > -- karl _/ _/ _/ _/_/_/ ____________ __o _/ _/ _/ _/ _/ ____________ _-\<._ _/_/ _/ _/_/_/ (_)/ (_) _/ _/ _/ _/ ...................... _/ _/ arl _/_/_/ _/ earson [EMAIL PROTECTED] --- Senior Consulting Sys/DB Analyst http://consulting.ourldsfamily.com --- My Thoughts on Terrorism In America: http://www.ourldsfamily.com/wtc.shtml --- A right is not what someone gives you; it's what no one can take from you. -Ramsey Clark --- -- karl _/ _/ _/ _/_/_/ ____________ __o _/ _/ _/ _/ _/ ____________ _-\<._ _/_/ _/ _/_/_/ (_)/ (_) _/ _/ _/ _/ ...................... _/ _/ arl _/_/_/ _/ earson [EMAIL PROTECTED] --- Senior Consulting Sys/DB Analyst http://consulting.ourldsfamily.com --- My Thoughts on Terrorism In America: http://www.ourldsfamily.com/wtc.shtml --- A right is not what someone gives you; it's what no one can take from you. -Ramsey Clark --- ------------------------------------------------------- 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 -- squirrelmail-users mailing list Posting Guidelines: http://www.squirrelmail.org/wiki/MailingListPostingGuidelines List Address: squirrelmail-users@lists.sourceforge.net List Archives: http://news.gmane.org/thread.php?group=gmane.mail.squirrelmail.user List Archives: http://sourceforge.net/mailarchive/forum.php?forum_id=2995 List Info: https://lists.sourceforge.net/lists/listinfo/squirrelmail-users -- karl _/ _/ _/ _/_/_/ ____________ __o _/ _/ _/ _/ _/ ____________ _-\<._ _/_/ _/ _/_/_/ (_)/ (_) _/ _/ _/ _/ ...................... _/ _/ arl _/_/_/ _/ earson [EMAIL PROTECTED] --- Senior Consulting Sys/DB Analyst http://consulting.ourldsfamily.com --- My Thoughts on Terrorism In America: http://www.ourldsfamily.com/wtc.shtml --- A right is not what someone gives you; it's what no one can take from you. -Ramsey Clark ---