Hi.
Disabled selinux and rebooted.
Same result.
Ran test command 6 times:
1. Content analysis details: (9.8 points, 5.0 required) - NO BAYES
2. Content analysis details: (9.8 points, 5.0 required) - NO BAYES
3. Content analysis details: (9.8 points, 5.0 required) - BAYES_40
4. Content analysis details: (9.9 points, 5.0 required) - NO BAYES
5. Content analysis details: (9.9 points, 5.0 required) - NO BAYES
6. Content analysis details: (9.7 points, 5.0 required) - BAYES_20
Can you confirm that bayes autolearning is off in the context of the postfix user? (see below)
Bayes autolearn is OFF, 100%
Do you have a /etc/MailScanner/spamassassin.conf that is a regular file and has a valid symlink to it at /etc/mail/spamassassin/mailscanner.cf ?
YES
Does your settings look like this in the file?
YES
When NO bayes:
Code: Select all
Nov 9 07:26:54.807 [7726] dbg: config: fixed relative path: /var/lib/spamassassin/4.000001/updates_spamassassin_org/23_bayes.cf
Nov 9 07:26:54.807 [7726] dbg: config: using "/var/lib/spamassassin/4.000001/updates_spamassassin_org/23_bayes.cf" for included file
Nov 9 07:26:54.807 [7726] dbg: config: read file /var/lib/spamassassin/4.000001/updates_spamassassin_org/23_bayes.cf
Nov 9 07:26:54.807 [7726] dbg: config: parsing file /var/lib/spamassassin/4.000001/updates_spamassassin_org/23_bayes.cf
Nov 9 07:26:54.880 [7726] dbg: config: fixed relative path: /var/lib/spamassassin/4.000001/updates_spamassassin_org/60_bayes_stopwords.cf
Nov 9 07:26:54.880 [7726] dbg: config: using "/var/lib/spamassassin/4.000001/updates_spamassassin_org/60_bayes_stopwords.cf" for included file
Nov 9 07:26:54.880 [7726] dbg: config: read file /var/lib/spamassassin/4.000001/updates_spamassassin_org/60_bayes_stopwords.cf
Nov 9 07:26:54.880 [7726] dbg: config: parsing file /var/lib/spamassassin/4.000001/updates_spamassassin_org/60_bayes_stopwords.cf
Nov 9 07:26:55.889 [7726] dbg: bayes: stopwords for languages enabled: en
Nov 9 07:26:55.908 [7726] dbg: bayes: learner_new self=Mail::SpamAssassin::Plugin::Bayes=HASH(0x5581a670b768), bayes_store_module=Mail::SpamAssassin::BayesStore::SQL
Nov 9 07:26:55.930 [7726] dbg: bayes: using username: postfix
Nov 9 07:26:55.930 [7726] dbg: bayes: learner_new: got store=Mail::SpamAssassin::BayesStore::SQL=HASH(0x5581a820bb28)
Nov 9 07:26:55.940 [7726] dbg: bayes: database connection established
Nov 9 07:26:55.940 [7726] dbg: bayes: found bayes db version 3
Nov 9 07:26:55.940 [7726] dbg: bayes: Using userid: 1
Nov 9 07:26:56.998 [7726] dbg: bayes: corpus size: nspam = 10193, nham = 19971
Nov 9 07:26:56.999 [7726] dbg: bayes: skipped token 'Your' because it's in stopword list for language 'en'
Nov 9 07:26:56.999 [7726] dbg: bayes: skipped token 'that' because it's in stopword list for language 'en'
Nov 9 07:26:56.999 [7726] dbg: bayes: skipped token 'your' because it's in stopword list for language 'en'
Nov 9 07:26:56.999 [7726] dbg: bayes: skipped token 'for' because it's in stopword list for language 'en'
Nov 9 07:26:56.999 [7726] dbg: bayes: skipped token 'the' because it's in stopword list for language 'en'
Nov 9 07:26:56.999 [7726] dbg: bayes: skipped token 'has' because it's in stopword list for language 'en'
Nov 9 07:26:56.999 [7726] dbg: bayes: skipped token 'and' because it's in stopword list for language 'en'
Nov 9 07:26:56.999 [7726] dbg: bayes: skipped token 'are' because it's in stopword list for language 'en'
Nov 9 07:26:57.000 [7726] dbg: bayes: skipped token 'This' because it's in stopword list for language 'en'
Nov 9 07:26:57.000 [7726] dbg: bayes: skipped token 'you' because it's in stopword list for language 'en'
Nov 9 07:26:57.000 [7726] dbg: bayes: skipped token 'more' because it's in stopword list for language 'en'
Nov 9 07:26:57.000 [7726] dbg: bayes: tokenized body: 103 tokens
Nov 9 07:26:57.000 [7726] dbg: bayes: skipped token 'email' because it's in stopword list for language 'en'
Nov 9 07:26:57.001 [7726] dbg: bayes: tokenized uri: 34 tokens
Nov 9 07:26:57.001 [7726] dbg: bayes: tokenized invisible: 0 tokens
Nov 9 07:26:57.005 [7726] dbg: bayes: tokenized header: 78 tokens
Nov 9 07:26:57.005 [7726] dbg: bayes: tok_get_all: token count: 172
Nov 9 07:26:57.009 [7726] dbg: bayes: cannot use bayes on this message; not enough usable tokens found
Nov 9 07:26:57.009 [7726] dbg: bayes: not scoring message, returning undef
Nov 9 07:26:57.408 [7726] dbg: auto-welcomelist: sql-based connected to DBI:mysql:sa_bayes:localhost
Nov 9 07:26:57.457 [7726] dbg: auto-welcomelist: sql-based finish: disconnected from DBI:mysql:sa_bayes:localhost
Nov 9 07:26:57.514 [7726] dbg: timing: total 3150 ms - init: 1707 (54.2%), b_tie_ro: 10 (0.3%), parse: 2.9 (0.1%), extract_message_metadata: 38 (1.2%), tests_pri_-10000: 13 (0.4%), compile_gen: 208 (6.6%), get_uri_detail_list: 7 (0.2%), tests_pri_-2000: 9 (0.3%), compile_eval: 36 (1.1%), tests_pri_-1000: 6 (0.2%), tests_pri_-950: 3.7 (0.1%), tests_pri_-900: 4.2 (0.1%), tests_pri_-100: 852 (27.0%), check_dcc: 9 (0.3%), check_spf: 22 (0.7%), poll_dns_idle: 0.06 (0.0%), dkim_load_modules: 34 (1.1%), check_dkim_signature: 12 (0.4%), check_dkim_adsp: 4.6 (0.1%), check_pyzor: 3.4 (0.1%), check_razor2: 6 (0.2%), tests_pri_-90: 22 (0.7%), check_bayes: 14 (0.4%), b_tokenize: 7 (0.2%), b_tok_get_all: 2.5 (0.1%), b_comp_prob: 0.86 (0.0%), b_finish: 0.00 (0.0%), tests_pri_0: 347 (11.0%), tests_pri_10: 6 (0.2%), tests_pri_500: 7 (0.2%), tests_pri_1000: 93 (2.9%), total_txrep: 84 (2.7%), check_txrep_msg_id: 6 (0.2%), update_txrep_msg_id: 18 (0.6%), check_txrep_email_ip: 14 (0.5%), update_txrep_email_ip: 1.45 (0.0%), check_txrep_domain: 1.10 (0.0%), update_txrep_domain: 1.33 (0.0%), check_txrep_helo: 1.23 (0.0%), update_txrep_helo: 1.87 (0.1%), check_txrep_ip: 1.03 (0.0%), update_txrep_ip: 2.3 (0.1%), tests_pri_2000: 35 (1.1%)
When
it has bayes:
Code: Select all
Nov 9 07:28:38.900 [8120] dbg: config: fixed relative path: /var/lib/spamassassin/4.000001/updates_spamassassin_org/23_bayes.cf
Nov 9 07:28:38.900 [8120] dbg: config: using "/var/lib/spamassassin/4.000001/updates_spamassassin_org/23_bayes.cf" for included file
Nov 9 07:28:38.900 [8120] dbg: config: read file /var/lib/spamassassin/4.000001/updates_spamassassin_org/23_bayes.cf
Nov 9 07:28:38.900 [8120] dbg: config: parsing file /var/lib/spamassassin/4.000001/updates_spamassassin_org/23_bayes.cf
Nov 9 07:28:38.959 [8120] dbg: config: fixed relative path: /var/lib/spamassassin/4.000001/updates_spamassassin_org/60_bayes_stopwords.cf
Nov 9 07:28:38.959 [8120] dbg: config: using "/var/lib/spamassassin/4.000001/updates_spamassassin_org/60_bayes_stopwords.cf" for included file
Nov 9 07:28:38.959 [8120] dbg: config: read file /var/lib/spamassassin/4.000001/updates_spamassassin_org/60_bayes_stopwords.cf
Nov 9 07:28:38.960 [8120] dbg: config: parsing file /var/lib/spamassassin/4.000001/updates_spamassassin_org/60_bayes_stopwords.cf
Nov 9 07:28:39.825 [8120] dbg: bayes: stopwords for languages enabled: en
Nov 9 07:28:39.838 [8120] dbg: bayes: learner_new self=Mail::SpamAssassin::Plugin::Bayes=HASH(0x55bc09e57378), bayes_store_module=Mail::SpamAssassin::BayesStore::SQL
Nov 9 07:28:39.857 [8120] dbg: bayes: using username: postfix
Nov 9 07:28:39.857 [8120] dbg: bayes: learner_new: got store=Mail::SpamAssassin::BayesStore::SQL=HASH(0x55bc0b235a10)
Nov 9 07:28:39.865 [8120] dbg: bayes: database connection established
Nov 9 07:28:39.866 [8120] dbg: bayes: found bayes db version 3
Nov 9 07:28:39.866 [8120] dbg: bayes: Using userid: 1
Nov 9 07:28:40.869 [8120] dbg: bayes: corpus size: nspam = 10193, nham = 19971
Nov 9 07:28:40.869 [8120] dbg: bayes: skipped token 'Your' because it's in stopword list for language 'en'
Nov 9 07:28:40.870 [8120] dbg: bayes: skipped token 'that' because it's in stopword list for language 'en'
Nov 9 07:28:40.870 [8120] dbg: bayes: skipped token 'your' because it's in stopword list for language 'en'
Nov 9 07:28:40.870 [8120] dbg: bayes: skipped token 'for' because it's in stopword list for language 'en'
Nov 9 07:28:40.870 [8120] dbg: bayes: skipped token 'the' because it's in stopword list for language 'en'
Nov 9 07:28:40.870 [8120] dbg: bayes: skipped token 'has' because it's in stopword list for language 'en'
Nov 9 07:28:40.870 [8120] dbg: bayes: skipped token 'and' because it's in stopword list for language 'en'
Nov 9 07:28:40.870 [8120] dbg: bayes: skipped token 'are' because it's in stopword list for language 'en'
Nov 9 07:28:40.870 [8120] dbg: bayes: skipped token 'This' because it's in stopword list for language 'en'
Nov 9 07:28:40.870 [8120] dbg: bayes: skipped token 'you' because it's in stopword list for language 'en'
Nov 9 07:28:40.871 [8120] dbg: bayes: skipped token 'more' because it's in stopword list for language 'en'
Nov 9 07:28:40.871 [8120] dbg: bayes: tokenized body: 103 tokens
Nov 9 07:28:40.871 [8120] dbg: bayes: skipped token 'email' because it's in stopword list for language 'en'
Nov 9 07:28:40.871 [8120] dbg: bayes: tokenized uri: 34 tokens
Nov 9 07:28:40.871 [8120] dbg: bayes: tokenized invisible: 0 tokens
Nov 9 07:28:40.873 [8120] dbg: bayes: tokenized header: 78 tokens
Nov 9 07:28:40.874 [8120] dbg: bayes: tok_get_all: token count: 172
Nov 9 07:28:40.877 [8120] dbg: bayes: score = 0.827619312007403
Nov 9 07:28:41.225 [8120] dbg: auto-welcomelist: sql-based connected to DBI:mysql:sa_bayes:localhost
Nov 9 07:28:41.242 [8120] dbg: auto-welcomelist: sql-based finish: disconnected from DBI:mysql:sa_bayes:localhost
Nov 9 07:28:41.261 [8120] dbg: timing: total 2736 ms - init: 1450 (53.0%), b_tie_ro: 9 (0.3%), parse: 2.6 (0.1%), extract_message_metadata: 33 (1.2%), tests_pri_-10000: 9 (0.3%), compile_gen: 181 (6.6%), get_uri_detail_list: 4.3 (0.2%), tests_pri_-2000: 5.0 (0.2%), compile_eval: 31 (1.1%), tests_pri_-1000: 4.2 (0.2%), tests_pri_-950: 3.3 (0.1%), tests_pri_-900: 3.3 (0.1%), tests_pri_-100: 818 (29.9%), check_dcc: 6 (0.2%), dkim_load_modules: 40 (1.5%), check_dkim_signature: 10 (0.4%), poll_dns_idle: 0.05 (0.0%), check_spf: 22 (0.8%), check_dkim_adsp: 2.9 (0.1%), check_pyzor: 3.8 (0.1%), check_razor2: 5 (0.2%), tests_pri_-90: 38 (1.4%), check_bayes: 14 (0.5%), b_tokenize: 5 (0.2%), b_tok_get_all: 2.5 (0.1%), b_comp_prob: 0.70 (0.0%), b_tok_touch_all: 0.31 (0.0%), b_finish: 2.4 (0.1%), tests_pri_0: 300 (11.0%), tests_pri_10: 6 (0.2%), tests_pri_500: 8 (0.3%), tests_pri_1000: 45 (1.6%), total_txrep: 38 (1.4%), check_txrep_msg_id: 1.70 (0.1%), update_txrep_msg_id: 1.41 (0.1%), check_txrep_email_ip: 0.53 (0.0%), update_txrep_email_ip: 6 (0.2%), check_txrep_domain: 0.97 (0.0%), update_txrep_domain: 1.28 (0.0%), check_txrep_helo: 0.91 (0.0%), update_txrep_helo: 1.16 (0.0%), check_txrep_ip: 0.87 (0.0%), update_txrep_ip: 1.12 (0.0%), tests_pri_2000: 4.3 (0.2%)
I mean... This is crazy, sometimes I get BAYES_20, sometimes BAYES_40 or even BAYES_80 and sometimes no bayes at all ON SAME MESSAGE.
Exactly