I am running SA 3.0 on a Mandrake 10.1 server with Procmail / Sendmail spamd is running and I have set up my procmailrc to send all stopped spam to a file: /var/spool/mail/STOPPED_SPAM (procmailrc at end of this post)
Also, I have set up local.cf to rewrite the subject. (see config below) spamd is started with an init script with the following parameters: SPAMDOPTIONS="-d -x -m5" I dont use -c because I dont want to use userconfig files, which is also why -x is there. Sendmail is working fine, and email seems to be piped fine through SA, I can check the headers and see the stuff SA adds. When it IS spam, it gets tagged properly in the headers but the subject is not being rewritten and the email is not being redirected to the /var/spool/mail/STOPPED_SPAM file as I indicate in my procmailrc file. I just dont understand why my local.cf / procmailrc doesnt seem to be doing what it should. I want SA running site wide for all inbound email, and all tagged spam going to a central mail box, with one site wide prefs file (which is what I though local.cf is) and systemwide files for bayes and autolearn etc so users never have to deal with it. Most dont have shell access and cannot set their own .procmailrc or user_prefs for spamassassin (these files do not currently exist in any users directory.) Any ideas? I've been going nuts on this for about 3 days trying a ton of different things. Thanks all :) Joe Jenkins Radian ---- sendmail.cf procmail stuff ##### $Id: procmail.m4,v 8.22 2001/11/12 23:11:34 ca Exp $ ##### Mprocmail, P=/usr/bin/procmail, F=DFMmSDFMhun, S=EnvFromSMTP/HdrFromSMTP, R=EnvToSMTP/HdrFromSMTP, T=DNS/RFC822/X-Unix, A=procmail -m $h $g $u Mlocal, P=/usr/bin/procmail, F=lsDFMAw5:/|@qSPfhn9, S=EnvFromL/HdrFromL, R=EnvToL/HdrToL, T=DNS/RFC822/X-Unix, A=procmail -t -Y -a $h -d $u Mprog, P=/usr/sbin/smrsh, F=lsDFMoqeu9, S=EnvFromL/HdrFromL, R=EnvToL/HdrToL, D=$z:/, T=X-Unix/X-Unix/X-Unix, A=smrsh -c $u -------------------------------- # SpamAssassin sample procmailrc # ============================== # The following line is only used if you use a system-wide /etc/procmailrc. # See procmailrc(5) for infos on what it exactly does, the short version: # * It ensures that the correct user is passed to spamd if spamc is used # * The folders the mail is filed to later on is owned by the user, not # root. DROPPRIVS=yes # Pipe the mail through spamassassin (replace 'spamassassin' with 'spamc' # if you use the spamc/spamd combination) # # The condition line ensures that only messages smaller than 250 kB # (250 * 1024 = 256000 bytes) are processed by SpamAssassin. Most spam # isn't bigger than a few k and working with big messages can bring # SpamAssassin to its knees. # # The lock file ensures that only 1 spamassassin invocation happens # at 1 time, to keep the load down. # :0fw: spamassassin.lock * < 256000 | spamc MAILDIR=/var/spool/mail :0 * ^X-Spam-Flag: YES STOPPED_SPAM -/etc/mail/spamassassin/local.cf--------------------------------------------------------------------------------------------- # SpamAssassin config file for version 2.5x # generated by http://www.yrex.com/spam/spamconfig.php (version 1.01) # How many hits before a message is considered spam. required_hits 5.0 # Whether to change the subject of suspected spam rewrite_subject 1 # Text to prepend to subject if rewrite_subject is used subject_tag *****SPAM***** # Encapsulate spam in an attachment report_safe 2 # Use terse version of the spam report use_terse_report 0 # Enable the Bayes system use_bayes 1 # Enable Bayes auto-learning auto_learn 1 # Enable or disable network checks skip_rbl_checks 0 use_razor2 1 use_dcc 1 use_pyzor 1 # Mail using languages used in these country codes will not be marked # as being possibly spam in a foreign language. # - english ok_languages en # Mail using locales used in these country codes will not be marked # as being possibly spam in a foreign language. ok_locales en