Razor2, Pyzor, Spamcop and DCC setup

August 1, 2025 by Roberto Puzzanghera 20 comments

Changelog

  • Jun 3, 2025
    - disabled IPv6 on DCC as servers are not always responding (tx Shailendra Shukla)
  • May 25, 2024
    Razor2 upgraded to v. 2.86 (fork of dead project)
  • Dec 26, 2023
    Pyzor installed from github, as version 1.0.0 is not python3 compliant (thanks Mike)

This page concerns the setup of several filtering networks which help spamassassin to decide if a given message is spam or not. Enabling them, together with the bayesian learning system, drastically improves the spamassassin efficiency in doing this.

Loading the filters

First of all load the filters that we are going to enable editing your v310.pre file like this:

# DCC - perform DCC message checks. 
# 
# DCC is disabled here because it is not open source.  See the DCC 
# license for more details. 
# 
loadplugin Mail::SpamAssassin::Plugin::DCC

# Pyzor - perform Pyzor message checks. 
# 
loadplugin Mail::SpamAssassin::Plugin::Pyzor

# Razor2 - perform Razor2 message checks. 
# 
loadplugin Mail::SpamAssassin::Plugin::Razor2

# SpamCop - perform SpamCop message reporting 
# 
loadplugin Mail::SpamAssassin::Plugin::SpamCop

Razor2

Vipul's Razor is a distributed, collaborative, spam detection and filtering network. Through user contribution, Razor establishes a distributed and constantly updating catalogue of spam in propagation that is consulted by email clients to filter out known spam. Detection is done with statistical and randomized signatures that efficiently spot mutating spam content. User input is validated through reputation assignments based on consensus on report and revoke assertions which in turn is used for computing confidence values associated with individual signatures.

Download and install razor-agent-sdk and razor-agent:

cd /usr/local/src
wget https://downloads.sourceforge.net/project/razor/razor-agents-sdk/2.07/razor-agents-sdk-2.07.tar.bz2 
wget -O razor-agents-2.86.tar.gz https://github.com/toddr/Razor2-Client-Agent/archive/refs/tags/v2.86.tar.gz

tar xjf razor-agents-sdk-2.07.tar.bz2
cd razor-agents-sdk-2.07
chown -R root:root .
perl Makefile.PL
make
make install

cd ..
tar xzf razor-agents-2.86.tar.gz
cd Razor2-Client-Agent-2.86/
chown -R root:root .
perl Makefile.PL
make
make install

You should have already installed the Razor2 perl package. If not install it now:

cpan notest install Mail::SpamAssassin::Plugin::Razor2

Razor2 requires reporters to be registered. This lets reporters build a reputation over time, so their reports and revocations are weighted according to their reputation value.

Register yourself and create the config directory:

mkdir -p /etc/mail/spamassassin/.razor
razor-admin -home=/etc/mail/spamassassin/.razor -register
razor-admin -home=/etc/mail/spamassassin/.razor -create
razor-admin -home=/etc/mail/spamassassin/.razor -discover

Tell Razor2 where it lives adding this lines to /etc/mail/spamassassin/.razor/razor-agent.conf and setup the log dir

cat >> /etc/mail/spamassassin/.razor/razor-agent.conf << EOF
razorhome = /etc/mail/spamassassin/.razor/
logfile = /var/log/spamassassin/razor-agent.log
EOF

We already set the rotation of this log file before.

Tell spamassassin where Razor2 lives adding this to 80-filtering-networks.cf

cat >> /etc/mail/spamassassin/80-filtering-networks.cf << EOF

# razor
razor_config /etc/mail/spamassassin/.razor/razor-agent.conf
EOF

Pyzor

Pyzor is a collaborative, networked system to detect and block spam using digests of messages. Using Pyzor client a short digest is generated that is likely to uniquely identify the email message.

 

Install:

cd /usr/local/src
wget https://github.com/SpamExperts/pyzor/archive/refs/tags/release-1-1-2.tar.gz
tar xzf release-1-1-2.tar.gz
cd pyzor-release-1-1-2
chown -R root:root .
python3 setup.py build 
python3 setup.py install

Create the pyzor directory:

mkdir -p /etc/mail/spamassassin/.pyzor
chown spamd:spamd /etc/mail/spamassassin/.pyzor

Tell spamassassin where Pyzor lives adding these lines to  80-filtering-networks.cf

