Mailing List Archive

SpamAssassin4 + DCC not populating "X-Spam-DCC: : " header ?
Hello,

I'm hoping someone can help troubleshooting using DCC in SpamAssassin.
My setup isn't populating the "X-Spam-DCC: : " header.

I installed SpamAssassin 4.0.0

spamassassin -V
SpamAssassin version 4.0.0
running on Perl version 5.38.2

I run Postfix 3.8.5

postconf mail_version
mail_version = 3.8.5

I setup Postfix to use SpamAssassin through a pre-queue milter over a unix socket

smtpd_milters=unix:/run/sa-milter/sa-milter.sock

I installed DCC

cdcc -V
2.3.168

It can connect to its servers

cdcc info
# 02/18/24 11:31:46 EST /etc/dcc/map
# Re-resolve names after 12:29:46 Check RTTs after 11:46:45
# 1691.96 ms threshold, 1239.41 ms average 12 total, 6 working servers
IPv6 on version=3
...

I configured SpamAssassin to use DCC

cat local.cf
...
loadplugin Mail::SpamAssassin::Plugin::DCC
add_header all DCC _DCCB_: _DCCR_
...
ifplugin Mail::SpamAssassin::Plugin::DCC
use_dcc 1
dcc_home /etc/dcc
dcc_path /usr/local/bin/dccproc
dcc_timeout 10
dcc_body_max 999999
dcc_fuz1_max 999999
dcc_fuz2_max 999999
score DCC_CHECK 3.000
dcc_learn_score 999999
endif
...

Checking with SA --lint, local only with no network

spamassassin --prefs-file=/etc/spamassassin/local.cf -D --lint

...
Feb 18 11:18:06.242 [6905] dbg: config: fixed relative path: /var/spamassassin/4.000000/updates_spamassassin_org/25_dcc.cf
Feb 18 11:18:06.242 [6905] dbg: config: using "/var/spamassassin/4.000000/updates_spamassassin_org/25_dcc.cf" for included file
Feb 18 11:18:06.242 [6905] dbg: config: read file /var/spamassassin/4.000000/updates_spamassassin_org/25_dcc.cf
Feb 18 11:18:06.243 [6905] dbg: config: parsing file /var/spamassassin/4.000000/updates_spamassassin_org/25_dcc.cf
...
Feb 18 11:18:06.792 [6905] dbg: plugin: loading Mail::SpamAssassin::Plugin::DCC from @INC
Feb 18 11:18:06.796 [6905] dbg: dcc: local tests only, disabling DCC
...
Feb 18 11:18:06.843 [6905] dbg: rules: meta test DIGEST_MULTIPLE has undefined dependency 'DCC_CHECK'
Feb 18 11:18:06.843 [6905] dbg: rules: meta test FSL_BULK_SIG has undefined dependency 'DCC_CHECK'
...
Feb 18 11:18:08.561 [6905] dbg: plugin: Mail::SpamAssassin::Plugin::DCC=HASH(0x56116a3060f0) implements 'check_tick', priority 0
...
Feb 18 11:18:09.072 [6905] dbg: plugin: Mail::SpamAssassin::Plugin::DCC=HASH(0x56116a3060f0) implements 'check_cleanup', priority 0
...
Feb 18 11:18:09.074 [6905] dbg: plugin: Mail::SpamAssassin::Plugin::DCC=HASH(0x56116a3060f0) implements 'check_post_learn', priority 0
...

Testing against a sample email,

spamassassin --prefs-file=/etc/spamassassin/local.cf -D </etc/spamassassin/sample-email.txt

