Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 65182 - spamassassin 3.0 : spamd doesn't work with the new DATADIR in /usr/share/spamassassin/core
Summary: spamassassin 3.0 : spamd doesn't work with the new DATADIR in /usr/share/spam...
Status: RESOLVED DUPLICATE of bug 65102
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High major (vote)
Assignee: Gentoo Perl team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-09-24 04:11 UTC by Michael Cramer
Modified: 2005-07-17 13:06 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Cramer 2004-09-24 04:11:47 UTC
while installing spamassassin and testing this nice programm i noticed that 

spamassassin -D < spammail          gives me the right result 14.3/5

but

starting spamd with -D
and then
spamc < spammail                    gives me 0/5 which can't be true

while looking through the output from the switch -D i noticed that spamd only works with these bayes-db interface nothing more

then i see this:
debug: SpamAssassin version 3.0.0
debug: Score set 0 chosen.
debug: Storable module v2.13 found
debug: Preloading modules with HOME=/tmp/spamd-23706-init
debug: ignore: test message to precompile patterns and load modules
debug: using "/etc/mail/spamassassin/init.pre" for site rules init.pre
debug: config: read file /etc/mail/spamassassin/init.pre
debug: using "/usr/share/spamassassin" for default rules dir
debug: using "/etc/mail/spamassassin" for site rules dir
debug: config: read file /etc/mail/spamassassin/local.cf
...
debug: added part, type: text/plain
debug: ---- MIME PARSER END ----
debug: failed to open '/usr/share/spamassassin/triplets.txt', cannot check dictionary
debug: bayes: Database connection established

and noticed that no rules were read.
so i copied  all files over to /usr/share/spamassassin
now when starting spamd things look like:
debug: SpamAssassin version 3.0.0
debug: Score set 0 chosen.
debug: Storable module v2.13 found
debug: Preloading modules with HOME=/tmp/spamd-23706-init
debug: ignore: test message to precompile patterns and load modules
debug: using "/etc/mail/spamassassin/init.pre" for site rules init.pre
debug: config: read file /etc/mail/spamassassin/init.pre
debug: using "/usr/share/spamassassin" for default rules dir
debug: config: read file /usr/share/spamassassin/10_misc.cf
debug: config: read file /usr/share/spamassassin/11_gentoo.cf
debug: config: read file /usr/share/spamassassin/20_anti_ratware.cf
debug: config: read file /usr/share/spamassassin/20_body_tests.cf
debug: config: read file /usr/share/spamassassin/20_compensate.cf
debug: config: read file /usr/share/spamassassin/20_dnsbl_tests.cf
debug: config: read file /usr/share/spamassassin/20_drugs.cf
debug: config: read file /usr/share/spamassassin/20_fake_helo_tests.cf
debug: config: read file /usr/share/spamassassin/20_head_tests.cf
debug: config: read file /usr/share/spamassassin/20_html_tests.cf
debug: config: read file /usr/share/spamassassin/20_meta_tests.cf
debug: config: read file /usr/share/spamassassin/20_phrases.cf
debug: config: read file /usr/share/spamassassin/20_porn.cf
debug: config: read file /usr/share/spamassassin/20_ratware.cf
debug: config: read file /usr/share/spamassassin/20_uri_tests.cf
debug: config: read file /usr/share/spamassassin/23_bayes.cf
debug: config: read file /usr/share/spamassassin/25_body_tests_es.cf
debug: config: read file /usr/share/spamassassin/25_hashcash.cf
debug: config: read file /usr/share/spamassassin/25_spf.cf
debug: config: read file /usr/share/spamassassin/25_uribl.cf
debug: config: read file /usr/share/spamassassin/30_text_de.cf
debug: config: read file /usr/share/spamassassin/30_text_fr.cf
debug: config: read file /usr/share/spamassassin/30_text_nl.cf
debug: config: read file /usr/share/spamassassin/30_text_pl.cf
debug: config: read file /usr/share/spamassassin/50_scores.cf
debug: config: read file /usr/share/spamassassin/60_whitelist.cf
debug: using "/etc/mail/spamassassin" for site rules dir
debug: config: read file /etc/mail/spamassassin/local.cf
...
debug: added part, type: text/plain
debug: ---- MIME PARSER END ----
debug: bayes: Database connection established


and this now works.


Also for these new SQL-thing
the conf.d/spamd script should contain
SPAMD_OPTS="-x -q -m 5"
Only a suggestion

Reproducible: Always
Steps to Reproduce:
1. emerge spamassassin
2. spamd -D
3. spamc < spammail
4. spamassassin -D < spammail

Actual Results:  
and there is now a big difference with the actual configuration in output, 
because spamassassin reads all rules, spamd not

Expected Results:  
spamd should read these rules
Comment 1 Michael Cummings (RETIRED) gentoo-dev 2004-09-25 06:14:46 UTC

*** This bug has been marked as a duplicate of 65102 ***