Am 05.03.2015 um 15:25 schrieb users@spamassassin.apache.org:
Am 05.03.2015 15:18, schrieb Reindl Harald:
and *how* to disable a plugin?

Just comment them out in the *.pre files in your config directory

that's it - thanks!

the service i started with systemd as unprivileged user with no logging and "spamc -s 20000000 --port=10029 < sample.eml" results with only the bayes hits in the report header for grep - perfect

test skript with 7 messages:
real    0m1.153s
user    0m0.043s
sys     0m0.093s

maybe stil tuneable to not give back the whole message, but that's not so important given that now a bundle of messages are classified below two seconds compared with some seconds per corpus-sample
________________________________________________________________________

/usr/bin/perl -T -w /usr/bin/spamd -c -H --max-children=1 --min-children=0 --min-spare=0 --max-spare=0 --max-conn-per-child=1000000 --port=10029 --siteconfigpath=/etc/mail/spamassassin-debug --syslog=stderr 2>/dev/null
________________________________________________________________________

[root@localhost:/etc/mail/spamassassin-debug]$ cat init.pre
loadplugin Mail::SpamAssassin::Plugin::Check
loadplugin Mail::SpamAssassin::Plugin::Bayes
________________________________________________________________________

[root@localhost:/etc/mail/spamassassin-debug]$ cat local.cf
# skip network tests
dns_available                    no

# same bayes configuration as live service
bayes_path                       /var/lib/spamass-milter/.spamassassin/bayes
use_learner                      1
use_bayes                        1
use_bayes_rules                  1
bayes_use_hapaxes                1
bayes_expiry_max_db_size         50000000
bayes_auto_expire                0
bayes_auto_learn                 0
bayes_learn_during_report        0
bayes_learn_to_journal           1

# header configuration
clear_headers
fold_headers                     1
report_safe                      0
add_header                       all Report _REPORT_

# adjust bayes scoring
score BAYES_00                   -3.5
score BAYES_05                   -2.0
score BAYES_20                   -1.0
score BAYES_40                   -0.5
score BAYES_50                   2.0
score BAYES_60                   3.5
score BAYES_80                   5.0
score BAYES_95                   6.5
score BAYES_99                   7.5
score BAYES_999                  0.4

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to