Vsevolod Stakhov d6b1bf9823 Release 0.7.0. | vor 9 Jahren | |
---|---|---|
centos | vor 9 Jahren | |
compat | vor 11 Jahren | |
conf | vor 9 Jahren | |
contrib | vor 9 Jahren | |
debian | vor 9 Jahren | |
doc | vor 9 Jahren | |
freebsd | vor 10 Jahren | |
interface @ f21ffa4ce6 | vor 9 Jahren | |
linux | vor 11 Jahren | |
src | vor 9 Jahren | |
test | vor 10 Jahren | |
utils | vor 10 Jahren | |
.gitmodules | vor 9 Jahren | |
.hgtags | vor 10 Jahren | |
.travis.yml | vor 10 Jahren | |
CMakeLists.txt | vor 9 Jahren | |
ChangeLog | vor 9 Jahren | |
LICENSE | vor 10 Jahren | |
README.md | vor 9 Jahren | |
config.h.in | vor 9 Jahren | |
dist.sh | vor 9 Jahren | |
rspamd.service | vor 10 Jahren | |
rspamd.socket | vor 10 Jahren | |
uncrustify.cfg | vor 10 Jahren | |
uncrustify.sh | vor 10 Jahren |
Rspamd is a complex spam filter that allows to estimate messages by a number of rules including regular expression, statistical analysis and custom services, such as URL black lists. Each message is analysed by rspamd and got a spam score.
According to this spam score and user’s settings rspamd recommends to apply an action for this message to MTA, for example to pass, to reject or to add spam header. Rspamd has own unique features among spam filters:
All these features allow rspamd to process messages fast and demonstrate a suitable spam filtering.
Rspamd runs on a Unix like operational systems. FreeBSD users can use ports collection (mail/rspamd) for rspamd installation. Ubuntu users can use launchpad PPA:
https://launchpad.net/~vsevolod-n/+archive/rspamd
Users of other OSes should use sources to build and install rspamd. Alternatively you could check the OpenSUSE build system for packages suitable for your environment:
http://software.opensuse.org/download.html?project=home%3Acebka&package=rspamd
There are packages for debian and CentOS/RHEL distribution. Debian users could use debuild utility to create the binary packages of rspamd. CentOS/RHEL users could use spec file and other RedHat specific stuff from centos folder. The users of other systems could try to adopt some package or just to build from sources.
Rspamd requires several 3-rd party software to build and run:
You can either install them from sources or (recommended) install using package manager of your system.
To build rspamd from the sources please follow these steps:
$ git clone --recurse-submodules https://github.com/vstakhov/rspamd.git
$ mkdir rspamd.build
cmake
with specifying the path to the source
directory, for example:$ cmake ../rspamd
make
:$ make
# make install
After installation binaries, rules, plugins and a sample configuration will be installed in the target directories (prefixed by /usr/local by default).
You can improve the quality of rspamd filtering by learning its statistical module. The easiest way to do it is to use rspamc client (you can setup a custom email alias to pipe messages to rspamc)
$ rspamc -P 'q1' learn_spam [ file1 [file2 [...]]]
$ rspamc -P 'q1' learn_ham [ file1 [file2 [...]]]
Note: you should consider to change default controller’s password q1
to a more secure
one specified in the controller section of configuration.
Also a system administrator might want to customize rule’s weights or actions
thresholds. This can be done easily by editing metrics.conf
configuration file.
For writing new rules you can examine the main rspamd documentation and lua api guide and reference.