...
Feb 18 11:24:47.742 [7041] dbg: config: fixed relative path: /var/spamassassin/4.000000/updates_spamassassin_org/25_dcc.cf
Feb 18 11:24:47.742 [7041] dbg: config: using "/var/spamassassin/4.000000/updates_spamassassin_org/25_dcc.cf" for included file
Feb 18 11:24:47.743 [7041] dbg: config: read file /var/spamassassin/4.000000/updates_spamassassin_org/25_dcc.cf
Feb 18 11:24:47.743 [7041] dbg: config: parsing file /var/spamassassin/4.000000/updates_spamassassin_org/25_dcc.cf
...
Feb 18 11:24:48.255 [7041] dbg: plugin: loading Mail::SpamAssassin::Plugin::DCC from @INC
...
Feb 18 11:24:48.296 [7041] dbg: rules: meta test DIGEST_MULTIPLE has undefined dependency 'DCC_CHECK'
...
Feb 18 11:24:48.304 [7041] dbg: rules: meta test FSL_BULK_SIG has undefined dependency 'DCC_CHECK'
...
Feb 18 11:24:49.989 [7041] dbg: plugin: Mail::SpamAssassin::Plugin::DCC=HASH(0x55f8e8a5da20) implements 'check_tick', priority 0
...
Feb 18 11:24:50.003 [7041] dbg: plugin: Mail::SpamAssassin::Plugin::DCC=HASH(0x55f8e8a5da20) implements 'check_dnsbl', priority 0
...
Feb 18 11:24:50.904 [7041] dbg: plugin: Mail::SpamAssassin::Plugin::DCC=HASH(0x55f8e8a5da20) implements 'check_cleanup', priority 0
...
Feb 18 11:24:50.914 [7041] dbg: plugin: Mail::SpamAssassin::Plugin::DCC=HASH(0x55f8e8a5da20) implements 'check_post_learn', priority 0
Feb 18 11:24:50.914 [7041] dbg: dcc: DCC learning not enabled by dcc_learn_score
...
X-Spam-Checker-Version: SpamAssassin 4.0.0 (2022-12-14) on mail.example.com
X-Spam-Scanned: spamd.mail.example.com
X-Spam-Status: No, score=-100.0 required=8.0 tests=KAM_DMARC_STATUS,
NO_RECEIVED,NO_RELAYS,SC_HAM,T_SCC_BODY_TEXT_LINE autolearn=ham
autolearn_force=no version=4.0.0
X-Spam-DCC: :
X-Spam-Level:
X-Spam-SenderDomain: _SENDERDOMAIN_
X-Spam-AuthorDomain: example.com
X-Spam-Remote-IP:
X-Spam-Remote-RDNS:
X-Spam-Remote-HELO:
X-Spam-Relays-Untrusted:

And in a normal received email sent from my GMail

...
X-Spam-Checker-Version: SpamAssassin 4.0.0 (2022-12-14) on mail.example.com
X-Spam-Scanned: spamd.mail.example.com
X-Spam-Status: No, score=1.0 required=8.0 tests=BODY_SINGLE_WORD,FREEMAIL_FROM,
SCC_BODY_SINGLE_WORD,T_SCC_BODY_TEXT_LINE autolearn=ham
autolearn_force=no version=4.0.0
X-Spam-DCC: :
X-Spam-Level:
X-Spam-Relay-Country: US US
X-Spam-ASN: AS15169 GOOGLE
X-Spam-SenderDomain: gmail.com
X-Spam-AuthorDomain: gmail.com
X-Spam-Remote-IP: 209.85.128.176
X-Spam-Remote-RDNS: mail-yw1-f176.google.com
X-Spam-Remote-HELO: mail-yw1-f176.google.com
X-Spam-Languages:
...

What else can I check or change to get the DCC results populating the header?

Thanks.

Denny
Re: SpamAssassin4 + DCC not populating "X-Spam-DCC: : " header ? [ In reply to ]
On 2024-02-18 at 14:21:41 UTC-0500 (Sun, 18 Feb 2024 14:21:41 -0500)
<glad.tent3766@fastmail.com>
is rumored to have said:

> Feb 18 11:18:06.796 [6905] dbg: dcc: local tests only, disabling DCC

That seems like a clear explanation: your configuration has disabled
'net' tests. You seem to have dns_available set to 'no'



--
Bill Cole
bill@scconsult.com or billcole@apache.org
(AKA @grumpybozo and many *@billmail.scconsult.com addresses)
Not Currently Available For Hire
Re: SpamAssassin4 + DCC not populating "X-Spam-DCC: : " header ? [ In reply to ]
On Sun, Feb 18, 2024, at 2:47 PM, Bill Cole wrote:
> On 2024-02-18 at 14:21:41 UTC-0500 (Sun, 18 Feb 2024 14:21:41 -0500)
> <glad.tent3766@fastmail.com>
> is rumored to have said:
>
>> Feb 18 11:18:06.796 [6905] dbg: dcc: local tests only, disabling DCC
>
> That seems like a clear explanation: your configuration has disabled
> 'net' tests. You seem to have dns_available set to 'no'


No, that's only for the shown "--lint" case.

Iiuc 3.1.6+ disables network tests during lint as they don't need to be run
to confirm a working config.

For the case where I run an actual message through SpamAssassin, network tests are fine.

