Supported distributions:
Please note that CentOS rpm packages requires EPEL to be installed in your system as many dependencies are missing from the base CentOS repositories. You can learn how to install EPEL from their site: https://fedoraproject.org/wiki/EPEL.
Fedora packages do not require EPEL or any other third-party repository.
To install rspamd repo, please download the corresponding repository file and the signing key (both repo and all packages are signed with my GPG key). You could use the following commands to install rspamd stable1 RPM repository:
curl http://rspamd.com/rpm-stable/${YOUR_DISTRO}/rspamd.repo > /etc/yum.repos.d/rspamd.repo
rpm --import http://rspamd.com/rpm-stable/gpg.key
yum update
yum install rspamd
Where ${YOUR_DISTRO} is the short name of your os (e.g. centos-7 or fedora-22).
For experimental2 branch packages, download rpm-experimental repofile as following:
curl http://rspamd.com/rpm/${YOUR_DISTRO}/rspamd-experimental.repo > /etc/yum.repos.d/rspamd-experimental.repo
rpm --import http://rspamd.com/rpm/gpg.key
yum update
yum install rspamd
1. Use STABLE branch of packages: those packages are the official rspamd releases which are recommended for production usage.
2. Use EXPERIMENTAL branch of packages: these packages are less stable and they are generated frequently from the current development branch. Experimental packages usually have more features but might be SOMETIMES broken in some points (nevertheless, bugs are usually quickly fixed after detection).
Rspamd supports the following .deb based distributives:
To install the rspamd stable1 apt repository, please use the following commands:
apt-get install -y lsb-release wget # optional
CODENAME=`lsb_release -c -s`
wget -O- https://rspamd.com/apt-stable/gpg.key | apt-key add -
echo "deb http://rspamd.com/apt-stable/ $CODENAME main" > /etc/apt/sources.list.d/rspamd.list
echo "deb-src http://rspamd.com/apt-stable/ $CODENAME main" >> /etc/apt/sources.list.d/rspamd.list
apt-get update
apt-get --no-install-recommends install rspamd
To obtain your distributive’s codename, you could use the command lsb_release -s -c from the package called lsb-release.
For Hyperscan and LuaJIT information see the FAQ.
For experimental2 branch replace apt-stable with just apt:
apt-get install -y lsb-release wget # optional
CODENAME=`lsb_release -c -s`
wget -O- https://rspamd.com/apt/gpg.key | apt-key add -
echo "deb http://rspamd.com/apt/ $CODENAME main" > /etc/apt/sources.list.d/rspamd.list
echo "deb-src http://rspamd.com/apt/ $CODENAME main" >> /etc/apt/sources.list.d/rspamd.list
apt-get update
apt-get --no-install-recommends install rspamd
Check quick start for further steps.
official reposRspamd is also available in some versions of Debian and Ubuntu. However, we are looking for an active maintainer for rspamd in these ‘official’ repos, as now rspamd is terribly outdated there.
Please DO NOT use those packages, as they are no longer supported.
1. Use STABLE branch of packages: those packages are the official rspamd releases which are recommended for production usage.
2. Use EXPERIMENTAL branch of packages: these packages are less stable and they are generated frequently from the current development branch. Experimental packages usually have more features but might be SOMETIMES broken in some points (nevertheless, bugs are usually quickly fixed after detection).
Rspamd is also supported on the following Linux distributions:
Rspamd is available in the testing repository
Rspamd is available in the AUR
Ebuilds for Gentoo Linux users are available in the main Gentoo Portage repository.
Packages for OpenSUSE Leap & Tumbleweed are available on OBS.
Packages for Void Linux are available in the main package repository.
Rspamd has been ported to the following BSD like operating systems:
FreeBSD users can install Rspamd from ports or use the experimental line of packages by rspamd-devel port.
Users of NetBSD (and other systems with pkgsrc) can use pkgsrc.
OpenBSD users can use ports.
OSX users can install from MacPorts.
If there are no packages for your system or you want custom build options you can also build rspamd from the source code. To do that grab the source from github using git:
git clone --recursive https://github.com/vstakhov/rspamd.git
There is also a mirror of rspamd repository: https://git.rspamd.com/vstakhov/rspamd
Rspamd requires several 3-rd party software to build and run:
7.0) is NOT compatible with Rspamd. Since it is shipped with CentOS 7.0, there is no way to use Ragel from the packages and you need to build compatible Ragel (e.g. 6.8) manually from the source packages or from source code. Ragel is required to build Rspamd not to run it.-DENABLE_FANN=OFF to cmake)You can either install them from sources or (recommended) install using package manager of your system.
To build rspamd we recommend to create a separate build directory:
$ mkdir rspamd.build
$ cd rspamd.build
$ cmake ../rspamd
$ make
# make install
Alternatively, you can create a distribution package and use it for build your own packages. Here is an example for debian GNU Linux OS:
$ mkdir rspamd.build
$ cd rspamd.build
$ cmake ../rspamd
$ make dist
$ tar xvf rspamd-<rspamd_version>.tar.xz
$ cd rspamd-<rspamd_version>
$ debuild
Please check the quickstart guide that describes the subsequent steps to keep rspamd up and running. The most frequently asked questions are listed in the FAQ.
Please check the support page