commit | b382b1029eb22053bfe89c2042f46369d29cf821 | [log] [tgz] |
---|---|---|
author | Matthias Andreas Benkard <code@mail.matthias.benkard.de> | Sat Jan 02 15:32:21 2021 +0100 |
committer | Matthias Andreas Benkard <code@mail.matthias.benkard.de> | Sat Jan 02 15:32:21 2021 +0100 |
tree | 02aa76cf6a8fc0031d564c4f8cf82cd20aa2067a | |
parent | 6e270560206c2f99e57faf1c6de62268037aeb62 [diff] [blame] |
git subrepo clone https://github.com/mailcow/mailcow-dockerized.git mailcow/src/mailcow-dockerized subrepo: subdir: "mailcow/src/mailcow-dockerized" merged: "a832becb" upstream: origin: "https://github.com/mailcow/mailcow-dockerized.git" branch: "master" commit: "a832becb" git-subrepo: version: "0.4.3" origin: "???" commit: "???" Change-Id: If5be2d621a211e164c9b6577adaa7884449f16b5
diff --git a/mailcow/src/mailcow-dockerized/data/Dockerfiles/postfix/rspamd-pipe-ham b/mailcow/src/mailcow-dockerized/data/Dockerfiles/postfix/rspamd-pipe-ham new file mode 100755 index 0000000..9b26817 --- /dev/null +++ b/mailcow/src/mailcow-dockerized/data/Dockerfiles/postfix/rspamd-pipe-ham
@@ -0,0 +1,9 @@ +#!/bin/bash +FILE=/tmp/mail$$ +cat > $FILE +trap "/bin/rm -f $FILE" 0 1 2 3 13 15 + +cat ${FILE} | /usr/bin/curl -s --data-binary @- --unix-socket /var/lib/rspamd/rspamd.sock http://rspamd/learnham +cat ${FILE} | /usr/bin/curl -H "Flag: 13" -s --data-binary @- --unix-socket /var/lib/rspamd/rspamd.sock http://rspamd/fuzzyadd + +exit 0