cat >> /etc/mail/spamassassin/80-filtering-networks.cf << EOF
# pyzor
pyzor_options --homedir /etc/mail/spamassassin/.pyzor 
pyzor_timeout 20
EOF

Spamcop

Spamcop is a known spam blocking list which works also as a reporting system sending warning information to the internet service provider responsible for hosting the services used by the spammer (web sites and email sending sites). SpamCop also uses the information to generate SpamCop's free blocking list.

Register an account here. Note: the captcha filter is not working here on my chromium browser; it works with firefox. At the end of the procedure you will get a unique e-mail address (something like submit.xxxxxxxxxxxxxxxxxxx@spam.spamcop.net) that you have to pass to spamassassin in order to send the reports to spamcop.

Finally you have to add the Spamcop addresses to your configuration in 80-filtering-networks.cf file. spamcop_to_address is the address where to submit your reports, while spamcop_from_address is an email where you want to receive a feedback from the reporting system each time a spam message has been reported.

cat >> /etc/mail/spamassassin/80-filtering-networks.cf << EOF
# spamcop
spamcop_from_address postmaster@yourdomain.tld 
spamcop_to_address submit.xxxxxxxxxxxxxxx@spam.spamcop.net
EOF

DCC

The Distributed Checksum Clearinghouses or DCC is an anti-spam content filter that runs on a variety of operating systems. The counts can be used by SMTP servers and mail user agents to detect and reject or filter spam or unsolicited bulk mail. DCC servers exchange or "flood" common checksums. The checksums include values that are constant across common variations in bulk messages, including "personalizations."

Install as follows

wget https://www.dcc-servers.net/dcc/source/dcc.tar.Z
tar xzf dcc.tar.Z
cd dcc-v.er.sion
CFLAGS="-O2 -fstack-protector" DCC_CFLAGS="-O2 -fstack-protector" ./configure
make
make install

Now load DCC uncommenting this line in your v310.pre file

loadplugin Mail::SpamAssassin::Plugin::DCC

and enable it adding these lines to 80-filtering-networks.cf

cat >> /etc/mail/spamassassin/80-filtering-networks.cf << EOF
# DCC
use_dcc 1 
dcc_path /usr/local/bin/dccproc
EOF

DCC IPv6 servers are not responding well (tx Shailendra Shkla for the advice). To turn off IPv6 connections one need to modify /var/dcc/map.txt as below

IPv6 off version=3

Then at prompt type

# cdcc -q
cdcc map> load map.txt
cdcc map> exit

Testing

This is how to test that the message is reported to Razor, Pyzor and Spamcop. Save a raw spam message into spam.txt and run spamassassin passing the --report option:

spamassassin --debug --report --nocreate-prefs < spam.txt

Comments

Redefinition triggered by install of razor-agents-sdk-2.07.tar.bz2

After doing the installation of razor-agents-sdk-2.07.tar.bz2, I get 

"Starting SpamAssassin Mail Filter Daemon: Subroutine File::Spec::Unix::canonpath redefined at /usr/lib/x86_64-linux-gnu/perl-base/XSLoader.pm line 112.
Subroutine File::Spec::Unix::catdir redefined at /usr/lib/x86_64-linux-gnu/perl-base/XSLoader.pm line 112.
Subroutine File::Spec::Unix::catfile redefined at /usr/lib/x86_64-linux-gnu/perl-base/XSLoader.pm line 112."

I can see there are older versions (2004) of definitions in files contained in  the directory /usr/local/src/razor-agents-sdk-2.07/blib/lib/File/Spec, but I don't know how those files get loaded causing the conflicted.

Reply |

Redefinition triggered by install of razor-agents-sdk-2.07.tar.bz2

which version of spamassassin?

Reply |

Redefinition triggered by install of razor-agents-sdk-2.07.tar.bz2

SpamAssassin Server version 4.0.2
running on Perl 5.40.1
with SSL support (IO::Socket::SSL 2.098)
with zlib support (Compress::Zlib 2.214)

And perl verion:

Summary of my perl5 (revision 5 version 40 subversion 1) configuration:

