SpamAssassin 4.0.1

Use this forum for discussions about SpamAssassin and anti-spam in general.
Post Reply
User avatar
RvdH
Senior user
Senior user
Posts: 3545
Joined: 2008-06-27 14:42
Location: The Netherlands

SpamAssassin 4.0.1

Post by RvdH » 2024-04-06 01:39

"SpamAssassin for Windows" 4.0.1 Perl 5.38.x x64
This is a modified SpamAssassin for Windows package, which unlike the official JAM Software distribution
will not run without a installed version of Strawberry Perl 5.38.x x64 (any version in the 5.38 branch should work)

Included/Updated in this package:

- MaxMind::DB::Reader, version 1.000014
- Razor2::Client::Agent, version 2.86
- Mail::DKIM, version 1.20240124
- Mail::DMARC, version 1.20240314
- Mail::SPF, version 3.20240206
- Mail::SpamAssassin, version 4.0.1 Revision 1916544
- ClamAV Plugin (disabled)
- HashBL.cf with working example, see http://msbl.org/ebl.html


Changes:

Uses "C:\ProgramData" as default location for \.razor and \.spamassasin folders when spamd.exe is run as "Local System" user (eg: Default Service Account)

Enjoy!

RvdH
https://d-fault.nl/files/SpamAssassinFo ... 8.x%29.zip
CIDR to RegEx: d-fault.nl/cidrtoregex
DNS Lookup: d-fault.nl/dnstools
DKIM Generator: d-fault.nl/dkimgenerator
DNSBL Lookup: d-fault.nl/dnsbllookup
GEOIP Lookup: d-fault.nl/geoiplookup

User avatar
RvdH
Senior user
Senior user
Posts: 3545
Joined: 2008-06-27 14:42
Location: The Netherlands

Re: SpamAssassin 4.0.1

Post by RvdH » 2024-04-06 01:41

"SpamAssassin for Windows" 4.0.1 Perl 5.32.x x64
This is a modified SpamAssassin for Windows package, which unlike the official JAM Software distribution
will not run without a installed version of Strawberry Perl 5.32.x x64 (any version in the 5.32 branch should work)

Included/Updated in this package:

- MaxMind::DB::Reader, version 1.000014
- Razor2::Client::Agent, version 2.86
- Mail::DKIM, version 1.20240124
- Mail::DMARC, version 1.20240314
- Mail::SPF, version 3.20240206
- Mail::SpamAssassin, version 4.0.1 Revision 1916544
- ClamAV Plugin (disabled)
- HashBL.cf with working example, see http://msbl.org/ebl.html


Changes:

Uses "C:\ProgramData" as default location for \.razor and \.spamassasin folders when spamd.exe is run as "Local System" user (eg: Default Service Account)

Enjoy!

RvdH
https://d-fault.nl/files/SpamAssassinFo ... 2.x%29.zip


"SpamAssassin for Windows" 4.0.1 Perl 5.30.x x64
This is a modified SpamAssassin for Windows package, which unlike the official JAM Software distribution
will not run without a installed version of Strawberry Perl 5.30.x x64 (any version in the 5.30 branch should work)

Included/Updated in this package:

- MaxMind::DB::Reader, version 1.000014
- Razor2::Client::Agent, version 2.86
- Mail::DKIM, version 1.20240124
- Mail::DMARC, version 1.20240314
- Mail::SPF, version 3.20240206
- Mail::SpamAssassin, version 4.0.1 Revision 1916544
- ClamAV Plugin (disabled)
- HashBL.cf with working example, see http://msbl.org/ebl.html


Changes:

Uses "C:\ProgramData" as default location for \.razor and \.spamassasin folders when spamd.exe is run as "Local System" user (eg: Default Service Account)

Enjoy!

RvdH
https://d-fault.nl/files/SpamAssassinFo ... 0.x%29.zip
CIDR to RegEx: d-fault.nl/cidrtoregex
DNS Lookup: d-fault.nl/dnstools
DKIM Generator: d-fault.nl/dkimgenerator
DNSBL Lookup: d-fault.nl/dnsbllookup
GEOIP Lookup: d-fault.nl/geoiplookup

