Wondering how to get Rspamd on DirectAdmin? We can help you.
As part of our Server Management Services, we assist our customers with several DirectAdmin queries.
Today, let us see how we can install and enable Rspamd.
Rspamd on DirectAdmin
A filtering system, Rspamd prevents incoming spam. To do so, they evaluate messages by a number of rules including regex, statistical analysis, and custom services such as RBLs, etc.
Since rspamd is a drop-in replacement for SpamAssassin, it uses the same config files in the user’s directory as SpamAssassin does.
In order to begin, our Support Techs suggest a few system requirements:
- Exim 4.91+
- SpamBlocker 4.5.9+ (exim.conf)
- EasySpamFighter 1.19+
- CentOS 7+, or Debian 9+
Though Directadmin supports rspamd, Custombuild does not install Redis. However, we need it for rspamd.
Moving ahead, let us see how our Support Techs go about the installation.
Initially, in order to start the installation, we install Redis via yum:
yum install redis systemctl enable redis
Though done, we don’t start it yet.
Then we proceed to overwrite /etc/redis.conf with:
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/
After that, we create the db dir and set permissions:
mkdir -p /var/lib/redis/rspamd/ chown redis:redis /var/lib/redis/rspamd/ systemctl start redis
Later, with the use of custombuild we will install rspamd:
cd /usr/local/directadmin/custombuild ./build update ./build set eximconf yes ./build set eximconf_release 4.5 ./build set blockcracking yes ./build set easy_spam_fighter yes ./build set spamd rspamd ./build set exim yes ./build exim ./build set dovecot_conf yes ./build dovecot_conf ./build rspamd ./build update ./build exim_conf
This will enable Redis in rspamd.
We then create /etc/rspamd/local.d/redis.conf and add:
servers = "/var/lib/redis/rspamd/rspamd.sock";
Once done, we need to verify the config. We also have to restart rspamd:
[root@wh local.d]# rspamadm configtest syntax OK [root@wh local.d]# systemctl restart rspamd
These procedures should enable rspamd by now.
[Need help with the installation? We’d be happy to assist]
To conclude, we saw what is the filtering system, rspamd. In addition, we saw how our Support Techs proceed with the installation of the same in an easy and effective way.