eFa v4 RC2 -Pyzor

Testing of eFa 4
Post Reply
henk
Posts: 299
Joined: 14 Dec 2015 22:16
Location: Netherlands
Contact:

eFa v4 RC2 -Pyzor

Post by henk » 31 Jan 2019 13:25

Somehow razor is not working RC2.

Code: Select all

echo "test" | spamassassin -D pyzor 2>&1 | less

Code: Select all

pyzor ping
public.pyzor.org:24441 (200, 'OK')

Code: Select all

locate pyzor
locate: can not stat () `/var/lib/mlocate/mlocate.db': No such file or directory

Code: Select all

sudo updatedb
locate pyzor
/root/.pyzor
/root/.pyzor/servers
/usr/bin/pyzor
/usr/bin/pyzord
/usr/lib/python2.7/site-packages/pyzor
/usr/lib/python2.7/site-packages/pyzor/__init__.py
/usr/lib/python2.7/site-packages/pyzor/__init__.pyc
/usr/lib/python2.7/site-packages/pyzor/__init__.pyo
/usr/lib/python2.7/site-packages/pyzor/client.py
/usr/lib/python2.7/site-packages/pyzor/client.pyc
/usr/lib/python2.7/site-packages/pyzor/client.pyo
/usr/lib/python2.7/site-packages/pyzor/server.py
/usr/lib/python2.7/site-packages/pyzor/server.pyc
/usr/lib/python2.7/site-packages/pyzor/server.pyo
/usr/share/doc/pyzor-0.5.0
/usr/share/doc/pyzor-0.5.0/COPYING
/usr/share/doc/pyzor-0.5.0/NEWS
/usr/share/doc/pyzor-0.5.0/PKG-INFO
/usr/share/doc/pyzor-0.5.0/README
/usr/share/doc/pyzor-0.5.0/THANKS
/usr/share/doc/pyzor-0.5.0/UPGRADING
/usr/share/doc/pyzor-0.5.0/usage.html
/var/lib/spamassassin/3.004002/updates_spamassassin_org/25_pyzor.cf
/var/spool/postfix/.pyzor
/var/spool/postfix/.pyzor/servers
/var/www/.pyzor

Code: Select all

cat /var/spool/postfix/.pyzor/servers
public.pyzor.org:24441

Did uncomment pyzor path and also dcc path fix
/etc/MailScanner/spamassassin.conf

Code: Select all

# make sure pyzor is installed before enabling
ifplugin Mail::SpamAssassin::Plugin::Pyzor
        pyzor_path /usr/bin/pyzor
endif

# you need to install DCCPROC and enable the plugin in v310.pre
# https://svn.apache.org/repos/asf/spamassassin/branches/3.0/INSTALL
# under "Optional Programs"
ifplugin Mail::SpamAssassin::Plugin::DCC
        #dcc_path /usr/local/bin/dccproc
        dcc_path  /usr/bin/dccproc
endif

Code: Select all

cdcc info
Delete old and add efa dcc

Code: Select all

cdcc "delete dcc1.dcc-servers.net"
cdcc "delete dcc2.dcc-servers.net"
cdcc "delete dcc3.dcc-servers.net"
cdcc "delete dcc4.dcc-servers.net"
cdcc "delete dcc5.dcc-servers.net"

cdcc "add dcc.nova53.net"
cdcc "add dcc1.dcc-servers.net"
cdcc "add dcc2.dcc-servers.net"
cdcc "add dcc3.dcc-servers.net"
cdcc "add dcc4.dcc-servers.net"
cdcc "add dcc5.dcc-servers.net"
reboot

Code: Select all

cdcc info

Code: Select all

firewall-cmd --zone=public --list-ports
443/tcp 587/tcp 80/tcp


No clou where to look, Firewalld? Selinux?

razor is ok.

Code: Select all

echo "test" | spamassassin -D razor2 2>&1 | less

User avatar
shawniverson
Posts: 2737
Joined: 13 Jan 2014 23:30
Location: Rushville, Indiana, USA
Contact:

Re: eFa v4 RC2 -Pyzor

Post by shawniverson » 31 Jan 2019 13:41

Mine is working?

Code: Select all

echo "test" | sudo su - postfix -s /bin/bash -c 'spamassassin -D pyzor 2>&1'

Code: Select all

Jan 31 08:38:24.390 [7260] dbg: pyzor: network tests on, attempting Pyzor
Jan 31 08:38:27.412 [7260] dbg: pyzor: pyzor is available: /bin/pyzor
Jan 31 08:38:27.413 [7260] dbg: pyzor: opening pipe: /bin/pyzor check < /tmp/.spamassassin7260OStVFctmp
Jan 31 08:38:27.417 [7264] info: util: setuid: ruid=89 euid=89 rgid=89 12 89 1000 egid=89 12 89 1000 
Jan 31 08:38:27.473 [7260] dbg: pyzor: [7264] finished: exit 1
Version eFa 4.0.0 RC3 now available in testing repo. Come join us in advancing eFa!

User avatar
shawniverson
Posts: 2737
Joined: 13 Jan 2014 23:30
Location: Rushville, Indiana, USA
Contact:

Re: eFa v4 RC2 -Pyzor

Post by shawniverson » 31 Jan 2019 13:52

Just checked some spam in my relay...

Code: Select all

1.98	PYZOR_CHECK	Listed in Pyzor (https://pyzor.readthedocs.io/en/latest/)
Version eFa 4.0.0 RC3 now available in testing repo. Come join us in advancing eFa!

henk
Posts: 299
Joined: 14 Dec 2015 22:16
Location: Netherlands
Contact:

Re: eFa v4 RC2 -Pyzor

Post by henk » 31 Jan 2019 14:18

Code: Select all

echo "test" | sudo su - postfix -s /bin/bash -c 'spamassassin -D pyzor 2>&1'
Jan 31 15:14:54.412 [6929] warn: config: created user preferences file: /var/spool/postfix/.spamassassin/user_prefs
Jan 31 15:14:54.452 [6929] dbg: pyzor: network tests on, attempting Pyzor
Jan 31 15:14:56.876 [6929] dbg: pyzor: pyzor is available: /usr/bin/pyzor
Jan 31 15:14:56.878 [6929] dbg: pyzor: opening pipe: /usr/bin/pyzor check < /tmp/.spamassassin69291DtBwJtmp
Jan 31 15:14:56.882 [6932] info: util: setuid: ruid=89 euid=89 rgid=89 12 89 1000 egid=89 12 89 1000
Jan 31 15:14:56.948 [6929] dbg: pyzor: [6932] finished: exit 1
Jan 31 15:14:56.948 [6929] warn: no response
Jan 31 15:14:56.949 [6929] dbg: pyzor: got response:
Jan 31 15:14:56.949 [6929] warn: Use of uninitialized value $response[0] in pattern match (m//) at /usr/share/perl5/vendor_perl/Mail/SpamAssassin/Plugin/Pyzor.pm line 307.
Received: from localhost by efa.test.lan


cat /var/spool/postfix/.spamassassin/user_prefs
# SpamAssassin user preferences file. See 'perldoc Mail::SpamAssassin::Conf'
# for details of what can be tweaked.
#*
#* Note: this file is not read by SpamAssassin until copied into the user
#* directory. At runtime, if a user has no preferences in their home directory
#* already, it will be copied for them, allowing them to perform personalised
#* customisation. If you want to make changes to the site-wide defaults,
#* create a file in /etc/spamassassin or /etc/mail/spamassassin instead.
###########################################################################

User avatar
shawniverson
Posts: 2737
Joined: 13 Jan 2014 23:30
Location: Rushville, Indiana, USA
Contact:

Re: eFa v4 RC2 -Pyzor

Post by shawniverson » 31 Jan 2019 14:22

That's a normal pyzor negative response.
Version eFa 4.0.0 RC3 now available in testing repo. Come join us in advancing eFa!

henk
Posts: 299
Joined: 14 Dec 2015 22:16
Location: Netherlands
Contact:

Re: eFa v4 RC2 -Pyzor

Post by henk » 31 Jan 2019 14:28

Should have read the pyzor docu first. :oops: :oops:

In the EFA3 version the response was like this:

echo "test" | spamassassin -D pyzor 2>&1 | less

dbg: pyzor: network tests on, attempting Pyzor
dbg: pyzor: pyzor is available: /usr/bin/pyzor
dbg: pyzor: opening pipe: /usr/bin/pyzor check < /tmp/.spamassassin4876bT1ETqtmp
dbg: pyzor: [4880] finished: exit 1
dbg: pyzor: got response: public.pyzor.org:24441 (200, 'OK') 10351429 131484
dbg: pyzor: listed: COUNT=10351429/5 WHITELIST=131484
info: rules: meta test KAM_VOICEMAIL has dependency 'KAM_RAPTOR' with a zero score
info: rules: meta test KAM_BBB has dependency 'KAM_RAPTOR' with a zero score
info: rules: meta test KAM_INSURE2 has dependency 'CBJ_GiveMeABreak' with a zero score
info: rules: meta test KAM_JURY has dependency 'KAM_RAPTOR' with a zero score
info: rules: meta test KAM_CARD has dependency 'KAM_RPTR_SUSPECT' with a zero score
info: rules: meta test KAM_FAKE_DELIVER has dependency 'KAM_RAPTOR' with a zero score
info: rules: meta test KAM_FORGED_ATTACHED has dependency 'KAM_RAPTOR' with a zero score
info: rules: meta test KAM_WARRANTY has dependency 'CBJ_GiveMeABreak' with a zero score
info: rules: meta test KAM_BADPDF2 has dependency 'KAM_RPTR_SUSPECT' with a zero score
info: rules: meta test KAM_PAYPAL2 has dependency 'KAM_RAPTOR' with a zero score
info: rules: meta test KAM_AMAZON has dependency 'KAM_RAPTOR' with a zero score
info: rules: meta test JMQ_CONGRAT has dependency 'KAM_RAPTOR' with a zero score
info: rules: meta test KAM_EVICTION has dependency 'KAM_RAPTOR' with a zero score
info: rules: meta test KAM_REALLY_FAKE_DELIVER has dependency 'KAM_RPTR_PASSED' with a zero score
info: rules: meta test KAM_INSURE has dependency 'CBJ_GiveMeABreak' with a zero score
info: rules: meta test KAM_AUTO has dependency 'CBJ_GiveMeABreak' with a zero score
info: rules: meta test KAM_PHISHY_DOLLARS has dependency 'KAM_RAPTOR' with a zero score
info: rules: meta test KAM_NOTIFY2 has dependency 'KAM_IFRAME' with a zero score
info: rules: meta test KAM_WARRANTY3 has dependency 'CBJ_GiveMeABreak' with a zero score

User avatar
shawniverson
Posts: 2737
Joined: 13 Jan 2014 23:30
Location: Rushville, Indiana, USA
Contact:

Re: eFa v4 RC2 -Pyzor

Post by shawniverson » 31 Jan 2019 14:40

v3 uses an older spamassassin, that's why it is different.
Version eFa 4.0.0 RC3 now available in testing repo. Come join us in advancing eFa!

Post Reply