And "dns_available" isn't set anywhere in my configuration.
For SA that leave it at the default, I believe == yes.
Re: SpamAssassin4 + DCC not populating "X-Spam-DCC: : " header ? [ In reply to ]
Hello,

 try to increase dcc_timeout.

# this works for me
use_dcc 1
dcc_home /var/dcc
dcc_path /usr/local/bin/dccproc
dcc_timeout 16
add_header all DCC _DCCB_:_DCCR_


Martin
> Hello,
>
> I'm hoping someone can help troubleshooting using DCC in SpamAssassin.
> My setup isn't populating the "X-Spam-DCC: : " header.
>
> I installed SpamAssassin 4.0.0
>
> spamassassin -V
> SpamAssassin version 4.0.0
> running on Perl version 5.38.2
>
> I run Postfix 3.8.5
>
> postconf mail_version
> mail_version = 3.8.5
>
> I setup Postfix to use SpamAssassin through a pre-queue milter over a unix socket
>
> smtpd_milters=unix:/run/sa-milter/sa-milter.sock
>
> I installed DCC
>
> cdcc -V
> 2.3.168
>
> It can connect to its servers
>
> cdcc info
> # 02/18/24 11:31:46 EST /etc/dcc/map
> # Re-resolve names after 12:29:46 Check RTTs after 11:46:45
> # 1691.96 ms threshold, 1239.41 ms average 12 total, 6 working servers
> IPv6 on version=3
> ...
>
> I configured SpamAssassin to use DCC
>
> cat local.cf
> ...
> loadplugin Mail::SpamAssassin::Plugin::DCC
> add_header all DCC _DCCB_: _DCCR_
> ...
> ifplugin Mail::SpamAssassin::Plugin::DCC
> use_dcc 1
> dcc_home /etc/dcc
> dcc_path /usr/local/bin/dccproc
> dcc_timeout 10
> dcc_body_max 999999
> dcc_fuz1_max 999999
> dcc_fuz2_max 999999
> score DCC_CHECK 3.000
> dcc_learn_score 999999
> endif
> ...
>
> Checking with SA --lint, local only with no network
>
> spamassassin --prefs-file=/etc/spamassassin/local.cf -D --lint
>
> ...
> Feb 18 11:18:06.242 [6905] dbg: config: fixed relative path: /var/spamassassin/4.000000/updates_spamassassin_org/25_dcc.cf
> Feb 18 11:18:06.242 [6905] dbg: config: using "/var/spamassassin/4.000000/updates_spamassassin_org/25_dcc.cf" for included file
> Feb 18 11:18:06.242 [6905] dbg: config: read file /var/spamassassin/4.000000/updates_spamassassin_org/25_dcc.cf
> Feb 18 11:18:06.243 [6905] dbg: config: parsing file /var/spamassassin/4.000000/updates_spamassassin_org/25_dcc.cf
> ...
> Feb 18 11:18:06.792 [6905] dbg: plugin: loading Mail::SpamAssassin::Plugin::DCC from @INC
> Feb 18 11:18:06.796 [6905] dbg: dcc: local tests only, disabling DCC
> ...
> Feb 18 11:18:06.843 [6905] dbg: rules: meta test DIGEST_MULTIPLE has undefined dependency 'DCC_CHECK'
> Feb 18 11:18:06.843 [6905] dbg: rules: meta test FSL_BULK_SIG has undefined dependency 'DCC_CHECK'
> ...
> Feb 18 11:18:08.561 [6905] dbg: plugin: Mail::SpamAssassin::Plugin::DCC=HASH(0x56116a3060f0) implements 'check_tick', priority 0
> ...
> Feb 18 11:18:09.072 [6905] dbg: plugin: Mail::SpamAssassin::Plugin::DCC=HASH(0x56116a3060f0) implements 'check_cleanup', priority 0
> ...
> Feb 18 11:18:09.074 [6905] dbg: plugin: Mail::SpamAssassin::Plugin::DCC=HASH(0x56116a3060f0) implements 'check_post_learn', priority 0
> ...
>
> Testing against a sample email,
>
> spamassassin --prefs-file=/etc/spamassassin/local.cf -D </etc/spamassassin/sample-email.txt
>
> ...
> Feb 18 11:24:47.742 [7041] dbg: config: fixed relative path: /var/spamassassin/4.000000/updates_spamassassin_org/25_dcc.cf
> Feb 18 11:24:47.742 [7041] dbg: config: using "/var/spamassassin/4.000000/updates_spamassassin_org/25_dcc.cf" for included file
> Feb 18 11:24:47.743 [7041] dbg: config: read file /var/spamassassin/4.000000/updates_spamassassin_org/25_dcc.cf
> Feb 18 11:24:47.743 [7041] dbg: config: parsing file /var/spamassassin/4.000000/updates_spamassassin_org/25_dcc.cf
> ...
> Feb 18 11:24:48.255 [7041] dbg: plugin: loading Mail::SpamAssassin::Plugin::DCC from @INC
> ...
> Feb 18 11:24:48.296 [7041] dbg: rules: meta test DIGEST_MULTIPLE has undefined dependency 'DCC_CHECK'
> ...
> Feb 18 11:24:48.304 [7041] dbg: rules: meta test FSL_BULK_SIG has undefined dependency 'DCC_CHECK'
> ...
> Feb 18 11:24:49.989 [7041] dbg: plugin: Mail::SpamAssassin::Plugin::DCC=HASH(0x55f8e8a5da20) implements 'check_tick', priority 0
> ...
> Feb 18 11:24:50.003 [7041] dbg: plugin: Mail::SpamAssassin::Plugin::DCC=HASH(0x55f8e8a5da20) implements 'check_dnsbl', priority 0
> ...
> Feb 18 11:24:50.904 [7041] dbg: plugin: Mail::SpamAssassin::Plugin::DCC=HASH(0x55f8e8a5da20) implements 'check_cleanup', priority 0
> ...
> Feb 18 11:24:50.914 [7041] dbg: plugin: Mail::SpamAssassin::Plugin::DCC=HASH(0x55f8e8a5da20) implements 'check_post_learn', priority 0
> Feb 18 11:24:50.914 [7041] dbg: dcc: DCC learning not enabled by dcc_learn_score
> ...
> X-Spam-Checker-Version: SpamAssassin 4.0.0 (2022-12-14) on mail.example.com
> X-Spam-Scanned: spamd.mail.example.com
> X-Spam-Status: No, score=-100.0 required=8.0 tests=KAM_DMARC_STATUS,
> NO_RECEIVED,NO_RELAYS,SC_HAM,T_SCC_BODY_TEXT_LINE autolearn=ham
> autolearn_force=no version=4.0.0
> X-Spam-DCC: :
> X-Spam-Level:
> X-Spam-SenderDomain: _SENDERDOMAIN_
> X-Spam-AuthorDomain: example.com
> X-Spam-Remote-IP:
> X-Spam-Remote-RDNS:
> X-Spam-Remote-HELO:
> X-Spam-Relays-Untrusted:
>
> And in a normal received email sent from my GMail
>
> ...
> X-Spam-Checker-Version: SpamAssassin 4.0.0 (2022-12-14) on mail.example.com
> X-Spam-Scanned: spamd.mail.example.com
> X-Spam-Status: No, score=1.0 required=8.0 tests=BODY_SINGLE_WORD,FREEMAIL_FROM,
> SCC_BODY_SINGLE_WORD,T_SCC_BODY_TEXT_LINE autolearn=ham
> autolearn_force=no version=4.0.0
> X-Spam-DCC: :
> X-Spam-Level:
> X-Spam-Relay-Country: US US
> X-Spam-ASN: AS15169 GOOGLE
> X-Spam-SenderDomain: gmail.com
> X-Spam-AuthorDomain: gmail.com
> X-Spam-Remote-IP: 209.85.128.176
> X-Spam-Remote-RDNS: mail-yw1-f176.google.com
> X-Spam-Remote-HELO: mail-yw1-f176.google.com
> X-Spam-Languages:
> ...
>
> What else can I check or change to get the DCC results populating the header?
>
> Thanks.
>
> Denny
Re: SpamAssassin4 + DCC not populating "X-Spam-DCC: : " header ? [ In reply to ]
Hello,

