SA Learn error
- shawniverson
- Posts: 3650
- Joined: 13 Jan 2014 23:30
- Location: Indianapolis, Indiana USA
- Contact:
Re: SA Learn error
@hunter-nl: This solution works!
Re: SA Learn error
This works!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 line2. Into the file /etc/MailScanner/spamassassin.conf add the following sectionCode: Select all
razorhome = /var/spool/postfix/.razor
And restart spamassassin serviceCode: Select all
ifplugin Mail::SpamAssassin::Plugin::Razor2 razor_config /var/spool/postfix/.razor/razor-agent.conf #razorhome = /var/spool/postfix/.razor endif
3. Run the command:Code: Select all
systemctl restart spamassassin
4. If /var/spool/postfix/.razor/razor-agent.log doesn't exist yet, create empty fileCode: Select all
su -c "/bin/cat /usr/share/doc/spamassassin/sample-spam.txt | razor-report -d --verbose" -s /bin/bash postfix
5. Change permissionsCode: Select all
touch /var/spool/postfix/.razor/razor-agent.log
Now it should work.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