User avatar
RvdH
Senior user
Senior user
Posts: 3545
Joined: 2008-06-27 14:42
Location: The Netherlands

Re: SpamAssassin 4.0.1

Post by RvdH » 2024-04-06 01:46

"SpamAssassin for Windows" 4.0.1 Perl 5.32.x x32
This is a modified SpamAssassin for Windows package, which unlike the official JAM Software distribution
will not run without a installed version of Strawberry Perl 5.32.x x32 (any version in the 5.32 branch should work)

Included/Updated in this package:

- MaxMind::DB::Reader, version 1.000014
- Razor2::Client::Agent, version 2.86
- Mail::DKIM, version 1.20240124
- Mail::DMARC, version 1.20240314
- Mail::SPF, version 3.20240206
- Mail::SpamAssassin, version 4.0.1 Revision 1916544
- ClamAV Plugin (disabled)
- HashBL.cf with working example, see http://msbl.org/ebl.html


Changes:

Uses "C:\ProgramData" as default location for \.razor and \.spamassasin folders when spamd.exe is run as "Local System" user (eg: Default Service Account)

Enjoy!

RvdH
https://d-fault.nl/files/SpamAssassinFo ... 2.x%29.zip


"SpamAssassin for Windows" 4.0.1 Perl 5.30.x x32
This is a modified SpamAssassin for Windows package, which unlike the official JAM Software distribution
will not run without a installed version of Strawberry Perl 5.30.x x32 (any version in the 5.30 branch should work)

Included/Updated in this package:

- MaxMind::DB::Reader, version 1.000014
- Razor2::Client::Agent, version 2.86
- Mail::DKIM, version 1.20240124
- Mail::DMARC, version 1.20240314
- Mail::SPF, version 3.20240206
- Mail::SpamAssassin, version 4.0.1 Revision 1916544
- ClamAV Plugin (disabled)
- HashBL.cf with working example, see http://msbl.org/ebl.html


Changes:

Uses "C:\ProgramData" as default location for \.razor and \.spamassasin folders when spamd.exe is run as "Local System" user (eg: Default Service Account)

Enjoy!

RvdH
https://d-fault.nl/files/SpamAssassinFo ... 0.x%29.zip
CIDR to RegEx: d-fault.nl/cidrtoregex
DNS Lookup: d-fault.nl/dnstools
DKIM Generator: d-fault.nl/dkimgenerator
DNSBL Lookup: d-fault.nl/dnsbllookup
GEOIP Lookup: d-fault.nl/geoiplookup

User avatar
RvdH
Senior user
Senior user
Posts: 3545
Joined: 2008-06-27 14:42
Location: The Netherlands

Re: SpamAssassin 4.0.1

Post by RvdH » 2024-04-06 01:51

RvdH wrote:
2024-04-06 01:39
"SpamAssassin for Windows" 4.0.1 Perl 5.38.x x64
This is a modified SpamAssassin for Windows package, which unlike the official JAM Software distribution
will not run without a installed version of Strawberry Perl 5.38.x x64 (any version in the 5.38 branch should work)

Included/Updated in this package:

- MaxMind::DB::Reader, version 1.000014
- Razor2::Client::Agent, version 2.86
- Mail::DKIM, version 1.20240124
- Mail::DMARC, version 1.20240314
- Mail::SPF, version 3.20240206
- Mail::SpamAssassin, version 4.0.1 Revision 1916544
- ClamAV Plugin (disabled)
- HashBL.cf with working example, see http://msbl.org/ebl.html


Changes:

Uses "C:\ProgramData" as default location for \.razor and \.spamassasin folders when spamd.exe is run as "Local System" user (eg: Default Service Account)

Enjoy!

RvdH
https://d-fault.nl/files/SpamAssassinFo ... 8.x%29.zip
PS, if using Perl 5.38.x you need DBD::mysql as it is not installed by default, latest version requires MySQL 8.x, you can work around this by installing older version:

Code: Select all

