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