Hello,
I use Spamassassin in conjunction with spamd and unfortunately have the problem that apparently DNSBL checks do not work. The same applies to Razor2 and SpamCop.
13.3-RELEASE-p3 FreeBSD 13.3-RELEASE-p3 GENERIC amd64
p5-WWW-Mechanize-SpamCop-0.08_1 SpamCop reporting automation
py38-pyzor-1.0.0_1 Collaborative, networked system to detect and block spam
razor-agents-2.85 Distributed, collaborative, spam detection and filtering network
spamassassin-4.0.1_1 Highly efficient mail filter for identifying spam
spamd-4.9.1_7 Traps spammers with a very slow smtp-login and return 4xx error
The problem is independent of the name servers entered in /etc/resolv.conf, e.g. 1.1.1.1
X-Spam-RBL-Check:
X-Spam-Razor2-Result: _RESULT_
Despite local.cf:
header RCVD_IN_NIX_SPAM eval:check_rbl('nix-spam-lastexternal','ix.dnsbl.manitu.net.'
does not appear in the output of spamassassin -t -D < testmail.txt zt. B. no reference to "nix-spam-lastexternal".
X-Spam-Checker version: SpamAssassin 4.0.1 (2024-03-26) on mail.domain.com
X-Spam level: *******
X-Spam-Status: No, score=7.9 required=8.0 tests=EMPTY_MESSAGE=2.32,MISSING_DATE=1.36,MISSING_FROM=1,MISSING_HEADERS=1.021,MISSING_MID=0.497,MISSING_SUBJECT=1.799,NO_HEADERS_MESSAGE=0. 001,NO_RECEIVED=-0.001,NO_RELAYS=-0.001 BAYES=0.5 DCC: Pyzor=Reported 28728848 times, welcomelisted 305295 times. autolearn=no autolearn_force=no version=4.0.1 report=
* 0.5 MISSING_MID Missing Message-Id: header
* 1.0 MISSING_FROM Missing From: header
* 1.4 MISSING_DATE Missing Date: header
* 1.8 MISSING_SUBJECT Missing Subject: header
-0.0 NO_RECEIVED Informational: message has no Received headers
* 2.3 EMPTY_MESSAGE Message appears to have no textual parts
-0.0 NO_RELAYS Informational: message was not relayed via SMTP
* 1.0 MISSING_HEADERS Missing To: header
* 0.0 NO_HEADERS_MESSAGE Message appears to be missing most RFC-822
* headers
X-Spam-RelayCountry:
X-Spam-RBL-Check:
X-Spam-Pyzor: PYZOR
X-Spam-Razor2-Result: _RESULT_
I have checked everything carefully, but cannot find the error.
Below are the relevant excerpts from
1. v310.pre
2. /usr/local/etc/mail/spamassassin/local.cf
3. spamassassin -t -D < testmail.txt
4. spamassassin --lint --debug
What am I doing wrong?
Kind regards and thanks in advance
Sidney2017
V310.pre
/usr/local/etc/mail/spamassassin/local.cf
spamassassin -t -D < testmail.txt
Output from "spamassassin --lint -D " is too long for posting here due to 25.000 Character Limit
I use Spamassassin in conjunction with spamd and unfortunately have the problem that apparently DNSBL checks do not work. The same applies to Razor2 and SpamCop.
13.3-RELEASE-p3 FreeBSD 13.3-RELEASE-p3 GENERIC amd64
p5-WWW-Mechanize-SpamCop-0.08_1 SpamCop reporting automation
py38-pyzor-1.0.0_1 Collaborative, networked system to detect and block spam
razor-agents-2.85 Distributed, collaborative, spam detection and filtering network
spamassassin-4.0.1_1 Highly efficient mail filter for identifying spam
spamd-4.9.1_7 Traps spammers with a very slow smtp-login and return 4xx error
The problem is independent of the name servers entered in /etc/resolv.conf, e.g. 1.1.1.1
X-Spam-RBL-Check:
X-Spam-Razor2-Result: _RESULT_
Despite local.cf:
header RCVD_IN_NIX_SPAM eval:check_rbl('nix-spam-lastexternal','ix.dnsbl.manitu.net.'
does not appear in the output of spamassassin -t -D < testmail.txt zt. B. no reference to "nix-spam-lastexternal".
X-Spam-Checker version: SpamAssassin 4.0.1 (2024-03-26) on mail.domain.com
X-Spam level: *******
X-Spam-Status: No, score=7.9 required=8.0 tests=EMPTY_MESSAGE=2.32,MISSING_DATE=1.36,MISSING_FROM=1,MISSING_HEADERS=1.021,MISSING_MID=0.497,MISSING_SUBJECT=1.799,NO_HEADERS_MESSAGE=0. 001,NO_RECEIVED=-0.001,NO_RELAYS=-0.001 BAYES=0.5 DCC: Pyzor=Reported 28728848 times, welcomelisted 305295 times. autolearn=no autolearn_force=no version=4.0.1 report=
* 0.5 MISSING_MID Missing Message-Id: header
* 1.0 MISSING_FROM Missing From: header
* 1.4 MISSING_DATE Missing Date: header
* 1.8 MISSING_SUBJECT Missing Subject: header
-0.0 NO_RECEIVED Informational: message has no Received headers
* 2.3 EMPTY_MESSAGE Message appears to have no textual parts
-0.0 NO_RELAYS Informational: message was not relayed via SMTP
* 1.0 MISSING_HEADERS Missing To: header
* 0.0 NO_HEADERS_MESSAGE Message appears to be missing most RFC-822
* headers
X-Spam-RelayCountry:
X-Spam-RBL-Check:
X-Spam-Pyzor: PYZOR
X-Spam-Razor2-Result: _RESULT_
I have checked everything carefully, but cannot find the error.
Below are the relevant excerpts from
1. v310.pre
2. /usr/local/etc/mail/spamassassin/local.cf
3. spamassassin -t -D < testmail.txt
4. spamassassin --lint --debug
What am I doing wrong?
Kind regards and thanks in advance
Sidney2017
V310.pre
Code:
loadplugin Mail::SpamAssassin::Plugin::DCC
loadplugin Mail::SpamAssassin::Plugin::Pyzor
loadplugin Mail::SpamAssassin::Plugin::Razor2
loadplugin Mail::SpamAssassin::Plugin::SpamCop
loadplugin Mail::SpamAssassin::Plugin::AutoLearnThreshold
loadplugin Mail::SpamAssassin::Plugin::TextCat
loadplugin Mail::SpamAssassin::Plugin::WhiteListSubject
loadplugin Mail::SpamAssassin::Plugin::MIMEHeader
loadplugin Mail::SpamAssassin::Plugin::ReplaceTags
/usr/local/etc/mail/spamassassin/local.cf
Code:
clear_trusted_networks
score ALL_TRUSTED 0
#dns_server 127.0.0.1 # added to fix blocking of URIBL and DNSWL queries
dns_server 127.0.0.1
# lock_method type
lock_method flock
#add_header all Level _STARS(*)_
add_header all Status _YESNO_, score=_SCORE_ required=_REQD_ tests=_TESTSSCORES(,)_ BAYES=_BAYES_ DCC:_DCCB_ _DCCR_ Pyzor=_PYZOR_ autolearn=_AUTOLEARN_ version=_VERSION_ report=_REPORT_
add_header all RelayCountry _RELAYCOUNTRY_
add_header all RBL-Check _RBL_
core RCVD_IN_XBL 1
rewrite_header subject *****SPAM*****
report_safe 1
# Enable the Bayes system
# Enable Bayes auto-learning
bayes_auto_learn 1
bayes_auto_expire 1
use_bayes 1
bayes_path /home/vj/.spamassassin/bayes
bayes_file_mode 777
#bayes_auto_learn_threshold_nospam 0.1
#bayes_auto_learn_threshold_spam 7.0
score BAYES_00 0
score BAYES_80 4.6
score BAYES_95 5.0
score BAYES_99 6.5
score BAYES_999 7.0
bayes_learn_to_journal 1
# Pyzor
use_pyzor 1
pyzor_timeout 15
score PYZOR_CHECK 6
pyzor_options --homedir /usr/local/etc/mail/spamassassin/.pyzor
pyzor_path /usr/local/bin/pyzor
add_header all Pyzor PYZOR
#DCC
use_dcc 1
dcc_path /usr/local/bin/dccproc
dcc_dccifd_path /usr/local/libexec/dccifd
dcc_learn_score 1
score DCC_CHECK 6.5
# Razor
use_razor2 1
add_header all Razor2-Result _RESULT_
#razor_config /usr/local/etc/mail/spamassassin/.razor/razor-agent.conf
razor_config /root/.razor/razor-agent.conf
razor_timeout 120
score RAZOR2_CHECK 4.8
# Enable or disable network checks
skip_rbl_checks 0
rbl_timeout 120
score UNWANTED_LANGUAGE_BODY 1.0
score CHARSET_FARAWAY 1.0
score CHARSET_FARAWAY_BODY 1.0
required_score 8
#use_auto_whitelist 0
#auto_whitelist_path none
header RCVD_IN_DNSBL_INPS_DE eval:check_rbl('inps-de','dnsbl.inps.de.')
describe RCVD_IN_DNSBL_INPS_DE Received via a relay in inps.de DNSBL
tflags RCVD_IN_DNSBL_INPS_DE net
score RCVD_IN_DNSBL_INPS_DE 3.0
#header RCVD_IN_BNBL eval:check_rbl('bl','bl.blueshore.net.')
#describe RCVD_IN_BNBL Listed by BNBL
#tflags RCVD_IN_BNBL net
#score RCVD_IN_BNBL 1.00
header RCVD_IN_SPAMCOP_NET eval:check_rbl('bl.spamcop.net')
describe RCVD_IN_SPAMCOP_NET Received via a relay in bl.spamcop.net
tflags RCVD_IN_SPAMCOP_NET net
score RCVD_IN_SPAMCOP_NET 5.00
header RCVD_IN_NIX_SPAM eval:check_rbl('nix-spam-lastexternal','ix.dnsbl.manitu.net.')
describe RCVD_IN_NIX_SPAM Listed in NIX-SPAM DNSBL (heise.de)
tflags RCVD_IN_NIX_SPAM net
score RCVD_IN_NIX_SPAM 3.0 # please adjust the score value
header RCVD_IN_UCEPROTECT2 eval:check_rbl_txt('uceprotect2-lastexternal', 'dnsbl-2.uceprotect.net.')
describe RCVD_IN_UCEPROTECT2 Received via a relay in UCEPROTECT Level 2 DNSBL
tflags RCVD_IN_UCEPROTECT2 net
score RCVD_IN_UCEPROTECT2 3.0
# Deactivate problematic rules
score RCVD_IN_VALIDITY_RPBL_BLOCKED 0
score RCVD_IN_VALIDITY_RPBL 0
score AUTH_SMTP -10.0
fold_headers 1
dns_available yes
spamassassin -t -D < testmail.txt
Code:
[53269] dbg: timing: total 1167 ms - init: 859 (73.6%), parse: 0.80 (0.1%), extracttext: 0.23 (0.0%), extract_message_metadata: 1.86 (0.2%), tests_pri_-10000: 4.8 (0.4%), compile_gen: 126 (10.8%), get_uri_detail_list: 2.8 (0.2%), tests_pri_-2000: 2.5 (0.2%), compile_eval: 15 (1.3%), tests_pri_-1000: 2.1 (0.2%), tests_pri_-950: 1.37 (0.1%), tests_pri_-900: 1.75 (0.2%), tests_pri_-200: 1.31 (0.1%), tests_pri_-100: 65 (5.5%), dkim_load_modules: 27 (2.3%), check_dkim_signature: 0.41 (0.0%), check_spf: 10 (0.8%), check_pyzor: 2.5 (0.2%), check_razor2: 44 (3.8%), check_dcc: 6 (0.5%), tests_pri_-90: 5 (0.5%), check_bayes: 2.3 (0.2%), b_tokenize: 0.53 (0.0%), b_tok_get_all: 0.01 (0.0%), b_comp_prob: 0.08 (0.0%), b_finish: 0.00 (0.0%), tests_pri_0: 174 (14.9%), tests_pri_10: 2.2 (0.2%)
Jun 30 14:10:14.410 [53269] dbg: markup: mime_encode_header: SpamAssassin 4.0.1 (2024-03-26) on mail.domain.com
Jun 30 14:10:14.410 [53269] dbg: markup: mime_encode_header: *******
Jun 30 14:10:14.410 [53269] dbg: markup: mime_encode_header: No, score=7.9 required=8.0 tests=EMPTY_MESSAGE=2.32,MISSING_DATE=1.36,MISSING_FROM=1,MISSING_HEADERS=1.021,MISSING_MID=0.497,MISSING_SUBJECT=1.799,NO_HEADERS_MESSAGE=0.001,NO_RECEIVED=-0.001,NO_RELAYS=-0.001 BAYES=0.5 DCC: Pyzor=Reported 28728848 times, welcomelisted 305295 times. autolearn=no autolearn_force=no version=4.0.1 report=
Jun 30 14:10:14.410 [53269] dbg: markup: [...] \t* 0.5 MISSING_MID Missing Message-Id: header
Jun 30 14:10:14.410 [53269] dbg: markup: [...] \t* 1.0 MISSING_FROM Missing From: header
Jun 30 14:10:14.410 [53269] dbg: markup: [...] \t* 1.4 MISSING_DATE Missing Date: header
Jun 30 14:10:14.410 [53269] dbg: markup: [...] \t* 1.8 MISSING_SUBJECT Missing Subject: header
Jun 30 14:10:14.410 [53269] dbg: markup: [...] \t* -0.0 NO_RECEIVED Informational: message has no Received headers
Jun 30 14:10:14.410 [53269] dbg: markup: [...] \t* 2.3 EMPTY_MESSAGE Message appears to have no textual parts
Jun 30 14:10:14.410 [53269] dbg: markup: [...] \t* -0.0 NO_RELAYS Informational: message was not relayed via SMTP
Jun 30 14:10:14.410 [53269] dbg: markup: [...] \t* 1.0 MISSING_HEADERS Missing To: header
Jun 30 14:10:14.410 [53269] dbg: markup: [...] \t* 0.0 NO_HEADERS_MESSAGE Message appears to be missing most RFC-822
Jun 30 14:10:14.410 [53269] dbg: markup: [...] \t* headers
Jun 30 14:10:14.411 [53269] dbg: markup: mime_encode_header:
Jun 30 14:10:14.411 [53269] dbg: markup: mime_encode_header:
Jun 30 14:10:14.411 [53269] dbg: markup: mime_encode_header: PYZOR
Jun 30 14:10:14.411 [53269] dbg: markup: mime_encode_header: _RESULT_
X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on mail.domain.com
X-Spam-Level: *******
X-Spam-Status: No, score=7.9 required=8.0 tests=EMPTY_MESSAGE=2.32,MISSING_DATE=1.36,MISSING_FROM=1,MISSING_HEADERS=1.021,MISSING_MID=0.497,MISSING_SUBJECT=1.799,NO_HEADERS_MESSAGE=0.001,NO_RECEIVED=-0.001,NO_RELAYS=-0.001 BAYES=0.5 DCC: Pyzor=Reported 28728848 times, welcomelisted 305295 times. autolearn=no autolearn_force=no version=4.0.1 report=
* 0.5 MISSING_MID Missing Message-Id: header
* 1.0 MISSING_FROM Missing From: header
* 1.4 MISSING_DATE Missing Date: header
* 1.8 MISSING_SUBJECT Missing Subject: header
* -0.0 NO_RECEIVED Informational: message has no Received headers
* 2.3 EMPTY_MESSAGE Message appears to have no textual parts
* -0.0 NO_RELAYS Informational: message was not relayed via SMTP
* 1.0 MISSING_HEADERS Missing To: header
* 0.0 NO_HEADERS_MESSAGE Message appears to be missing most RFC-822
* headers
X-Spam-RelayCountry:
X-Spam-RBL-Check:
X-Spam-Pyzor: PYZOR
X-Spam-Razor2-Result: _RESULT_
Subject:
Spam detection software, running on the system "mail.domain.com",
has NOT identified this incoming email as spam. The original
message has been attached to this so you can view it or label
similar future email. If you have any questions, see
The administrator of that system for details.
Content preview:
Content analysis details: (7.9 points, 8.0 required)
pts rule name description
---- ---------------------- --------------------------------------------------
0.5 MISSING_MID Missing Message-Id: header
1.0 MISSING_FROM Missing From: header
1.4 MISSING_DATE Missing Date: header
1.8 MISSING_SUBJECT Missing Subject: header
-0.0 NO_RECEIVED Informational: message has no Received headers
2.3 EMPTY_MESSAGE Message appears to have no textual parts
-0.0 NO_RELAYS Informational: message was not relayed via SMTP
1.0 MISSING_HEADERS Missing To: header
0.0 NO_HEADERS_MESSAGE Message appears to be missing most RFC-822 headers
Jun 30 14:10:14.412 [53269] dbg: check: tagrun - tag DKIMDOMAIN is still blocking action 1, 2, 5, 6, 8, 9, 11
Jun 30 14:10:14.412 [53269] dbg: check: tagrun - tag LASTEXTERNALDNS is still blocking action 15, 16, 18
Jun 30 14:10:14.412 [53269] dbg: check: tagrun - tag SENDERDOMAIN is still blocking action 3
Jun 30 14:10:14.412 [53269] dbg: check: tagrun - tag LASTEXTERNALHELO is still blocking action 10, 13, 14, 17
Jun 30 14:10:14.412 [53269] dbg: check: tagrun - tag AUTHORDOMAIN is still blocking action 0, 4, 7, 12
Jun 30 14:10:14.414 [53269] dbg: plugin: Mail::SpamAssassin::Plugin::MIMEHeader=HASH(0x83bb292b8) implements 'finish_tests', priority 0
Jun 30 14:10:14.414 [53269] dbg: plugin: Mail::SpamAssassin::Plugin::Check=HASH(0x83bb297f8) implements 'finish_tests', priority 0
Output from "spamassassin --lint -D " is too long for posting here due to 25.000 Character Limit