Platform:
osname=linux
osvers=6.1.0
archname=x86_64-linux-gnu-thread-multi
uname='linux localhost 6.1.0 #1 smp debian 6.1.0 x86_64 gnulinux '
config_args='-Dmksymlinks -Dusethreads -Duselargefiles -Dcc=x86_64-linux-gnu-gcc -Dcpp=x86_64-linux-gnu-cpp -Dld=x86_64-linux-gnu-gcc -Dccflags=-DDEBIAN -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/dummy/build/dir=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Dldflags= -Wl,-z,relro -Dlddlflags=-shared -Wl,-z,relro -Dcccdlflags=-fPIC -Darchname=x86_64-linux-gnu -Dprefix=/usr -Dprivlib=/usr/share/perl/5.40 -Darchlib=/usr/lib/x86_64-linux-gnu/perl/5.40 -Dvendorprefix=/usr -Dvendorlib=/usr/share/perl5 -Dvendorarch=/usr/lib/x86_64-linux-gnu/perl5/5.40 -Dsiteprefix=/usr/local -Dsitelib=/usr/local/share/perl/5.40.1 -Dsitearch=/usr/local/lib/x86_64-linux-gnu/perl/5.40.1 -Dman1dir=/usr/share/man/man1 -Dman3dir=/usr/share/man/man3 -Dsiteman1dir=/usr/local/man/man1 -Dsiteman3dir=/usr/local/man/man3 -Duse64bitint -Dman1ext=1 -Dman3ext=3perl -Dpager=/usr/bin/sensible-pager -Uafs -Ud_csh -Ud_ualarm -Uusesfio -Uusenm -Ui_libutil -Ui_xlocale -Uversiononly -Ud_strlcpy -Ud_strlcat -DDEBUGGING=-g -Doptimize=-O2 -dEs -Duseshrplib -Dlibperl=libperl.so.5.40.1'
hint=recommended
useposix=true
d_sigaction=define
useithreads=define
usemultiplicity=define
use64bitint=define
use64bitall=define
uselongdouble=undef
usemymalloc=n
default_inc_excludes_dot=define
Compiler:
cc='x86_64-linux-gnu-gcc'
ccflags ='-D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fwrapv -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64'
optimize='-O2 -g'
cppflags='-D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fwrapv -fno-strict-aliasing -pipe -I/usr/local/include'
ccversion=''
gccversion='14.2.0'
gccosandvers=''
intsize=4
longsize=8
ptrsize=8
doublesize=8
byteorder=12345678
doublekind=3
d_longlong=define
longlongsize=8
d_longdbl=define
longdblsize=16
longdblkind=3
ivtype='long'
ivsize=8
nvtype='double'
nvsize=8
Off_t='off_t'
lseeksize=8
alignbytes=8
prototype=define
Linker and Libraries:
ld='x86_64-linux-gnu-gcc'
ldflags =' -fstack-protector-strong -L/usr/local/lib'
libpth=/usr/local/lib /usr/lib/x86_64-linux-gnu /usr/lib /lib/x86_64-linux-gnu /lib
libs=-lgdbm -lgdbm_compat -ldb -ldl -lm -lpthread -lc -lcrypt
perllibs=-ldl -lm -lpthread -lc -lcrypt
libc=/lib/x86_64-linux-gnu/libc.so.6
so=so
useshrplib=true
libperl=libperl.so.5.40
gnulibc_version='2.41'
Dynamic Linking:
dlsrc=dl_dlopen.xs
dlext=so
d_dlsymun=undef
ccdlflags='-Wl,-E'
cccdlflags='-fPIC'
lddlflags='-shared -L/usr/local/lib -fstack-protector-strong'

Characteristics of this binary (from libperl):

