Need help?

Our experts have had an average response time of 12.49 minutes in November 2021 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:

port 0
unixsocket /var/lib/redis/rspamd/rspamd.sock
unixsocketperm 770
pidfile /var/run/redis/
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:

[[email protected] local.d]# rspamadm configtest
syntax OK
[[email protected] 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.


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.


var google_conversion_label = "owonCMyG5nEQ0aD71QM";


Submit a Comment

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


Privacy Preference Center


Necessary cookies help make a website usable by enabling basic functions like page navigation and access to secure areas of the website. The website cannot function properly without these cookies.

PHPSESSID - Preserves user session state across page requests.

gdpr[consent_types] - Used to store user consents.

gdpr[allowed_cookies] - Used to store user allowed cookies.

PHPSESSID, gdpr[consent_types], gdpr[allowed_cookies]


Statistic cookies help website owners to understand how visitors interact with websites by collecting and reporting information anonymously.

_ga - Preserves user session state across page requests.

_gat - Used by Google Analytics to throttle request rate

_gid - Registers a unique ID that is used to generate statistical data on how you use the website.

smartlookCookie - Used to collect user device and location information of the site visitors to improve the websites User Experience.

_ga, _gat, _gid
_ga, _gat, _gid


Marketing cookies are used to track visitors across websites. The intention is to display ads that are relevant and engaging for the individual user and thereby more valuable for publishers and third party advertisers.

IDE - Used by Google DoubleClick to register and report the website user's actions after viewing or clicking one of the advertiser's ads with the purpose of measuring the efficacy of an ad and to present targeted ads to the user.

test_cookie - Used to check if the user's browser supports cookies.

1P_JAR - Google cookie. These cookies are used to collect website statistics and track conversion rates.

NID - Registers a unique ID that identifies a returning user's device. The ID is used for serving ads that are most relevant to the user.

DV - Google ad personalisation

IDE, test_cookie, 1P_JAR, NID, DV, NID
IDE, test_cookie


These are essential site cookies, used by the google reCAPTCHA. These cookies use an unique identifier to verify if a visitor is human or a bot.