From 426ecef4a572b1f9feeb3c62d4bc01e726e77ae7 Mon Sep 17 00:00:00 2001 From: nico Date: Tue, 14 May 2019 18:54:34 +0200 Subject: Initial working commit + python3 ingest and db management + abusereport bash script --- README.md | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100755 README.md (limited to 'README.md') diff --git a/README.md b/README.md new file mode 100755 index 0000000..10d92d9 --- /dev/null +++ b/README.md @@ -0,0 +1,38 @@ +# ejabberd mod_spam_filter ingest + +## installation +Python 3 virtual environment +```bash +virtualenv -p python3 +pip install -r requirements.txt +``` + +## configuration +### ejabberd +`/etc/ejabberd/modules.d/mod_spam_filter.yml` +```yaml +modules: + mod_spam_filter: + ... + spam_dump_file: "/var/log/ejabberd/spam-example.de.txt" + ... +``` + +## usage main.py +``` +usage: main.py [-h] [-in INFILE] [-d DOMAIN] + +optional arguments: + -h, --help show this help message and exit + -in INFILE, --infile INFILE + set path to input file + -d DOMAIN, --domain DOMAIN + specify report domain +``` + +The `--in` argument does only support a single log file at a time. + +## usage abusereport-domain.sh +```bash +./abusereport-domain.sh domain.tld +``` \ No newline at end of file -- cgit v1.2.3-18-g5258