Compile-time options:
HAS_LONG_DOUBLE
HAS_STRTOLD
HAS_TIMES
MULTIPLICITY
PERLIO_LAYERS
PERL_COPY_ON_WRITE
PERL_DONT_CREATE_GVSV
PERL_HASH_FUNC_SIPHASH13
PERL_HASH_USE_SBOX32
PERL_MALLOC_WRAP
PERL_OP_PARENT
PERL_PRESERVE_IVUV
PERL_USE_SAFE_PUTENV
USE_64_BIT_ALL
USE_64_BIT_INT
USE_ITHREADS
USE_LARGE_FILES
USE_LOCALE
USE_LOCALE_COLLATE
USE_LOCALE_CTYPE
USE_LOCALE_NUMERIC
USE_LOCALE_TIME
USE_PERLIO
USE_PERL_ATOF
USE_REENTRANT_API
USE_THREAD_SAFE_LOCALE
Locally applied patches:
DEBPKG:debian/cpan_definstalldirs - Provide a sensible INSTALLDIRS default for modules installed from CPAN.
DEBPKG:debian/db_file_ver - https://bugs.debian.org/340047 Remove overly restrictive DB_File version check.
DEBPKG:debian/doc_info - Replace generic man(1) instructions with Debian-specific information.
DEBPKG:debian/enc2xs_inc - https://bugs.debian.org/290336 Tweak enc2xs to follow symlinks and ignore missing @INC directories.
DEBPKG:debian/errno_ver - https://bugs.debian.org/343351 Remove Errno version check due to upgrade problems with long-running processes.
DEBPKG:debian/libperl_embed_doc - https://bugs.debian.org/186778 Note that libperl-dev package is required for embedded linking
DEBPKG:fixes/respect_umask - Respect umask during installation
DEBPKG:debian/writable_site_dirs - Set umask approproately for site install directories
DEBPKG:debian/extutils_set_libperl_path - EU:MM: set location of libperl.a under /usr/lib
DEBPKG:debian/no_packlist_perllocal - Don't install .packlist or perllocal.pod for perl or vendor
DEBPKG:debian/fakeroot - Postpone LD_LIBRARY_PATH evaluation to the binary targets.
DEBPKG:debian/instmodsh_doc - Debian policy doesn't install .packlist files for core or vendor.
DEBPKG:debian/ld_run_path - Remove standard libs from LD_RUN_PATH as per Debian policy.
DEBPKG:debian/libnet_config_path - Set location of libnet.cfg to /etc/perl/Net as /usr may not be writable.
DEBPKG:debian/perlivp - https://bugs.debian.org/510895 Make perlivp skip include directories in /usr/local
DEBPKG:debian/squelch-locale-warnings - https://bugs.debian.org/508764 Squelch locale warnings in Debian package maintainer scripts
DEBPKG:debian/patchlevel - https://bugs.debian.org/567489 List packaged patches for 5.40.1-6 in patchlevel.h
DEBPKG:fixes/document_makemaker_ccflags - https://bugs.debian.org/628522 [rt.cpan.org #68613] Document that CCFLAGS should include $Config{ccflags}
DEBPKG:debian/find_html2text - https://bugs.debian.org/640479 Configure CPAN::Distribution with correct name of html2text
DEBPKG:debian/perl5db-x-terminal-emulator.patch - https://bugs.debian.org/668490 Invoke x-terminal-emulator rather than xterm in perl5db.pl
DEBPKG:debian/cpan-missing-site-dirs - https://bugs.debian.org/688842 Fix CPAN::FirstTime defaults with nonexisting site dirs if a parent is writable
DEBPKG:debian/makemaker-pasthru - https://bugs.debian.org/758471 Pass LD settings through to subdirectories
DEBPKG:debian/makemaker-manext - https://bugs.debian.org/247370 Make EU::MakeMaker honour MANnEXT settings in generated manpage headers
DEBPKG:debian/kfreebsd-softupdates - https://bugs.debian.org/796798 Work around Debian Bug#796798
DEBPKG:debian/hurd-softupdates - https://bugs.debian.org/822735 Fix t/op/stat.t failures on hurd
DEBPKG:fixes/math_complex_doc_great_circle - https://bugs.debian.org/697567 [rt.cpan.org #114104] Math::Trig: clarify definition of great_circle_midpoint
DEBPKG:fixes/math_complex_doc_angle_units - https://bugs.debian.org/731505 [rt.cpan.org #114106] Math::Trig: document angle units
DEBPKG:fixes/cpan_web_link - https://bugs.debian.org/367291 CPAN: Add link to main CPAN web site
DEBPKG:debian/installman-utf8 - https://bugs.debian.org/840211 Generate man pages with UTF-8 characters
DEBPKG:debian/perldoc-pager - https://bugs.debian.org/870340 [rt.cpan.org #120229] Fix perldoc terminal escapes when sensible-pager is less
DEBPKG:debian/prune_libs - https://bugs.debian.org/128355 Prune the list of libraries wanted to what we actually need.
DEBPKG:debian/mod_paths - Tweak @INC ordering for Debian
DEBPKG:debian/deprecate-with-apt - https://bugs.debian.org/747628 Point users to Debian packages of deprecated core modules
DEBPKG:debian/perlbug-editor - https://bugs.debian.org/922609 Use "editor" as the default perlbug editor, as per Debian policy
DEBPKG:debian/eu-mm-perl-base - https://bugs.debian.org/962138 Suppress an ExtUtils::MakeMaker warning about our non-default @INC
DEBPKG:fixes/io_socket_ip_ipv6 - Disable getaddrinfo(3) AI_ADDRCONFIG for localhost and IPv4 numeric addresses
DEBPKG:debian/usrmerge-lib64 - https://bugs.debian.org/914128 Configure / libpth.U: Do not adjust glibpth when /usr/lib64 is present.
DEBPKG:debian/usrmerge-realpath - https://bugs.debian.org/914128 Configure / libpth.U: use realpath --no-symlinks on Debian
DEBPKG:fixes/x32-io-msg-skip - https://bugs.debian.org/922609 Skip io/msg.t on x32 due to broken System V message queues
DEBPKG:debian/configure-regen - https://bugs.debian.org/762638 Regenerate Configure et al. after probe unit changes
DEBPKG:fixes/json-pp-options - https://bugs.debian.org/1078058 Fix json_pp option handling
DEBPKG:fixes/test-harness-bailout - https://bugs.debian.org/1078060 Prevent double summary on bail-out
DEBPKG:fixes/CVE-2024-56406 - CVE-2024-56406: Heap-buffer-overflow with tr//
DEBPKG:fixes/CVE-2025-40909-metaconfig - https://bugs.debian.org/1098226 [GH #23010] Check for fdopendir
DEBPKG:fixes/CVE-2025-40909-1 - https://bugs.debian.org/1098226 [GH #23010] [84be063] CVE-2025-40909: Clone dirhandles without fchdir
DEBPKG:fixes/CVE-2025-40909-2 - https://bugs.debian.org/1098226 [GH #23010] [b088e97] Minor corrections to 1f9097b342e0e37d619dfab6ea82ea99611b30bf
DEBPKG:fixes/CVE-2025-40909-3 - https://bugs.debian.org/1098226 [GH #23010] [08dffa0] Use PerlLIO_dup_cloexec in Perl_dirp_dup to set O_CLOEXEC
DEBPKG:fixes/CVE-2025-40909-metaconfig-reorder - Slightly reorder Configure and config_h.SH to match metaconfig output
Built under linux
Compiled at Jul 27 2025 19:41:22
@INC:
/etc/perl
/usr/local/lib/x86_64-linux-gnu/perl/5.40.1
/usr/local/share/perl/5.40.1
/usr/lib/x86_64-linux-gnu/perl5/5.40
/usr/share/perl5
/usr/lib/x86_64-linux-gnu/perl-base
/usr/lib/x86_64-linux-gnu/perl/5.40
/usr/share/perl/5.40
/usr/local/lib/site_perl

