fix spamfilter script location
Some checks failed
Build Docker images / docker (eumau/postfix, 6) (push) Failing after 8s

This commit is contained in:
Mauro Torrez
2026-01-19 00:46:46 -03:00
parent 09416c743c
commit e4efaf2a7c

View File

@@ -0,0 +1,6 @@
#!/bin/bash
# pass mail through spam filter Bogofilter
# arguments are passed on to sendmail
/usr/bin/bogofilter -d /vmail/bogofilter -p {{ with getenv "BOGOFILTER_HAM_CUTOFF" }}--ham-cutoff '{{.}}'{{ end }} {{ with getenv "BOGOFILTER_SPAM_CUTOFF" }}--spam-cutoff '{{.}}'{{ end }} | /usr/sbin/sendmail "$@"