summaryrefslogtreecommitdiffstats
path: root/doc/rspamd.8.md
blob: 2e6d60b4857d2cdfe552a9fba7e26897ca1bf380 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
% RSPAMD(8) Rspamd User Manual

# NAME

rspamd - main daemon for rapid spam filtering system

# SYNOPSIS

rspamd [*options*]...

rspamd --help

# DESCRIPTION

Rspamd filtering system is designed to be fast, modular and easily scalable system. 
Rspamd core is written in `C` language using event driven processing model. 
Plugins for rspamd can be written in `Lua` programming language.
Rspamd is designed to process connections completely asynchronous and do not block anywhere in code.

# OPTIONS

-t, \--config-test
:	Perform config test and exit

-f, \--no-fork
:	Do not daemonize main process

-c *path*, \--config=*path*
:	Specify config file(s)

-u *username*, \--user=*username*
:	User to run rspamd as

-g *groupname*, \--group=*groupname*
:	Group to run rspamd as

-p *path*, \--pid=*path*
:	Path to pidfile

-C, \--dump-cache
:	Dump symbols cache stats and exit

-d, \--debug
:	Force debug output

-i, \--insecure
:	Ignore running workers as privileged users (insecure)

\--test-lua=*path*
:	Specify lua file(s) to test

\--sign-config=*path*
:	Specify config file(s) to sign

\--private-key=*path*
:	Specify private key to sign

\--convert-config=*path*
:	Convert configuration to UCL

# EXAMPLES

Run rspamd daemon with default configuration:

	rspamd
	
Run rspamd in foreground with custom configuration:

	rspamd -f -c ~/rspamd.conf
	
Run rspamd specifying user and group:

	rspamd -u rspamd -g rspamd -c /etc/rspamd/rspamd.conf

Test lua scripts using rspamd API:

	rspamd --test-lua=~/test1.lua --test-lua=~/test2.lua

Sign config files for `.includes` macro:

	rspamd --private-key=sign.key --sign-config=rspamd.conf

Convert old `XML` config to the `UCL` format (since 0.6.0):

	rspamd -c /etc/rspamd.xml --convert-config=/etc/rspamd/rspamd.conf

# SEE ALSO

Rspamd documentation and source codes may be downloaded from
<https://rspamd.com/>.