AW: RE: RE: CRM114 css not updating
UxBoD
uxbod at splatnix.net
Sat Aug 4 10:19:08 IST 2007
Steven,
I checked the listing you emailed me. I presume MS is running under apache:apache as you have files in reaver_cache with those IDs?
Have you set the perms on /etc/mail/spamassassin/crm114 ? Also, after making all the changes did you restart MS ?
Regards,
--[ UxBoD ]--
// PGP Key: "curl -s https://www.splatnix.net/uxbod.asc | gpg --import"
// Fingerprint: C759 8F52 1D17 B3C5 5854 36BD 1FB1 B02F 5DB5 687B
// Keyserver: www.keyserver.net Key-ID: 0x5DB5687B
// Phone: +44 845 869 2749 SIP Phone: uxbod at sip.splatnix.net
----- Original Message -----
From: "MailScanner Mailinglist" <mailscanner at home.carlo65.de>
To: "MailScanner discussion" <mailscanner at lists.mailscanner.info>
Sent: 04 August 2007 07:57:58 o'clock (GMT) Europe/London
Subject: AW: RE: RE: CRM114 css not updating
Steve,
just found 2 things in your crm114.cf, which need to be changed:
#crm114_learn 1
This line needs to be activated by removing the #
Same needs to be done for
#crm114_dynscore_factor -0.05
Regards,
Roland
-----Ursprüngliche Nachricht-----
Von: mailscanner-bounces at lists.mailscanner.info [mailto:mailscanner-bounces at lists.mailscanner.info] Im Auftrag von Steven Andrews
Gesendet: Samstag, 4. August 2007 02:06
An: MailScanner discussion
Betreff: RE: RE: CRM114 css not updating
Thanks for the tips; been down that road a few dozen times already; but I reviewed it just the same.
When I turn that option on, it does actually log mail to allmail.txt and I do get content into the reaver_cache under texts and prob_good; but no updates to the css files and no scoring.
Steve
-----Original Message-----
From: mailscanner-bounces at lists.mailscanner.info [mailto:mailscanner-bounces at lists.mailscanner.info] On Behalf Of MailScanner Mailinglist
Sent: Friday, August 03, 2007 7:39 PM
To: MailScanner discussion
Subject: AW: RE: CRM114 css not updating
Hi,
please make sure, you have copied the file /usr/share/doc/crm114-0/mailfilter.cf into the directory /etc/mail/spamassassin/crm114
Please make also sure you have the following files in your /etc/mail/spamassassin/crm114 directory:
priolist.mfp
allmail.txt
rewrites.mfp
Last but not least you need to set chmod -R 777 to /etc/mail/spamassassin/crm114/reaver_cache
Regards,
Roland
-----Ursprüngliche Nachricht-----
Von: mailscanner-bounces at lists.mailscanner.info [mailto:mailscanner-bounces at lists.mailscanner.info] Im Auftrag von Steven Andrews
Gesendet: Donnerstag, 2. August 2007 20:55
An: MailScanner discussion
Betreff: RE: CRM114 css not updating
I have.
Crm114.cf:
# these two lines are necessary to activate the plugin:
loadplugin crm114 crm114.pm
full CRM114_CHECK eval:check_crm()
# this high priority is not necessary. but running late allows us # to compare the CRM score and the result of all previous SA tests # # 899 is chosen as an optimization because FuzzyOCR runs at 900 # thus if CRM already yields a high SA score, # then FuzzyOCR will decide to skip its tests priority CRM114_CHECK 899
# commandline to execute CRM114
# default: crm -u ~/.crm114 mailreaver.crm #crm114_command /usr/local/bin/crm -u /var/amavis/.crm114 mailreaver.crm crm114_command /usr/bin/crm -u /etc/mail/spamassassin/crm114 mailreaver.crm
# let SA add header lines to processed mails #add_header all CRM114-Version _CRM114VERSION_ #add_header all CRM114-CacheID _CRM114CACHEID_ add_header all CRM114-Status _CRM114STATUS_ ( _CRM114SCORE_ )
# ignore existing X-Spam or X-Virus headers # if SpamAssassin is called by Amavis then use the same value as Amavis does.
# that way a SA-check from Amavis and on from the command line both see the same # Headers # default: 0 #crm114_remove_existing_spam_headers 1 #crm114_remove_existing_virus_headers 1
# dynamic score
# values: 0 - returns subtest results
# 1 - returns a dynamic CRM score (default)
#crm114_dynscore 1
# dynamic score normalization factor
# CRM score have much higher absolute values and different signs than SA scores # (usual ham-scores are between 15 and 40, scores from -10 to 10 are undecided, # previously seen spam easily gets -200).
# With dynamic scoring the SA score is calculated by: <CRM score> * crm114_dynscore_factor # # Notes: - this has to be a negative number!
# - the absolute value should be quite low (certainly <.3,
probably <=.2),
# otherwise the returned score would override all other tests.
# default: calculate factor so that CRM-score -25 yields the SA required spam threshold #crm114_dynscore_factor -0.05
# static scores
# without dynamic scores these scores are used # default values are respectively -3, 0, 3 for good, unsure, spam
#crm114_staticscore_good -3.0
#crm114_staticscore_unsure 0.0
#crm114_staticscore_spam 3.0
# should CRM114 be trained by SA?
# If enabled, then a call to Mail::SpamAssassin->learn() or # "spamassassin --report/--revoke" also calls the CRM114 plugin.
# Since CRM114 uses a "Train On Error" strategy the plugin will check the # reported mail and only learn it if it is not not classified correctly.
# default: 0
#crm114_learn 1
# should CRM114 be trained by SA-autolearn?
# If enabled, then SA's autolearn also calls the CRM114 plugin.
#
# This is different from :automatic_training: in CRM114's mailfilter.cf # because SA's score is influenced by several different factors while # CRM114 has to rely on its own classification.
# But anyway: Only activate this if you know what you're doing!
# default: 0
crm114_autolearn 1
# should we preserve the CRM114-CacheID for training or discard it?
#
# to use the cache enable it in mailfilter.cf, set this option, and # include the CacheID into all Mails with # "add_header all CRM114-CacheID _CRM114CACHEID_"
# -- otherwise disable this option to strip CacheIDs before training # default: 0 #crm114_use_cacheid 1
# should we skip CRM114 if other tests indicate certain spam/ham?
#
# disable CRM114 if a message already has a score (from other tests) # less than crm114_autodisable_negative_score or # more than crm114_autodisable_score.
#
# default: -999/999
# crm114_autodisable_negative_score -999 # crm114_autodisable_score 999
Output:
Using username "root".
Last login: Thu Aug 2 14:50:43 2007 from 192.168.1.200 [root at spamfilter ~]# cssutil -b -r /etc/mail/spamassassin/crm114/spam.css
Sparse spectra file /etc/mail/spamassassin/crm114/spam.css statistics:
Total available buckets : 1048577
Total buckets in use : 0
Total in-use zero-count buckets : 0
Total buckets with value >= max : 0
Total hashed datums in file : 0
Documents learned : 1
Features learned : 1
Average datums per bucket : 0.00
Maximum length of overflow chain : 0
Average length of overflow chain : 0.00
Average packing density : 0.00
[root at spamfilter ~]# cssutil -b -r
/etc/mail/spamassassin/crm114/nonspam.css
Sparse spectra file /etc/mail/spamassassin/crm114/nonspam.css
statistics:
Total available buckets : 1048577
Total buckets in use : 0
Total in-use zero-count buckets : 0
Total buckets with value >= max : 0
Total hashed datums in file : 0
Documents learned : 1
Features learned : 1
Average datums per bucket : 0.00
Maximum length of overflow chain : 0
Average length of overflow chain : 0.00
Average packing density : 0.00
-----Original Message-----
From: mailscanner-bounces at lists.mailscanner.info
[mailto:mailscanner-bounces at lists.mailscanner.info] On Behalf Of UxBoD
Sent: Thursday, August 02, 2007 2:55 PM
To: MailScanner discussion
Subject: Re: CRM114 css not updating
Have you set it to autolearn in crm114.cf ? What does it show if you do a cssutil -b -r spam.css and cssutil -b -r nonspam.css ?
Regards,
--[ UxBoD ]--
// PGP Key: "curl -s https://www.splatnix.net/uxbod.asc | gpg --import"
// Fingerprint: C759 8F52 1D17 B3C5 5854 36BD 1FB1 B02F 5DB5 687B //
Keyserver: www.keyserver.net Key-ID: 0x5DB5687B // Phone: +44 845 869
2749 SIP Phone: uxbod at sip.splatnix.net
----- Original Message -----
From: "Steven Andrews" <sandrews at andrewscompanies.com>
To: "MailScanner discussion" <mailscanner at lists.mailscanner.info>
Sent: Thursday, August 2, 2007 7:22:43 PM (GMT) Europe/London
Subject: CRM114 css not updating
Centos4
Been throught wiki regarding install twice and I haven't missed anything.
Spamassassin -D --lint shows it's being called and allmail.txt is catching incoming mail; no errors.
Running the test from MailWatch, blows up with:
[12961] dbg: crm114: crm114_command run 0.01892
ERROR: mailreaver.crm broke. Here's the error\: 0.02391
ERROR: 0.00025
/usr/bin/crm: *ERROR* 9E-05
For some reason, I was unable to write-open the file named allmail.txt
9E-05
Sorry, but this program is very sick and probably should be killed off.
8E-05
This happened at line 165 of file mailreaver.crm 8E-05 [12961] dbg:
info: leaving helper-app run mode 0.0009 [12961] dbg: crm114: call_crm returns (UNKNOWN, 0) 0.00069 [12961] warn: crm114: Error. Failed to get CRM114-Status. at /etc/mail/spamassassin/crm114.pm line 315.
I kind of expect that since it's running as apache; everything else as root.
So, I give it a quick chmod 777 and I get a little further:
[13748] dbg: crm114: crm114_command run 0.01103
ERROR: maillib.crm broke. Here's the error\: 0.06252
ERROR: 0.00026
/usr/bin/crm: *WARNING* 9E-05
Couldn't memory-map the table file spam.css 8E-05 I'll try to keep working. 7E-05 This happened at line 662 of file mailreaver.crm 8E-05 [13748] dbg: info: leaving helper-app run mode 0.00086 [13748] dbg:
crm114: call_crm returns (UNKNOWN, 0) 0.00069 [13748] warn: crm114:
Error. Failed to get CRM114-Status. at /etc/mail/spamassassin/crm114.pm line 315.
Got it, Ok, 777 for the css files too.
[14005] dbg: crm114: crm114_command run 0.02064 [14005] dbg: crm114:
found version 20070301-BlameBaltar ( TRE 0.7.5
(LGPL) ) MR-BD9991E2 0.07717
[14005] dbg: crm114: found CacheID sfid-20070802_140925_378605_D6AAF116
0.00043
[14005] dbg: crm114: found status UNSURE and score 0.00 0.00029 [14005]
dbg: crm114: found Notice Please train this message. 0.00029 [14005]
dbg: info: leaving helper-app run mode 0.00125 [14005] dbg: crm114:
call_crm returns (UNSURE, 0.00) 0.00069 [14005] dbg: crm114: score is 0.0000, translated to SA score: -0.0000, linear factor was -0.2000
Looks good; doublecheck spamassassin -D --lint show no errors.
The spam.css and nospam.css files still refuse to move beyond the timestamp from their creation time. Cssutil -b -r
/etc/mail/spamassassin/crm114 still shows the base info.
Messages have -0.00 CRM114_CHECK. I even set it to use static scoring and all I get is the unsure score. I do see items adding to the /reaver_cache/texts directory. Nothing in the other reaver_cache directories.
I've done the requisite banging on my mouse and pounding my head on the desk, but that didn't work either.
Any thoughts?
--
MailScanner mailing list
mailscanner at lists.mailscanner.info
http://lists.mailscanner.info/mailman/listinfo/mailscanner
Before posting, read http://wiki.mailscanner.info/posting
Support MailScanner development - buy the book off the website!
--
This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean.
--
This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean.
--
MailScanner mailing list
mailscanner at lists.mailscanner.info
http://lists.mailscanner.info/mailman/listinfo/mailscanner
Before posting, read http://wiki.mailscanner.info/posting
Support MailScanner development - buy the book off the website!
--
MailScanner mailing list
mailscanner at lists.mailscanner.info
http://lists.mailscanner.info/mailman/listinfo/mailscanner
Before posting, read http://wiki.mailscanner.info/posting
Support MailScanner development - buy the book off the website!
----------------------------------------------------------
Diese Nachricht wurde von mailMind(R) auf Viren und andere gefaehrliche Inhalte untersucht und ist sauber.
--- mailMind(R) - we have your Mailsecurity in mind!
http://www.mailmind.de ---
--
MailScanner mailing list
mailscanner at lists.mailscanner.info
http://lists.mailscanner.info/mailman/listinfo/mailscanner
Before posting, read http://wiki.mailscanner.info/posting
Support MailScanner development - buy the book off the website!
--
MailScanner mailing list
mailscanner at lists.mailscanner.info
http://lists.mailscanner.info/mailman/listinfo/mailscanner
Before posting, read http://wiki.mailscanner.info/posting
Support MailScanner development - buy the book off the website!
----------------------------------------------------------
Diese Nachricht wurde von mailMind(R) auf Viren und andere
gefaehrliche Inhalte untersucht und ist sauber.
--- mailMind(R) - we have your Mailsecurity in mind!
http://www.mailmind.de ---
--
MailScanner mailing list
mailscanner at lists.mailscanner.info
http://lists.mailscanner.info/mailman/listinfo/mailscanner
Before posting, read http://wiki.mailscanner.info/posting
Support MailScanner development - buy the book off the website!
--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
More information about the MailScanner
mailing list