perl -MCPAN -e shell
install DVEEDEN/DBD-mysql-4.052.tar.gz
CIDR to RegEx: d-fault.nl/cidrtoregex
DNS Lookup: d-fault.nl/dnstools
DKIM Generator: d-fault.nl/dkimgenerator
DNSBL Lookup: d-fault.nl/dnsbllookup
GEOIP Lookup: d-fault.nl/geoiplookup

User avatar
RvdH
Senior user
Senior user
Posts: 3545
Joined: 2008-06-27 14:42
Location: The Netherlands

Re: SpamAssassin 4.0.1

Post by RvdH » 2024-04-06 11:13

SpamAssassin 4.0.1 has native support for pyzor, so you do not need python

You enable this like so:

Code: Select all

loadplugin Mail::SpamAssassin::Plugin::Pyzor
use_pyzor 1
pyzor_perl 1
CIDR to RegEx: d-fault.nl/cidrtoregex
DNS Lookup: d-fault.nl/dnstools
DKIM Generator: d-fault.nl/dkimgenerator
DNSBL Lookup: d-fault.nl/dnsbllookup
GEOIP Lookup: d-fault.nl/geoiplookup

gotspatel
Senior user
Senior user
Posts: 408
Joined: 2013-10-08 05:42
Location: INDIA

Re: SpamAssassin 4.0.1

Post by gotspatel » 2024-10-12 09:32

Hello @RvdH

need assistance

I installed 4.0.1 with perl 5.38.x x64 as above everything works fine except sometimes i get this warnings in SA Logs, can you help resolve this (previously used your 4.0.0 SA and no problem at all)

does it require and specific perl module?

Code: Select all

Sat Oct 12 01:09:58 2024 [-6376] info: util: idn_to_ascii: conversion to ACE failed, string contains a disallowed character: 'www.wire\x{E2}\x{80}\x{93}india.com' (charset UTF-8) (LibIDN2)
Sat Oct 12 01:09:58 2024 [-6376] info: util: idn_to_ascii: conversion to ACE failed, string contains a disallowed character: 'www.wire\x{E2}\x{80}\x{93}india.com' (charset UTF-8) (LibIDN2)
Sat Oct 12 01:09:58 2024 [-6376] info: util: idn_to_ascii: conversion to ACE failed, string contains a disallowed character: 'www.tube\x{E2}\x{80}\x{93}india.com' (charset UTF-8) (LibIDN2)
Sat Oct 12 01:09:58 2024 [-6376] info: util: idn_to_ascii: conversion to ACE failed, string contains a disallowed character: 'www.tube\x{E2}\x{80}\x{93}india.com' (charset UTF-8) (LibIDN2)
Sat Oct 12 01:09:58 2024 [-6376] info: util: idn_to_ascii: conversion to ACE failed, string contains a disallowed character: 'www.metec\x{E2}\x{80}\x{93}india.com' (charset UTF-8) (LibIDN2)
Sat Oct 12 01:09:58 2024 [-6376] info: util: idn_to_ascii: conversion to ACE failed, string contains a disallowed character: 'www.metec\x{E2}\x{80}\x{93}india.com' (charset UTF-8) (LibIDN2)


Sat Oct 12 12:43:04 2024 [-12300] info: util: idn_to_ascii: conversion to ACE failed, string contains a disallowed character: '\x{E2}\x{80}\x{93}' (charset UTF-8) (LibIDN2)


User avatar
RvdH
Senior user
Senior user
Posts: 3545
Joined: 2008-06-27 14:42
Location: The Netherlands

Re: SpamAssassin 4.0.1

Post by RvdH » 2024-10-12 11:44

I don't see any errors only log line(s) that inform that conversion failed due to unallowed characters

it only is a problem once you see that with every single mail not when it randomly pops up
And yes i see those line as well sometimes, i even did on 4.0.0 which used the same Net::LibIDN2, version 1.02 as 4.0.1

FYI, it is a optional module, feel free to delete it if those message annoy you

Code: Select all

