Page 1 of 1

Razor/DCC

Posted: 12 Jul 2024 04:22
by activateit
I think that the path to the razor system is wrong. The mail log has these error's:

Code: Select all

Jul 11 23:50:42 xxxx spamd[501902]: razor2: razor2 check failed: No such file or directory razor2: Can't read: /var/lib/razor/ at /usr/share/perl5/vendor_perl/Mail/SpamAssassin/Plugin/Razor2.pm line 379.

Code: Select all

cat /etc/sysconfig/spamassassin

# Options to spamd
SPAMDOPTIONS="-c -m5 -H --razor-home-dir='/var/lib/razor/' --razor-log-file='sys-syslog'"
Shouldn't the path be:

Code: Select all

/var/spool/postfix/.razor/
I'm also seeing errors about:

Code: Select all

/var/dcc/map
First was that that file doesn't exist.
I then created it as a empty file:

Code: Select all

-rw-rw----. 1 postfix postfix 7700 Jul 12 13:41 map
It looks like dcc is now writing data to it.

Re: Razor/DCC

Posted: 13 Jul 2024 17:10
by sergio_eristoff
I had a very similar error but my map exists.

I fixed this by editing the permission to 700 and set the dcc_client to se permissive (semanage permissive -a dcc_client_t).

Re: Razor/DCC

Posted: 13 Jul 2024 22:31
by shawniverson
eFa doesn't use spamd, disable it and save the resources it is using. MailScanner calls spamassassin directly. The path is wrong because spamd was never intended to be running.

Code: Select all

sudo systemctl stop spamassassin
sudo systemctl disable spamassassin

Re: Razor/DCC

Posted: 14 Jul 2024 05:48
by Aryfir
shawniverson wrote: 13 Jul 2024 22:31 eFa doesn't use spamd, disable it and save the resources it is using. MailScanner calls spamassassin directly. The path is wrong because spamd was never intended to be running.
Hi Shawn,
All this time I thought that spamassassin service should always run on eFa5, and then read your post that ms calls sa directly

Thank you for this info
PS: I'm going to start reading the wiki again

Regards,
Aryfir