SA Learn error

Bugs in eFa 4
User avatar
shawniverson
Posts: 3644
Joined: 13 Jan 2014 23:30
Location: Indianapolis, Indiana USA
Contact:

Re: SA Learn error

Post by shawniverson »

Pukkeltje
Posts: 11
Joined: 08 Sep 2016 08:32

Re: SA Learn error

Post by Pukkeltje »

@hunter-nl: This solution works!
Pukkeltje
Posts: 11
Joined: 08 Sep 2016 08:32

Re: SA Learn error

Post by Pukkeltje »

hunter-nl wrote: 15 Oct 2020 15:53 I had the same issue. I've fixed it with the following steps:

1. Into the file /var/spool/postfix/.razor/razor-agent.conf add the line

Code: Select all

razorhome = /var/spool/postfix/.razor
2. Into the file /etc/MailScanner/spamassassin.conf add the following section

Code: Select all

ifplugin Mail::SpamAssassin::Plugin::Razor2
razor_config  /var/spool/postfix/.razor/razor-agent.conf
#razorhome     = /var/spool/postfix/.razor
endif
And restart spamassassin service

Code: Select all

systemctl restart spamassassin
3. Run the command:

Code: Select all

su -c "/bin/cat /usr/share/doc/spamassassin/sample-spam.txt | razor-report -d --verbose" -s /bin/bash postfix
4. If /var/spool/postfix/.razor/razor-agent.log doesn't exist yet, create empty file

Code: Select all

touch /var/spool/postfix/.razor/razor-agent.log
5. Change permissions

Code: Select all

chown -R postfix:mtagroup /var/spool/postfix/.razor
chmod 640 /var/spool/postfix/.razor/{identity-*,razor-agent.conf}
chmod 664 /var/spool/postfix/.razor/razor-agent.log
chmod 644 /var/spool/postfix/.razor/server*
chmod ug+s /var/spool/postfix/.razor
Now it should work.
This works!
Post Reply