..\runtime\inc\lib\auto\Net\LibIDN2\LibIDN2.xs.dll
..\runtime\inc\lib\Net\LibIDN2.pm
Last edited by RvdH on 2024-10-12 11:49, edited 2 times in total.
CIDR to RegEx: d-fault.nl/cidrtoregex
DNS Lookup: d-fault.nl/dnstools
DKIM Generator: d-fault.nl/dkimgenerator
DNSBL Lookup: d-fault.nl/dnsbllookup
GEOIP Lookup: d-fault.nl/geoiplookup

gotspatel
Senior user
Senior user
Posts: 408
Joined: 2013-10-08 05:42
Location: INDIA

Re: SpamAssassin 4.0.1

Post by gotspatel » 2024-10-12 11:46

Noted

by Error I meant conversion to ACE failed

Anyway Thanks

User avatar
RvdH
Senior user
Senior user
Posts: 3545
Joined: 2008-06-27 14:42
Location: The Netherlands

Re: SpamAssassin 4.0.1

Post by RvdH » 2024-10-12 11:53

Fri Oct 11 12:02:49 2024 [-8688] info: spamd: connection from MyServer [127.0.0.1]:1035 to port 783, fd 6
Fri Oct 11 12:02:49 2024 [-8688] info: spamd: processing message <13041761812d0d8cea2784836.b205e58eee.20241011100221.27d9ad4c6c.83655b36@mail5.sea61.rsgsv.net> for (unknown):0
Fri Oct 11 12:02:49 2024 [-8688] info: util: idn_to_ascii: conversion to ACE failed, string contains a disallowed character: '\x{EF}\x{BF}\x{BC}' (charset UTF-8) (LibIDN2)
Fri Oct 11 12:02:49 2024 [-8688] info: util: idn_to_ascii: conversion to ACE failed, string contains a disallowed character: '\x{EF}\x{BF}\x{BC}' (charset UTF-8) (LibIDN2)
Fri Oct 11 12:02:49 2024 [-8688] info: util: idn_to_ascii: conversion to ACE failed, string contains a disallowed character: 'www.\x{C3}\x{AF}\x{C2}\x{BF}\x{C2}\x{BC}.com' (charset UTF-8) (LibIDN2)
Fri Oct 11 12:02:49 2024 [-8688] info: util: idn_to_ascii: conversion to ACE failed, string contains a disallowed character: '\x{C3}\x{AF}\x{C2}\x{BF}\x{C2}\x{BC}' (charset UTF-8) (LibIDN2)
Fri Oct 11 12:02:49 2024 [-8688] info: util: idn_to_ascii: conversion to ACE failed, string contains a disallowed character: '\x{EF}\x{BF}\x{BC}' (charset UTF-8) (LibIDN2)
Fri Oct 11 12:02:55 2024 [-8688] info: spamd: identified spam (4.8/4.0) for (unknown):0 in 5.8 seconds, 280292 bytes.
Fri Oct 11 12:02:55 2024 [-8688] info: spamd: result: Y 4 - BAYES_40,CUSTOM_MANY_EXTRA_BL,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DMARC_PASS,HEADER_FROM_DIFFERENT_DOMAINS,HTML_MESSAGE,KAM_BODY_MARKETINGBL_PCCC,KAM_MARKETINGBL_PCCC,LOCAL_SCAM_15,LOCAL_URI_TRACKINGURI,MIME_QP_LONG_LINE,RCVD_IN_DNSWL_NONE,RCVD_IN_IADB_DK,RCVD_IN_IADB_ESP,RCVD_IN_IADB_LISTED,RCVD_IN_IADB_RDNS,RCVD_IN_IADB_SENDERID,RCVD_IN_IADB_SPF,RCVD_IN_JUSTSPAM,RCVD_IN_ZEROSPAM,SPF_HELO_PASS,SPF_PASS,TXREP,URIBL_GREY scantime=5.8,size=280292,user=(unknown),uid=0,required_score=4.0,rhost=MyServer,raddr=127.0.0.1,rport=1035,mid=<13041761812d0d8cea2784836.b205e58eee.20241011100221.27d9ad4c6c.83655b36@mail5.sea61.rsgsv.net>,bayes=0.232789,autolearn=no autolearn_force=no,shortcircuit=no
It still scores fine as well, so it is not that these message abandon other checks
CIDR to RegEx: d-fault.nl/cidrtoregex
DNS Lookup: d-fault.nl/dnstools
DKIM Generator: d-fault.nl/dkimgenerator
DNSBL Lookup: d-fault.nl/dnsbllookup
GEOIP Lookup: d-fault.nl/geoiplookup

