You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
362 B
Bash
14 lines
362 B
Bash
#!/bin/bash
|
|
|
|
RSPAMD_HOST="$(getent hosts {{ ANTISPAM_WEBUI_ADDRESS }})"
|
|
if [[ $? -ne 0 ]]
|
|
then
|
|
echo "Failed to lookup {{ ANTISPAM_WEBUI_ADDRESS }}" >&2
|
|
exit 1
|
|
fi
|
|
|
|
|
|
tee >(rspamc -h $RSPAMD_HOST -P mailu learn_spam /dev/stdin) \
|
|
>(rspamc -h $RSPAMD_HOST -P mailu -f 13 fuzzy_del /dev/stdin) \
|
|
| rspamc -h $RSPAMD_HOST -P mailu -f 11 fuzzy_add /dev/stdin
|