Menu

Tree [4e9c96] default tip /
 History

Read Only access


File Date Author Commit
 compat 2012-09-04 Vsevolod Stakhov Vsevolod Stakhov [ff8b8d] Remove legacy files.
 conf 2013-02-02 Vsevolod Stakhov Vsevolod Stakhov [5d5c76] Final update for 0.5.4.
 contrib 2012-10-01 Vsevolod Stakhov Vsevolod Stakhov [d2c1a3] * Add dynamic configuration dumping.
 debian 2013-02-05 Vsevolod Stakhov Vsevolod Stakhov [bf9307] Polish debian copyright, remove unused CGI.
 doc 2013-02-02 Vsevolod Stakhov Vsevolod Stakhov [48d3f2] Pod and debian control fix.
 freebsd 2011-02-14 Vsevolod Stakhov Vsevolod Stakhov [ad035e] Remove legacy port.
 lib 2013-01-07 Vsevolod Stakhov Vsevolod Stakhov [847c86] * Add rolling history feature saving last 200 s...
 linux 2011-07-20 Vsevolod Stakhov Vsevolod Stakhov [dd7937] * Add start script for red hat compatible systems
 perl 2011-01-13 Vsevolod Stakhov Vsevolod Stakhov [cc6ae4] Mail::Rspamd::Client is fixed.
 src 2013-03-04 Vsevolod Stakhov Vsevolod Stakhov [4e9c96] Fix comma in json output.
 test 2012-12-21 Vsevolod Stakhov Vsevolod Stakhov [fe1167] Fix rrd update.
 utils 2011-12-06 Vsevolod Stakhov Vsevolod Stakhov [84893a] Remove dependency on deprecated Digest::SHA256.
 .hgtags 2013-02-05 Vsevolod Stakhov Vsevolod Stakhov [a93703] Added tag 0.5.4 for changeset bf9307c5d78b
 CMakeLists.txt 2013-02-02 Vsevolod Stakhov Vsevolod Stakhov [5d5c76] Final update for 0.5.4.
 ChangeLog 2013-02-05 Vsevolod Stakhov Vsevolod Stakhov [bf9307] Polish debian copyright, remove unused CGI.
 LICENSE 2011-11-21 Vsevolod Stakhov Vsevolod Stakhov [3586d3] * Add debian package information.
 Makefile.in 2009-01-16 Vsevolod Stakhov Vsevolod Stakhov [db3c66] * Add simple utility for sending mail to rspamd
 README 2011-11-21 Vsevolod Stakhov Vsevolod Stakhov [3586d3] * Add debian package information.
 config.h.in 2012-07-26 Vsevolod Stakhov Vsevolod Stakhov [1749a2] Fix build on FreeBSD 9.1 and Current. Thanks to...

Read Me

DESCRIPTION
===========

Rspamd is a complex spam filter that allows to estimate messages by many rules,
statistical data and custom services like URL black lists. Each message is
estimated by rspamd and got so called 'spam score'. According to spam score and
user's settings rspamd send recommended action for this message to MTA. Rspamd
has own unique features among spam filters: 
* event driven architecture allowing to process many messages at a time 
* flexible syntax of rules allowing to write rules in lua language 
* a lot of plugins and rules shipped with rspamd distribution 
* highly optimized mail processing advanced statistic 

All these features allow rspamd to process messages fast and make good results in 
spam filtering. 

INSTALLATION
============

Rspamd runs on a Unix like operational systems. FreeBSD users can use ports
collection (mail/rspamd) for rspamd installation. Users of other OSes should
use sources to build and install rspamd. You can obtain rspamd sources at
bitbucket download page: https:bitbucket.org/vstakhov/rspamd/downloads. 

Build requirements
==================

Rspamd requires several 3-rd party software to build and run:

* libevent - asynchronous event library
* glib - common purposes library
* gmime - mime parser
* lua - extendable scripting language
* cmake - advanced software build system 

You can either install them from sources or (recommended) install using package manager of your system.

Build process
=============

Building of rspamd is quite simple:

$ cmake .
$ 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). To
start working with rspamd you should do several steps:

1. Copy a sample configuration $PREFIX/etc/rspamd.xml.sample to
$PREFIX/etc/rspamd.xml 
2. Edit rspamd.xml according to your system (described
later). 
3. Make a directory for rspamd pid file and data (/var/run/rspamd by
default) and make rspamd user (nobody by default) as owner of rspamd data
directory. 
4. Make a directory for rspamd logs (or setup syslog to accept
rspamd log messages) 
5. Install start script to a proper place (this step is done
when installing from FreeBSD ports) 
6. Start rspamd using start script 

If start script is not suitable for your system (now rspamd shipped with start
script for FreeBSD, Debian and RedHat like operational systems) you should
write a start script based on your system's documentation.

FURTHER ACTIONS
===============

You can improve quality of rspamd by learning its statistic 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' -c bayes learn_spam [ file1 [file2 [...]]]
$ rspamc -P 'q1' -c bayes learn_ham [ file1 [file2 [...]]]

Note: you should consider to change default controller's password 'q1' to yours
one specified in controller section of configuration.

Also a system administrator may want to customize rule's weights or actions
thresholds. This can be easily done by editing metric section in the
configuration file.

For writing new rules you can examine the main rspamd documentation and lua api
gude and reference.

REFERENCES
==========

Home site: https://bitbucket.org/vstakhov/rspamd
Downloads: https://bitbucket.org/vstakhov/rspamd/downloads
Wiki: https://bitbucket.org/vstakhov/rspamd/wiki/
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.