>  try to increase dcc_timeout.
>
> # this works for me
> use_dcc 1
> dcc_home /var/dcc
> dcc_path /usr/local/bin/dccproc
> dcc_timeout 16
> add_header all DCC _DCCB_:_DCCR_

I tried values of 16, 30 & 100.

Same as before unfortunately.

No errors that I can see. Just no headers populated.

Denny
Re: SpamAssassin4 + DCC not populating "X-Spam-DCC: : " header ? [ In reply to ]
Try this command for some real mail.eml

    spamassassin --prefs-file=/etc/spamassassin/local.cf -D dcc <mail.eml

Feb 18 21:10:36.191 [801727] dbg: dcc: network tests on, registering DCC
Feb 18 21:10:36.754 [801727] warn: netset: cannot include 127.0.0.0/8 as
it has already been included
Feb 18 21:10:36.758 [801727] warn: netset: cannot include 172.16.0.0/12
as it has already been included
Feb 18 21:10:36.758 [801727] warn: netset: cannot include 192.168.0.0/16
as it has already been included
Feb 18 21:10:36.759 [801727] warn: netset: cannot include 127.0.0.0/8 as
it has already been included
Feb 18 21:10:37.285 [801727] dbg: dcc: dcc_pgm_path, found cdcc in
dcc_path: /usr/local/bin/cdcc
Feb 18 21:10:37.289 [801727] dbg: dcc: `/usr/local/bin/cdcc -qV homedir
libexecdir` reports '2.3.168 homedir=/var/dcc libexecdir=/var/dcc/libexec '
Feb 18 21:10:37.290 [801727] dbg: dcc: use 'dcc_libexec
/var/dcc/libexec' from cdcc
Feb 18 21:10:37.290 [801727] dbg: dcc: dccifd is not available; no r/w
socket at /var/dcc/dccifd
Feb 18 21:10:37.290 [801727] dbg: dcc: /usr/local/bin/dccproc is available
Feb 18 21:10:37.291 [801727] dbg: dcc: opening pipe to
/usr/local/bin/dccproc -C -x 0 -h /var/dcc -a 45.112.84.5 -w whiteclnt
</tmp/.spamassassin801727L1bSTntmp
Feb 18 21:10:37.295 [801731] info: util: setuid: ruid=0 euid=0 rgid=0 0
egid=0 0
Feb 18 21:10:37.476 [801727] dbg: dcc: dccproc responded with
'X-DCC-www.nova53.net-Metrics: some.server.mx 1205; Body=many Fuz1=many
rep=73%'
Feb 18 21:10:37.477 [801727] dbg: dcc: dcc_rep 73, min 95, max 98 =>
result=no
Feb 18 21:10:37.477 [801727] dbg: dcc: dcc_rep 73, min 70, max 89 =>
result=YES
Feb 18 21:10:37.478 [801727] dbg: dcc: dcc_rep 73, min 99, max 100 =>
result=no
Feb 18 21:10:37.478 [801727] dbg: dcc: dcc_rep 73, min 90, max 94 =>
result=no
Feb 18 21:10:37.479 [801727] dbg: dcc: listed: BODY=999999/999999
FUZ1=999999/999999 FUZ2=0/999999 REP=73/90
Feb 18 21:10:37.480 [801727] dbg: dcc: dcc_rep 73, min 00, max 12 =>
result=no
Feb 18 21:10:37.480 [801727] dbg: dcc: dcc_rep 73, min 13, max 19 =>
result=no
Feb 18 21:10:37.738 [801732] info: util: setuid: ruid=0 euid=0 rgid=0 0
egid=0 0
Feb 18 21:10:37.872 [801727] info: rules: meta test
CONTENT_AFTER_HTML_WEAK has dependency 'MAILING_LIST_MULTI' with a zero
score
Feb 18 21:10:37.872 [801727] info: rules: meta test FORGED_MUA_EUDORA
has dependency 'MAILING_LIST_MULTI' with a zero score
Feb 18 21:10:37.873 [801727] info: rules: meta test OBFU_UNSUB_UL has
dependency 'MAILING_LIST_MULTI' with a zero score
Feb 18 21:10:37.882 [801727] info: rules: meta test
HAS_X_OUTGOING_SPAM_STAT has dependency 'MAILING_LIST_MULTI' with a zero
score
Feb 18 21:10:37.937 [801727] dbg: dcc: DCC learning not enabled by
dcc_learn_score

