7 lines
303 B
Bash
Executable File
7 lines
303 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# pass mail through spam filter Bogofilter
|
|
# arguments are passed on to sendmail
|
|
|
|
/usr/bin/bogofilter -d /vmail/bogofilter -p {{ with getv "/bogofilter/ham/cutoff" }}--ham-cutoff {{.}}{{ end }} {{ with getv "/bogofilter/spam/cutoff" }}--spam-cutoff {{.}}{{ end }} | /usr/sbin/sendmail "$@"
|