You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
1.1 KiB
30 lines
1.1 KiB
# 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/sysconfig/spamass-milter |
|
EnvironmentFile = -/etc/sysconfig/spamass-milter-postfix |
|
ExecStartPre = /bin/chown -R root /run/spamass-milter |
|
ExecStart = /usr/sbin/spamass-milter $SOCKET_OPTIONS -p $SOCKET $EXTRA_FLAGS |
|
ExecStopPost = /bin/chown -R sa-milt /run/spamass-milter |
|
|
|
[Install] |
|
WantedBy = multi-user.target |
|
|
|
|