Reply |

Redefinition triggered by install of razor-agents-sdk-2.07.tar.bz2

Do you have 2 perl installations? This could explain why File::Spec::Unix modules are loaded two times (redefined)

@INC:
/etc/perl
/usr/local/lib/x86_64-linux-gnu/perl/5.40.1
/usr/local/share/perl/5.40.1
/usr/lib/x86_64-linux-gnu/perl5/5.40
/usr/share/perl5
/usr/lib/x86_64-linux-gnu/perl-base
/usr/lib/x86_64-linux-gnu/perl/5.40
/usr/share/perl/5.40
/usr/local/lib/site_perl

From what I read on google it's not important, just a warning. You can try to reinstall perl and spamassassin, after checking that the above dirs are empty

Reply |

Redefinition triggered by install of razor-agents-sdk-2.07.tar.bz2

No. I just did a clean Debtian/Trixie install. Includes the same. But the the 5.40 are symbolic links to links to 5.40.1.

Reply |

Pyzor error

Hi all,

a great thank you for the guide! I have a problem with pyzor: when I try to launch it I receive the following error:

public.pyzor.org:24441 (504, 'Reading response timed-out.')

with the command 'pyzor report < spam.eml'

Have anyone the same problem?

Thank you!

Reply |

Pyzor error

I can't test it right now as I'm out oh home.

Did you already raise pyzor_timeout in the config file?

Reply |

Pyzor error

Yes, it seems that my network is blocking traffic. because from another network (hotspot with smartphone) it seems working...

Reply |

DCC Error Message

Hi Roberto , 

    Lately I noticed a error msg in spamd.log which stated 

[3686245] info: dcc: [3686339] dccproc terminated: exit 241

    I did spend quite sometime debugging this error and it seems that the query to dcc servers is failing. This is basically happening due to the IPv6 option in /var/dcc/map.txt . With IPv6 on we get the below output with cdcc info command

