Last active
August 5, 2021 01:16
-
-
Save JonTheWong/3663d67f5cc4d55a21a202bc3a837366 to your computer and use it in GitHub Desktop.
rspamc - learn_spam/learn_ham Argument list too long
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# How to scan for ham/spam in large diretories on CentOS 7 | |
rspamc -h 10.0.0.1:11334 -t 120 learn_ham * | |
rspamc -h 10.0.0.1:11334 -t 120 learn_spam * | |
We don't use password, because i allowed specific hosts to run admin control tools. | |
https://manpages.debian.org/testing/rspamd/rspamc.1.en.html | |
http://manpages.ubuntu.com/manpages/groovy/man1/rspamc.1.html | |
Large folder issue; | |
find . -name "*" -print0 | xargs -0 rspamc -h 10.1.10.5:11334 learn_ham | |
find . -name "*" -print0 | xargs -0 rspamc -h 10.1.10.5:11334 learn_spam | |
How to check emails without rspamc | |
curl --data-binary @- http://10.1.10.5:11334/symbols < file.eml | |
curl --data-binary @- http://10.1.10.5:11334/learnspam < file.eml | |
curl --data-binary @- http://10.1.10.5:11334/learnham < file.eml | |
other endpoints, https://rspamd.com/doc/workers/controller.html |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment