wesupport

25% off on first invoice for all services*

SPRING SALE

Use coupon

*Offer valid for new customers only

25% off on first invoice for all services*

SPRING SALE

Use coupon

*Offer valid for new customers only

Need help?

Our experts have had an average response time of 11.43 minutes in March 2024 to fix urgent issues.

We will keep your servers stable, secure, and fast at all times for one fixed price.

Rspamd on DirectAdmin – How to Install and Enable

by | Jun 22, 2021

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]

 

Conclusion

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.

PREVENT YOUR SERVER FROM CRASHING!

Never again lose customers to poor server speed! Let us help you.

Our server experts will monitor & maintain your server 24/7 so that it remains lightning fast and secure.

GET STARTED

var google_conversion_label = "owonCMyG5nEQ0aD71QM";

0 Comments

Submit a Comment

Your email address will not be published. Required fields are marked *

Categories

Tags