Rspamd Plugin

jamesf

Verified User
Joined
Jun 30, 2019
Messages
117
Hi,

When using the default Rspamd plugin for DirectAdmin, it seems very limited with what you can see.

it seems to only show:


TimeWorker typePIDModuleInternal IDMessage

I have seen it where in the History it shows:


IDIP address[Envelope From] From[Envelope To] To/Cc/BccSubjectActionScoreMsg sizeScan timeTimeAuthenticated user


I can also see an error saying:

cannot init backend redis for statfile BAYES_HAM
 
well
you might find these helpful

honestly, all I did was right-click on your error and choose Search Google
 
OK. I did:

# yum remove redis

yum install redis

vi /etc/rspamd/local.d/redis.conf
added this: servers = "127.0.0.1";

seems to show the full menu now..... seems the DA documentation could do with a few more bits adding to it......
 
after restarting server, get this error:

got error Connection refused when getting history: no value
 
Thank You, I am trying you use the built in DA plugin... ? perhaps you could point me to the correct docs please?

I installed Redis, following this: https://www.interserver.net/tips/kb/install-redis-and-redis-php-in-directadmin/

and it didn't seem to make any difference?

For shared hosting I recommend using redis on a socket. I use the following set up for rspamd + redis on centos8

Install and enable:
yum install redis
systemctl enable redis


edit /etc/redis.conf

bind 127.0.0.1
port 0
unixsocket /var/lib/redis/rspamd/rspamd.sock
unixsocketperm 770
pidfile /var/run/redis/rspamd.pid
logfile /var/log/redis/rspamd.log
dir /var/lib/redis/rspamd/


Now create the db dir and set permissions

mkdir -p /var/lib/redis/rspamd/
chown redis:redis /var/lib/redis/rspamd/
systemctl start redis


Create /etc/rspamd/local.d/redis.conf and add

servers = "/var/lib/redis/rspamd/rspamd.sock";

Finally verify and restart:
rspamadm configtest && systemctl restart rspamd
 
Since DA has Rspamd built in... it’s kinda strange it’s not supported when you set it to rspamd... hopefully something for the future.
 
Back
Top