| 1 |
% RSPAMADM(1) Rspamd User Manual |
| 2 |
|
| 3 |
# NAME |
| 4 |
|
| 5 |
rspamadm - rspamd administration utility |
| 6 |
|
| 7 |
# SYNOPSIS |
| 8 |
|
| 9 |
rspamadm [*global_options*] [*command*] [*command_options*]... |
| 10 |
|
| 11 |
# DESCRIPTION |
| 12 |
|
| 13 |
`rspamadm` is a routine to manage rspamd spam filtering system. It is intended to perform |
| 14 |
such actions as merging databases, performing configuration tests, encrypting passwords, |
| 15 |
signing configurations and so on. You can get a list of available **commands** by running |
| 16 |
|
| 17 |
rspamadm -l |
| 18 |
|
| 19 |
Also for each command you can check list of available **command_options** by running |
| 20 |
|
| 21 |
rspamadm help command |
| 22 |
rspamadm command --help |
| 23 |
|
| 24 |
|
| 25 |
# OPTIONS |
| 26 |
|
| 27 |
-h, \--help |
| 28 |
: Show help message |
| 29 |
|
| 30 |
-v, \--verbose |
| 31 |
: Enable verbose output |
| 32 |
|
| 33 |
-l, \--list-commands |
| 34 |
: List available commands |
| 35 |
|
| 36 |
\--version |
| 37 |
: Show version |
| 38 |
|
| 39 |
\--var=*value* |
| 40 |
: Redefine ucl variable in format `VARIABLE=VALUE` |
| 41 |
|
| 42 |
# RETURN VALUE |
| 43 |
|
| 44 |
On exit `rspamadm` returns `0` if operation was successful and an error code otherwise. |
| 45 |
|
| 46 |
# EXAMPLES |
| 47 |
|
| 48 |
Get help for pw command: |
| 49 |
|
| 50 |
rspamadm help pw |
| 51 |
rspamadm pw --help |
| 52 |
|
| 53 |
Encrypt controller's password: |
| 54 |
|
| 55 |
rspamadm pw encrypt |
| 56 |
|
| 57 |
Merge fuzzy databases: |
| 58 |
|
| 59 |
rspamadm fuzzy_merge -s data1.sqlite -s data2.sqlite -t dest.sqlite |
| 60 |
|
| 61 |
Perform configuration test: |
| 62 |
|
| 63 |
rspamadm configtest -c rspamd.conf |
| 64 |
|
| 65 |
Test configuration strictly and redefine some ucl vars: |
| 66 |
|
| 67 |
rspamadm --var=DBDIR=/tmp configtest -c ./rspamd.conf -s |
| 68 |
|
| 69 |
|
| 70 |
Dump the processed configuration: |
| 71 |
|
| 72 |
rspamadm configdump |
| 73 |
|
| 74 |
Dump the processed configuration as JSON string: |
| 75 |
|
| 76 |
rspamadm configdump -j |
| 77 |
|
| 78 |
Generate a keypair to use for HTTPCrypt encryption: |
| 79 |
|
| 80 |
rspamadm keypair |
| 81 |
|
| 82 |
# SEE ALSO |
| 83 |
|
| 84 |
Rspamd documentation and source codes may be downloaded from |
| 85 |
<https://rspamd.com/>. |