Martin
> Hello,
>
>>  try to increase dcc_timeout.
>>
>> # this works for me
>> use_dcc 1
>> dcc_home /var/dcc
>> dcc_path /usr/local/bin/dccproc
>> dcc_timeout 16
>> add_header all DCC _DCCB_:_DCCR_
> I tried values of 16, 30 & 100.
>
> Same as before unfortunately.
>
> No errors that I can see. Just no headers populated.
>
> Denny
Re: SpamAssassin4 + DCC not populating "X-Spam-DCC: : " header ? [ In reply to ]
> Try this command for some real mail.eml
>
> spamassassin --prefs-file=/etc/spamassassin/local.cf -D dcc <mail.eml

That,

spamassassin --prefs-file=/etc/spamassassin/local.cf -D dcc < /tmp/test.eml
Feb 18 15:53:53.880 [35076] dbg: dcc: DCC learning not enabled by dcc_learn_score
Return-Path: <NAME@gmail.com>
X-Spam-Checker-Version: SpamAssassin 4.0.0 (2022-12-14) on mail.MYDOMAIN.COM
X-Spam-Scanned: spamd.mail.MYDOMAIN.COM
X-Spam-Status: No, score=0.7 required=8.0 tests=BODY_SINGLE_WORD,DKIM_SIGNED,
DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,DMARC_PASS,FREEMAIL_FROM,
SCC_BODY_SINGLE_WORD,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,
URIBL_DBL_BLOCKED_OPENDNS autolearn=unavailable autolearn_force=no
version=4.0.0
X-Spam-DCC: :
X-Spam-Level:
X-Spam-SenderDomain: gmail.com
X-Spam-AuthorDomain: gmail.com
X-Spam-Remote-IP: 209.85.210.42
X-Spam-Remote-RDNS: mail-ot1-f42.google.com
X-Spam-Remote-HELO: mail-ot1-f42.google.com
...