[root@mail dcc]# cdcc info
# 06/03/25 14:53:02 IST /var/dcc/map
# Re-resolve names after 15:50:58 Check RTTs after 15:01:37
# 2054.56 ms threshold, 1407.18 ms average 12 total, 3 working servers
IPv6 on version=3

Notice out of 12 servers it says only 3 working servers.

And with IPv6 turned off 

[root@mail dcc]# cdcc info
# 06/03/25 14:54:09 IST /var/dcc/map
# Re-resolve names after 16:53:47 Check RTTs after 15:08:51
# 1381.98 ms threshold, 1377.95 ms average 12 total, 11 working servers
IPv6 off version=3

We get 11 working servers out of 12 .

To turn off IPv6 one need to modify /var/dcc/map.txt as below

IPv6 off version=3

Then at prompt type

# cdcc -q
cdcc map> load map.txt
cdcc map> exit

Confirm output with below command

# cdcc info

And you should switch over to ipv4 and you will get more number of working dcc servers than what we get on ipv6.

Cheers

Reply |

DCC Error Message

Thank you, good to know. I'll add an advice pointing to this comment

Reply |

2 typos

change

notest install Mail::SpamAssassin::Plugin::Razor2

to 

cpan install Mail::SpamAssassin::Plugin::Razor2

Change

spamassassin --debug --report --nocreate-prefs < spam.txt

to

spamassassin --debug --report --nocreate-prefs > spam.txt

Reply |

2 typos

spamassassin --debug --report --nocreate-prefs < spam.txt

this is correct https://spamassassin.apache.org/full/4.0.x/doc/spamassassin-run.html

Reply |

Just thanks

Long time I cared of spamassassin and its plugins, just realized time passed and razor2 was not updated in perl package on the way to today...

it saved my mail server. thanks!

Reply |

where is pyzor_options ??

Hi!

Where is the pyzor_options binary? I can't find it pyzor package.

Reply |

where is pyzor_options ??

Hi, it's not a binary. It's a spamassassin's variable

Reply |

pip3 install failure on Debian12

Hi!

I got this error on Debian 12:

> pip3 install https://github.com/SpamExperts/pyzor/archive/refs/heads/master.zip

error: externally-managed-environment

× This environment is externally managed
╰─> To install Python packages system-wide, try apt install
python3-xyz, where xyz is the package you are trying to
install.

If you wish to install a non-Debian-packaged Python package,
create a virtual environment using python3 -m venv path/to/venv.
Then use path/to/venv/bin/python and path/to/venv/bin/pip. Make
sure you have python3-full installed.

If you wish to install a non-Debian packaged Python application,
it may be easiest to use pipx install xyz, which will manage a
virtual environment for you. Make sure you have pipx installed.

See /usr/share/doc/python3.11/README.venv for more information.

note: If you believe this is a mistake, please contact your Python installation or OS distribution provider. You can override this, at the risk of breaking your Python installation or OS, by passing --break-system-packages.
hint: See PEP 668 for the detailed specification.

Reply |

pyzor 1.0.0 is not compatible with python3

Hello Roberto,

Ver 1.0.0 does not working with python3.

it's fixed in this repo, so

pip3 install https://github.com/SpamExperts/pyzor/archive/refs/heads/master.zip

or

wget https://github.com/SpamExperts/pyzor/archive/refs/heads/master.zip

Reply |

pyzor 1.0.0 is not compatible with python3

Thank you, I'll check it out

Reply |

spamcop_max_report_size is not working

Hi Roberto,

First i want to say BIG thank you for all that you do, for all yours patches, for this great tutorial!
I have spamcop report enabled in my local.cf

spamcop_from_address postmaster@mydomain.com
spamcop_to_address submit.XXXXXXXXXXX@spam.spamcop.net
spamcop_max_report_size 40

When i report spam with attachment in www.spamcop.net I received the following

"You are most likely submitting a very large email. Please trim some of the unnecessary data (noting where this has been done) from this posting and try again. 
SpamCop will no longer accept email larger than 50.0K bytes."

Seems spamcop_max_report_size is not working correctly.

Do you have an idea how to report only mail headers without attachment?

Reply |

spamcop_max_report_size is not working

Hi, honestly I've never seen this one. The documentation says that 50 is the default size...

Let me know if you solve

Reply |

Add a comment

Recent comments
Recent posts

RSS feeds