1 |
diff -Nur smeserver-learn-1.0.old/root/usr/bin/Learn.pl smeserver-learn-1.0/root/usr/bin/Learn.pl |
2 |
--- smeserver-learn-1.0.old/root/usr/bin/Learn.pl 2016-07-29 04:11:26.682000000 -0400 |
3 |
+++ smeserver-learn-1.0/root/usr/bin/Learn.pl 2016-07-29 05:33:45.249000000 -0400 |
4 |
@@ -238,6 +238,9 @@ |
5 |
my $newmd5 = Digest::MD5->new->addfile(SADB)->b64digest; |
6 |
close(SADB); |
7 |
|
8 |
+# fix for bad ownership of bayes files |
9 |
+system('/bin/chown','spamd:spamd','/var/spool/spamd/.spamassassin/bayes_toks'); |
10 |
+ |
11 |
if ($newmd5 ne $md5) { |
12 |
`expand-template /etc/mail/spamassassin/local.cf`; |
13 |
`/etc/init.d/spamd restart`; |