To compare, network tests with Pyzor

spamassassin --prefs-file=/etc/spamassassin/local.cf -D pyzor < /root/test2.eml
Feb 18 15:57:40.187 [35119] dbg: pyzor: network tests on, attempting Pyzor
Feb 18 15:57:40.893 [35119] dbg: pyzor: adjusting rule PYZOR_CHECK priority to -100
Feb 18 15:57:42.728 [35119] dbg: pyzor: pyzor is available: /usr/local/bin/pyzor
Feb 18 15:57:42.734 [35120] dbg: pyzor: child process 35120 forked
Feb 18 15:57:42.736 [35120] dbg: pyzor: opening pipe: /usr/local/bin/pyzor --homedir /etc/spamassassin/.pyzor/ check </tmp/.spamassassin35119akcqtBtmp
Feb 18 15:57:42.910 [35120] dbg: pyzor: [35122] finished: exit 1
Feb 18 15:57:42.940 [35119] dbg: pyzor: child process 35120 finished, reading results
Feb 18 15:57:42.940 [35119] dbg: pyzor: got response: public.pyzor.org:24441\t(200, 'OK')\t0\t0
Feb 18 15:57:42.940 [35119] dbg: pyzor: result: COUNT=0/5 WELCOMELIST=0/10/0.0
...
Re: SpamAssassin4 + DCC not populating "X-Spam-DCC: : " header ? [ In reply to ]
On 18.02.24 14:21, glad.tent3766@fastmail.com wrote:
>I'm hoping someone can help troubleshooting using DCC in SpamAssassin.
>My setup isn't populating the "X-Spam-DCC: : " header.

>I configured SpamAssassin to use DCC
>
> cat local.cf
> ...
> loadplugin Mail::SpamAssassin::Plugin::DCC
> add_header all DCC _DCCB_: _DCCR_
> ...
> ifplugin Mail::SpamAssassin::Plugin::DCC
> use_dcc 1
> dcc_home /etc/dcc
> dcc_path /usr/local/bin/dccproc
> dcc_timeout 10
> dcc_body_max 999999
> dcc_fuz1_max 999999
> dcc_fuz2_max 999999
> score DCC_CHECK 3.000
> dcc_learn_score 999999
> endif
> ...


>Testing against a sample email,
>
> spamassassin --prefs-file=/etc/spamassassin/local.cf -D </etc/spamassassin/sample-email.txt

I wonser why you use --prefs-file=/etc/spamassassin/local.cf ?

/etc/spamassassin/local.cf should be loaded automatically


> Feb 18 11:24:48.255 [7041] dbg: plugin: loading Mail::SpamAssassin::Plugin::DCC from @INC

> Feb 18 11:24:48.296 [7041] dbg: rules: meta test DIGEST_MULTIPLE has undefined dependency 'DCC_CHECK'
> Feb 18 11:24:48.304 [7041] dbg: rules: meta test FSL_BULK_SIG has undefined dependency 'DCC_CHECK'

These indicate DCC is not available

