aboutsummaryrefslogtreecommitdiff
path: root/files/usr/local/libexec/dovecot/sieve-pipe/report-spam.sh.imap_server
blob: ec46319012ec96cb6c52dcf850dd6a075d784263 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
#!/bin/sh

set -e

. /usr/local/etc/dovecot/rspamd.conf.sh

exec /usr/local/bin/rspamc \
  --connect="$RSPAMD_HOST" \
  --password="$RSPAMD_PASSWORD" \
  --key="$RSPAMD_KEY" \
  learn_spam