gotspatel
Senior user
Senior user
Posts: 408
Joined: 2013-10-08 05:42
Location: INDIA

Re: SpamAssassin 4.0.1

Post by gotspatel » 2024-10-12 11:56

Mine didn't :lol:

Code: Select all

Sat Oct 12 01:07:21 2024 [-6376] info: spamd: connection from MAILSRV.MYDOAMIN.COM [127.0.0.1]:53164 to port 783, fd 6
Sat Oct 12 01:07:21 2024 [-6376] info: util: idn_to_ascii: conversion to ACE failed, string contains a disallowed character: 'www.wire\x{E2}\x{80}\x{93}india.com' (charset UTF-8) (LibIDN2)
Sat Oct 12 01:07:21 2024 [-6376] info: util: idn_to_ascii: conversion to ACE failed, string contains a disallowed character: 'www.wire\x{E2}\x{80}\x{93}india.com' (charset UTF-8) (LibIDN2)
Sat Oct 12 01:07:21 2024 [-6376] info: util: idn_to_ascii: conversion to ACE failed, string contains a disallowed character: 'www.tube\x{E2}\x{80}\x{93}india.com' (charset UTF-8) (LibIDN2)
Sat Oct 12 01:07:21 2024 [-6376] info: util: idn_to_ascii: conversion to ACE failed, string contains a disallowed character: 'www.tube\x{E2}\x{80}\x{93}india.com' (charset UTF-8) (LibIDN2)
Sat Oct 12 01:07:21 2024 [-6376] info: util: idn_to_ascii: conversion to ACE failed, string contains a disallowed character: 'www.metec\x{E2}\x{80}\x{93}india.com' (charset UTF-8) (LibIDN2)
Sat Oct 12 01:07:21 2024 [-6376] info: util: idn_to_ascii: conversion to ACE failed, string contains a disallowed character: 'www.metec\x{E2}\x{80}\x{93}india.com' (charset UTF-8) (LibIDN2)
Sat Oct 12 01:07:22 2024 [9020] info: prefork: child states: IB
Sat Oct 12 01:07:24 2024 [-6376] info: spamd: Tell: Did nothing for (unknown):0 in 2.2 seconds, 23855 bytes
Sat Oct 12 01:07:24 2024 [-11600] info: spamd: connection from MAILSRV.MYDOMAIN.COM [127.0.0.1]:53169 to port 783, fd 6
Sat Oct 12 01:07:25 2024 [9020] info: prefork: child states: BI
Sat Oct 12 01:07:26 2024 [-11600] info: spamd: Tell: Did nothing for (unknown):0 in 2.3 seconds, 51377 bytes
Sat Oct 12 01:07:27 2024 [-6376] info: spamd: connection from MAILSRV.MYDOMAIN.COM [127.0.0.1]:53175 to port 783, fd 6
Sat Oct 12 01:07:27 2024 [9020] info: prefork: child states: IB
Sat Oct 12 01:07:29 2024 [-6376] info: spamd: Tell: Did nothing for (unknown):0 in 2.3 seconds, 53734 bytes

Code: Select all