> Feb 18 11:24:49.989 [7041] dbg: plugin: Mail::SpamAssassin::Plugin::DCC=HASH(0x55f8e8a5da20) implements 'check_tick', priority 0
> Feb 18 11:24:50.003 [7041] dbg: plugin: Mail::SpamAssassin::Plugin::DCC=HASH(0x55f8e8a5da20) implements 'check_dnsbl', priority 0
> Feb 18 11:24:50.904 [7041] dbg: plugin: Mail::SpamAssassin::Plugin::DCC=HASH(0x55f8e8a5da20) implements 'check_cleanup', priority 0
> Feb 18 11:24:50.914 [7041] dbg: plugin: Mail::SpamAssassin::Plugin::DCC=HASH(0x55f8e8a5da20) implements 'check_post_learn', priority 0
> Feb 18 11:24:50.914 [7041] dbg: dcc: DCC learning not enabled by dcc_learn_score

and these indicate DCC is available.

I have "loadplugin Mail::SpamAssassin::Plugin::DCC" in
/etc/spamassassin/v310.pre

- try uncommenting it there.


--
Matus UHLAR - fantomas, uhlar@fantomas.sk ; http://www.fantomas.sk/
Warning: I wish NOT to receive e-mail advertising to this address.
Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.
WinError #98652: Operation completed successfully.
Re: SpamAssassin4 + DCC not populating "X-Spam-DCC: : " header ? [ In reply to ]
> and these indicate DCC is available.
>
> I have "loadplugin Mail::SpamAssassin::Plugin::DCC" in
> /etc/spamassassin/v310.pre
>
> - try uncommenting it there.

If you do, it's anyway disabled on --lint.

grep "loadplugin Mail::SpamAssassin::Plugin::DCC" `grep -rlni "loadplugin Mail::SpamAssassin::Plugin::DCC" .`
./v310.pre:loadplugin Mail::SpamAssassin::Plugin::DCC
./local.cf:loadplugin Mail::SpamAssassin::Plugin::DCC


spamassassin --prefs-file=/etc/spamassassin/local.cf -D --lint 2> tmp.out
grep -i dcc tmp.out
Feb 19 08:03:57.566 [13073] dbg: config: fixed relative path: /var/spamassassin/4.000000/updates_spamassassin_org/25_dcc.cf
Feb 19 08:03:57.566 [13073] dbg: config: using "/var/spamassassin/4.000000/updates_spamassassin_org/25_dcc.cf" for included file
Feb 19 08:03:57.566 [13073] dbg: config: read file /var/spamassassin/4.000000/updates_spamassassin_org/25_dcc.cf
Feb 19 08:03:57.566 [13073] dbg: config: parsing file /var/spamassassin/4.000000/updates_spamassassin_org/25_dcc.cf
Feb 19 08:03:58.094 [13073] dbg: plugin: loading Mail::SpamAssassin::Plugin::DCC from @INC
Feb 19 08:03:58.098 [13073] dbg: dcc: local tests only, disabling DCC
Feb 19 08:03:58.136 [13073] dbg: rules: meta test DIGEST_MULTIPLE has undefined dependency 'DCC_CHECK'
Feb 19 08:03:58.148 [13073] dbg: rules: meta test FSL_BULK_SIG has undefined dependency 'DCC_CHECK'
Feb 19 08:03:59.862 [13073] dbg: plugin: Mail::SpamAssassin::Plugin::DCC=HASH(0x5562b03e8738) implements 'check_tick', priority 0
Feb 19 08:04:00.409 [13073] dbg: plugin: Mail::SpamAssassin::Plugin::DCC=HASH(0x5562b03e8738) implements 'check_cleanup', priority 0
Feb 19 08:04:00.411 [13073] dbg: plugin: Mail::SpamAssassin::Plugin::DCC=HASH(0x5562b03e8738) implements 'check_post_learn', priority 0

