← 返回命令列表

Linux command

rspamc 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Example

rspamc learn_spam path/to/email

Example

rspamc learn_ham path/to/email

Example

rspamc symbols path/to/email

Example

rspamc stat

Scan

rspamc < path/to/email

Example

rspamc fuzzy_check path/to/email

说明

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

参数

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

FAQ

What is the rspamc command used for?

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

How do I run a basic rspamc example?

Run `rspamc learn_spam path/to/email` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does learn_spam FILE do in rspamc?

Train the filter to recognize the email as spam