Sat Oct 12 01:09:57 2024 [-11600] info: spamd: Tell: Did nothing for (unknown):0 in 3.2 seconds, 200994 bytes
Sat Oct 12 01:09:58 2024 [-6376] info: spamd: connection from MAILSRV.MYDOMAIN.COM [127.0.0.1]:53534 to port 783, fd 6
Sat Oct 12 01:09:58 2024 [-6376] info: util: idn_to_ascii: conversion to ACE failed, string contains a disallowed character: 'www.wire\x{E2}\x{80}\x{93}india.com' (charset UTF-8) (LibIDN2)
Sat Oct 12 01:09:58 2024 [-6376] info: util: idn_to_ascii: conversion to ACE failed, string contains a disallowed character: 'www.wire\x{E2}\x{80}\x{93}india.com' (charset UTF-8) (LibIDN2)
Sat Oct 12 01:09:58 2024 [-6376] info: util: idn_to_ascii: conversion to ACE failed, string contains a disallowed character: 'www.tube\x{E2}\x{80}\x{93}india.com' (charset UTF-8) (LibIDN2)
Sat Oct 12 01:09:58 2024 [-6376] info: util: idn_to_ascii: conversion to ACE failed, string contains a disallowed character: 'www.tube\x{E2}\x{80}\x{93}india.com' (charset UTF-8) (LibIDN2)
Sat Oct 12 01:09:58 2024 [-6376] info: util: idn_to_ascii: conversion to ACE failed, string contains a disallowed character: 'www.metec\x{E2}\x{80}\x{93}india.com' (charset UTF-8) (LibIDN2)
Sat Oct 12 01:09:58 2024 [-6376] info: util: idn_to_ascii: conversion to ACE failed, string contains a disallowed character: 'www.metec\x{E2}\x{80}\x{93}india.com' (charset UTF-8) (LibIDN2)
Sat Oct 12 01:09:58 2024 [9020] info: prefork: child states: IB
Sat Oct 12 01:10:00 2024 [-6376] info: spamd: Tell: Did nothing for (unknown):0 in 2.2 seconds, 23828 bytes
Sat Oct 12 01:10:00 2024 [-11600] info: spamd: connection from MAILSRV.MYDOMAIN.COM [127.0.0.1]:53539 to port 783, fd 6
Sat Oct 12 01:10:01 2024 [9020] info: prefork: child states: BI
Sat Oct 12 01:10:02 2024 [-11600] info: spamd: Tell: Did nothing for (unknown):0 in 2.2 seconds, 5735 bytes
Sat Oct 12 01:10:03 2024 [-6376] info: spamd: connection from MAILSRV.MYDOMAIN.COM [127.0.0.1]:53545 to port 783, fd 6

User avatar
RvdH
Senior user
Senior user
Posts: 3545
Joined: 2008-06-27 14:42
Location: The Netherlands

Re: SpamAssassin 4.0.1

Post by RvdH » 2024-10-12 12:03

\x{E2}\x{80}\x{93} = "-" eq: en dash
https://codepoints.net/U+2013

Not sure why LibIDN2 complains about a disallowed character

https://metacpan.org/pod/Net::LibIDN2
no mention of function call idn_to_ascii, this is something in SA Util.pm
CIDR to RegEx: d-fault.nl/cidrtoregex
DNS Lookup: d-fault.nl/dnstools
DKIM Generator: d-fault.nl/dkimgenerator
DNSBL Lookup: d-fault.nl/dnsbllookup
GEOIP Lookup: d-fault.nl/geoiplookup

gotspatel
Senior user
Senior user
Posts: 408
Joined: 2013-10-08 05:42
Location: INDIA

Re: SpamAssassin 4.0.1

Post by gotspatel » 2024-10-12 13:16

Do we need to update util.pm from current sa repo from github?

User avatar
RvdH
Senior user
Senior user
Posts: 3545
Joined: 2008-06-27 14:42
Location: The Netherlands

Re: SpamAssassin 4.0.1

Post by RvdH » 2024-10-12 13:37

gotspatel wrote:
2024-10-12 13:16
Do we need to update util.pm from current sa repo from github?
You can try, but be warned the main branch on github is (pre)4.0.2 and it may not be backward compatible with 4.0.1
I would simply ignore them messages or if you are really annoyed disable the optional module like said before
CIDR to RegEx: d-fault.nl/cidrtoregex
DNS Lookup: d-fault.nl/dnstools
DKIM Generator: d-fault.nl/dkimgenerator
DNSBL Lookup: d-fault.nl/dnsbllookup
GEOIP Lookup: d-fault.nl/geoiplookup

Post Reply