spamassassin --prefs-file=/etc/spamassassin/local.cf -D 2> tmp.out < ~/test.eml
grep -i dcc tmp.out
Feb 19 08:05:51.904 [13609] dbg: config: fixed relative path: /var/spamassassin/4.000000/updates_spamassassin_org/25_dcc.cf
Feb 19 08:05:51.904 [13609] dbg: config: using "/var/spamassassin/4.000000/updates_spamassassin_org/25_dcc.cf" for included file
Feb 19 08:05:51.904 [13609] dbg: config: read file /var/spamassassin/4.000000/updates_spamassassin_org/25_dcc.cf
Feb 19 08:05:51.904 [13609] dbg: config: parsing file /var/spamassassin/4.000000/updates_spamassassin_org/25_dcc.cf
Feb 19 08:05:52.432 [13609] dbg: plugin: loading Mail::SpamAssassin::Plugin::DCC from @INC
Feb 19 08:05:52.459 [13609] dbg: rules: meta test FSL_BULK_SIG has undefined dependency 'DCC_CHECK'
Feb 19 08:05:52.463 [13609] dbg: rules: meta test DIGEST_MULTIPLE has undefined dependency 'DCC_CHECK'
Feb 19 08:05:54.179 [13609] dbg: message: _decode_header x-spam-dcc: :
Feb 19 08:05:54.211 [13609] dbg: plugin: Mail::SpamAssassin::Plugin::DCC=HASH(0x55f0c228b150) implements 'check_tick', priority 0
Feb 19 08:05:54.224 [13609] dbg: plugin: Mail::SpamAssassin::Plugin::DCC=HASH(0x55f0c228b150) implements 'check_dnsbl', priority 0
Feb 19 08:06:02.367 [13609] dbg: plugin: Mail::SpamAssassin::Plugin::DCC=HASH(0x55f0c228b150) implements 'check_cleanup', priority 0
Feb 19 08:06:02.379 [13609] dbg: plugin: Mail::SpamAssassin::Plugin::DCC=HASH(0x55f0c228b150) implements 'check_post_learn', priority 0
Feb 19 08:06:02.379 [13609] dbg: dcc: DCC learning not enabled by dcc_learn_score

Headers in all real received emails, for example

...
X-Spam-Status: No, score=1.5 required=8.0 tests=BODY_SINGLE_WORD,FREEMAIL_FROM,
KAM_NUMSUBJECT,SCC_BODY_SINGLE_WORD,T_SCC_BODY_TEXT_LINE autolearn=no
autolearn_force=no version=4.0.0
X-Spam-DCC: :
X-Spam-Pyzor: Reported 0 times, welcomelisted 0 times.
X-Spam-Level: *
X-Spam-Relay-Country: US US
X-Spam-ASN: AS15169 GOOGLE
X-Spam-SenderDomain: gmail.com
X-Spam-AuthorDomain: gmail.com
X-Spam-Remote-IP: 209.85.128.177
X-Spam-Remote-RDNS: mail-yw1-f177.google.com
X-Spam-Remote-HELO: mail-yw1-f177.google.com
...


Denny
Re: SpamAssassin4 + DCC not populating "X-Spam-DCC: : " header ? [ In reply to ]
>> and these indicate DCC is available.
>>
>> I have "loadplugin Mail::SpamAssassin::Plugin::DCC" in
>> /etc/spamassassin/v310.pre
>>
>> - try uncommenting it there.

On 19.02.24 08:17, glad.tent3766@fastmail.com wrote:
>If you do, it's anyway disabled on --lint.

It does not matter what happens when you use --lint, because it skips
network checks, including DCC.

>spamassassin --prefs-file=/etc/spamassassin/local.cf -D 2> tmp.out < ~/test.eml

I have already asked why you use --prefs-file.
You have not answered my question and simply deleted it.

--
Matus UHLAR - fantomas, uhlar@fantomas.sk ; http://www.fantomas.sk/
Warning: I wish NOT to receive e-mail advertising to this address.
Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.
- Have you got anything without Spam in it?
- Well, there's Spam egg sausage and Spam, that's not got much Spam in it.
Re: SpamAssassin4 + DCC not populating "X-Spam-DCC: : " header ? [ In reply to ]
>>If you do, it's anyway disabled on --lint.
>
> It does not matter what happens when you use --lint, because it skips
> network checks, including DCC.

Yes, that's what I said. It's disabled on --lint.

>>spamassassin --prefs-file=/etc/spamassassin/local.cf -D 2> tmp.out < ~/test.eml
>
> I have already asked why you use --prefs-file.
> You have not answered my question and simply deleted it.

Because it's irrelevant.

I use it because I choose to.
Re: SpamAssassin4 + DCC not populating "X-Spam-DCC: : " header ? [ In reply to ]
Please unsubscribe me from list


On Mon, Feb 19, 2024 at 2:51?PM <glad.tent3766@fastmail.com> wrote:

> >>If you do, it's anyway disabled on --lint.
> >
> > It does not matter what happens when you use --lint, because it skips
> > network checks, including DCC.
>
> Yes, that's what I said. It's disabled on --lint.
>
> >>spamassassin --prefs-file=/etc/spamassassin/local.cf -D 2> tmp.out <
> ~/test.eml
> >
> > I have already asked why you use --prefs-file.
> > You have not answered my question and simply deleted it.
>
> Because it's irrelevant.
>
> I use it because I choose to.
>