Bug#878569: spamassassin: Can't set TxRep directory for site wide use

2019-08-18 Thread Marko von Oppen
Hello,

this bug is still in the Debian package, also in Stable.

The bug was marked fixed upstream some days ago.

https://bz.apache.org/SpamAssassin/show_bug.cgi?id=7383

Maybe it could be fixed now in Debian too.

Thanks

Marko

--

*Marko von Oppen*
e-mail: ma...@von-oppen.com 




signature.asc
Description: OpenPGP digital signature


Bug#878569: spamassassin: Can't set TxRep directory for site wide use

2017-10-18 Thread Roger Lynn
On 18/10/17 21:02, Roger Lynn wrote:
> I've found https://bz.apache.org/SpamAssassin/show_bug.cgi?id=7383 which
> contains a very small patch which apparently fixes the bug. Without this the
> TxRep plugin is unusable.

Applying the attached patch appears to have fixed this issue. I have now run
into https://bz.apache.org/SpamAssassin/show_bug.cgi?id=7164 which means I
get two perl warnings for every message I receive.

Roger
--- spamassassin-3.4.1.orig/lib/Mail/SpamAssassin/Plugin/TxRep.pm
+++ spamassassin-3.4.1/lib/Mail/SpamAssassin/Plugin/TxRep.pm
@@ -932,7 +932,7 @@ across all users.
 my ($self, $key, $value, $line) = @_;
 unless (defined $value && $value !~ /^$/) {return 
$Mail::SpamAssassin::Conf::MISSING_REQUIRED_VALUE;}
 if (-d $value){return 
$Mail::SpamAssassin::Conf::INVALID_VALUE; }
-$self->{txrep_path} = $value;
+$self->{auto_whitelist_path} = $value;
 }
   });


Bug#878569: spamassassin: Can't set TxRep directory for site wide use

2017-10-18 Thread Roger Lynn
I've found https://bz.apache.org/SpamAssassin/show_bug.cgi?id=7383 which
contains a very small patch which apparently fixes the bug. Without this the
TxRep plugin is unusable.

Thanks,

Roger



Bug#878569: spamassassin: Can't set TxRep directory for site wide use

2017-10-14 Thread Roger Lynn
Package: spamassassin
Version: 3.4.1-6
Severity: normal

Hi,

I have a site wide installation of Spamassassin, running as user debian-spamd.
Pyzor and Razor correctly use debian-spamd's home directory, but Bayes and 
TxRep do not. Fortunately Bayes respects the "bayes_path" option.

According to http://truxoft.com/resources/txrep.htm (linked from 
https://wiki.apache.org/spamassassin/TxRep ) the "auto_whitelist_path" option 
should set the TxRep directory. However, having set it to 
"/var/lib/spamassassin/.spamassassin/tx-reputation", which is what the 
documentaion says the default should be, spamd logs:

rules: failed to run TXREP test, skipping:
(locker: [...] safe_lock: cannot create lockfile 
/nonexistent/.spamassassin/tx-reputation.mutex: No such file or directory )

"/nonexistent/" is also the directory Bayes uses by default.

I guessed that perhaps the option should be "txrep_path", but that just 
resulted in:

config: failed to parse line, skipping, in "/etc/spamassassin/local.cf": 
txrep_path /var/lib/spamassassin/.spamassassin/tx-reputation

The "auto_whitelist_path" option did work correctly with the Auto-WhiteList 
function in Jessie.

Thanks,

Roger


-- System Information:
Debian Release: 9.2
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'proposed-updates'), (500, 
'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 4.9.0-4-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_GB:en (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: sysvinit (via /sbin/init)

Versions of packages spamassassin depends on:
ii  adduser  3.115
ii  curl 7.52.1-5+deb9u1
ii  init-system-helpers  1.48
ii  libhtml-parser-perl  3.72-3
ii  libhttp-date-perl6.02-1
ii  libmail-dkim-perl0.40-1
ii  libnet-dns-perl  1.07-1
ii  libnetaddr-ip-perl   4.079+dfsg-1+b1
ii  libsocket6-perl  0.27-1+b1
ii  libsys-hostname-long-perl1.5-1
ii  lsb-base 9.20161125
ii  perl 5.24.1-3+deb9u2
ii  perl-modules-5.24 [libarchive-tar-perl]  5.24.1-3+deb9u2

Versions of packages spamassassin recommends:
ii  gnupg 2.1.18-8~deb9u1
ii  libio-socket-inet6-perl   2.72-2
ii  libmail-spf-perl  2.9.0-4
ii  libperl5.24 [libsys-syslog-perl]  5.24.1-3+deb9u2
ii  sa-compile3.4.1-6
ii  spamc 3.4.1-6+b1

Versions of packages spamassassin suggests:
ii  libdbi-perl  1.636-1+b1
ii  libencode-detect-perl1.01-4+b3
ii  libgeo-ip-perl   1.50-1+b1
ii  libio-socket-ssl-perl2.044-1
ii  libnet-patricia-perl 1.22-1+b3
ii  libperl5.24 [libcompress-zlib-perl]  5.24.1-3+deb9u2
ii  pyzor1:1.0.0-2
ii  razor1:2.85-4.2+b2

-- Configuration Files:
/etc/default/spamassassin changed:
ENABLED=1
OPTIONS="-u debian-spamd --allow-tell"
PIDFILE="/var/run/spamd.pid"
CRON=1

/etc/spamassassin/local.cf changed:
time_limit 50
use_txrep 1
auto_whitelist_path /var/lib/spamassassin/.spamassassin/tx-reputation
ok_locales en
ok_languages en
score GTUBE 4.0
score BAYES_00  0  0 (-0.5) (-0.5)
score BAYES_05  0  0 (-0.5) (-0.5)
score BAYES_80  0  0  (0.5)  (0.5)
score BAYES_95  0  0  (0.5)  (1.0)
score BAYES_99  0  0  (1.5)  (2.0)
score BAYES_999 0  0  (0.2)  (0.2)
score MICROSOFT_EXECUTABLE(1.0)
score MIME_SUSPECT_NAME   (0.5)
clear_report_template
report Host "_HOSTNAME_", requires _REQD_ points.
report _SUMMARY_
trusted_networks192.168/16
trusted_networks90.155.73.34
trusted_networks81.187.30.29
internal_networks 192.168/16 90.155.73.34
 lock_method flock
required_score 0.0
bayes_ignore_header X-Spam-Score
bayes_ignore_header X-Spam-Report
bayes_path /var/lib/spamassassin/.spamassassin/bayes
bayes_auto_learn_threshold_nonspam 0.0
bayes_auto_learn_threshold_spam 6.0
 normalize_charset 1
ifplugin Mail::SpamAssassin::Plugin::Shortcircuit
endif # Mail::SpamAssassin::Plugin::Shortcircuit

/etc/spamassassin/v310.pre changed:
loadplugin Mail::SpamAssassin::Plugin::Pyzor
loadplugin Mail::SpamAssassin::Plugin::Razor2
loadplugin Mail::SpamAssassin::Plugin::SpamCop
loadplugin Mail::SpamAssassin::Plugin::AntiVirus
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

/etc/spamassassin/v320.pre changed:
loadplugin Mail::SpamAssassin::Plugin::Check
loadplugin Mail::SpamAssassin::Plugin::HTTPSMismatch
loadplugin