summaryrefslogtreecommitdiff
path: root/spamassassin-courier/spamassassin-update.service
blob: 1d944a2da51f4f75b53d3e96a7e66144463583c8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
[Unit]
Description=spamassassin housekeeping stuff

[Service]
#User=spamd
#Group=spamd
Type=oneshot

# remove --allowplugins, if you do not want plugin updates from SA.
ExecStart=/bin/sh -c '/usr/bin/vendor_perl/sa-update --allowplugins && {\
 /usr/bin/vendor_perl/sa-compile --quiet;\
 /usr/bin/systemctl -q --no-block try-restart spamassassin.service; }'
SuccessExitStatus=1

# uncomment the following ExecStart line to train SA's bayes filter
# and specify the path to the mailbox that contains spam email(s)
#ExecStart=/usr/bin/vendor_perl/sa-learn --spam <path_to_your_spam_mailbox>