blob: 2db402a50df89cec23a6f07398859afea0ae34b6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
# Note: this unit file runs spamass-milter as the privileged user root,
# which is necessary for using the milter's -x option for performing
# virtusertable and alias expansion. If you are not using the -x option,
# there is no need for the milter to run as root and it is best not to do so,
# using the spamass-milter.service unit instead of this one.
[Unit]
Description = Mail filter for SpamAssassin
Wants = spamassassin.service
After = syslog.target
After = local-fs.target
After = network.target
After = spamassassin.service
Before = sendmail.service
Before = postfix.service
Conflicts = spamass-milter.service
[Service]
Type = simple
UMask = 0022
Environment = SOCKET=/run/spamass-milter/spamass-milter.sock SOCKET_OPTIONS= EXTRA_FLAGS=
EnvironmentFile = -/etc/spamass-milter
EnvironmentFile = -/etc/spamass-milter-postfix
ExecStartPre = /usr/bin/chown -R root /run/spamass-milter
ExecStart = /usr/bin/spamass-milter $SOCKET_OPTIONS -p $SOCKET $EXTRA_FLAGS
ExecStopPost = /usr/bin/chown -R sa-milt /run/spamass-milter
[Install]
WantedBy = multi-user.target
|