LinuxCommandLibrary

rspamc

Rspamd spam filtering client

TLDR

Train as spam

$ rspamc learn_spam path/to/email
copy
Train as ham (not spam)
$ rspamc learn_ham path/to/email
copy
Generate report on email
$ rspamc symbols path/to/email
copy
Show server statistics
$ rspamc stat
copy
Scan an email
$ rspamc < path/to/email
copy
Check fuzzy hash
$ rspamc fuzzy_check path/to/email
copy

SYNOPSIS

rspamc [options] [command] [arguments]

DESCRIPTION

rspamc is a command-line client for the rspamd spam filtering system. It can train the bayesian filter, scan emails, and query server statistics.

PARAMETERS

learn_spam FILE

Train the filter to recognize the email as spam
learn_ham FILE
Train the filter to recognize the email as legitimate
symbols FILE
Generate a detailed spam analysis report
stat
Show server statistics
fuzzy_add FILE
Add email to fuzzy hash storage
fuzzy_check FILE
Check if email matches fuzzy hashes
fuzzy_del FILE
Remove email from fuzzy hash storage
-h, --host HOST
Connect to specified rspamd host
-p, --port PORT
Connect on specified port
-P, --pass PASSWORD
Use password for authentication
-j, --json
Output results in JSON format

CAVEATS

Requires a running rspamd server. Training effectiveness improves with more samples. Fuzzy hashes are used for matching similar spam patterns.

HISTORY

rspamc is part of rspamd, a fast, free, and open-source spam filtering system designed for high-volume mail servers.

SEE ALSO

rspamd(8), rspamadm(1)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community