You don't need to. Spamassassin reads all files in the /etc/mail/spamassassin directory ending with .cf. So when you restart the daemon it reads the newly added or changed file.
That seems to be the beauty of it. Be warned though the last file in the directory will overwrite any existing rules that other files may have loaded. So, as someone else mentioned to me, you need your most critical rules to be in zzz.cf (or something like that). Gary -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Rose, Bobby Sent: Thursday, December 04, 2003 5:35 PM To: [EMAIL PROTECTED] Subject: RE: [SAtalk] bigevil.cf + rsync? So how are you getting this cf to be included with local.cf without combining? -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Gary Smith Sent: Thursday, December 04, 2003 7:50 PM To: Peter Kiem; [EMAIL PROTECTED] Subject: RE: [SAtalk] bigevil.cf + rsync? I'm actually a windows guy who has been converting to linux for some time so my scripting is rusty and primitive (cause that's what I know) but it works. This came from my /etc/cron.hourly/bigevil.sh file. #!/bin/sh # This file updates the big evil policy file for spam assassin DATE=`date +"%Y%m%d-%H%M"` if [ -f bigevil.cf ] then rm -f bigevil.cf fi if [ -f /tmp/bigevil.cf ] then rm -f bigevil.cf fi wget -N http://www.merchantsoverseas.com/wwwroot/gorilla/bigevil.cf <http://www.merchantsoverseas.com/wwwroot/gorilla/bigevil.cf> \ -O /tmp/bigevil.cf \ 2>&1 | grep -q 'saved' if [ $? = 0 ] ; then cmp /tmp/bigevil.cf /etc/mail/spamassassin/bigevil.cf >/dev/null 2>&1 if [ $? -ne 0 ] then mv /etc/mail/spamassassin/bigevil.cf /etc/mail/spamassassin/bigevil.cf.$DATE mv /tmp/bigevil.cf /etc/mail/spamassassin/bigevil.cf echo "BIG EVIL has changed on `hostname`. The new evil is `head -n 1 /etc/mail/spamassassin/bigevil.cf`" \ | mutt [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> \ -s "The big evil policy has been updated" -a /etc/mail/spamassassin/bigevil.cf /etc/init.d/spamd restart > /dev/null 2>&1 /dev/null #else #files are the same fi fi I added some logic so I could keep a copy of the origial bigevil.cf scipt in case I needed to roll back or something. -----Original Message----- From: [EMAIL PROTECTED] on behalf of Peter Kiem Sent: Thu 12/4/2003 4:14 PM To: [EMAIL PROTECTED] Cc: Subject: [SAtalk] bigevil.cf + rsync? Hi, Any chance we can get rsync access to bigevil.cf so we can autoupdate whenever you change your rules? -- Regards, +-----------------------------+---------------------------------+ | Peter Kiem .^. | E-Mail : <[EMAIL PROTECTED]> | | Zordah IT /V\ | Mobile : +61 0414 724 766 | | IT Consultancy & /( )\ | WWW : www.zordah.net | | Internet Services ^^-^^ | ICQ : "Zordah" 866661 | +-----------------------------+---------------------------------+ My current spamtrap address is [EMAIL PROTECTED] ------------------------------------------------------- This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for IBM's Free Linux Tutorials. Learn everything from the bash shell to sys admin. Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click _______________________________________________ Spamassassin-talk mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/spamassassin-talk NHYÞéX'uS+l({^Ø,T^lz|$YlJ('èLZxîj[ yzb kay^[h+vh Xz0i&bt Ætrjj~zqzj NHYÞéX'uS+l({^Ø,T^lz|$YlJ('èLZxîj[ yzb kay^[h+vh Xz0i&bt Ætrjj~zqzj áÄë^¨¥Ë)¢{(ç[ÈL.)îÅ;¢¸À^rjw±¥êírÈ5Eè®;¬¶ÈZ®§Ê«²H¥Ä{©~ÈËç{±Nëh®&¥°·®w¯z¼)à~º&¶jÈl ée¶2±§fp¥É'£m¶ÿiÛ(±ÙÜoÚv'uÛZÝ÷ïZ)rX*Z«,jË"Öf¢)à+-J¦j˲ȵ©d+-²Ê.Ç¢¸ëa¶Úlÿùb²Û,¢êÜyú+éÞùb²Û?+-wèþÊZ«,jË"Ö