57 lines
1.7 KiB
Desktop File
57 lines
1.7 KiB
Desktop File
# This file is part of package sendmail.
|
|
#
|
|
# Copyright (c) 2011 SuSE LINUX Products GmbH, Germany.
|
|
# Author: Werner Fink
|
|
# Please send feedback to http://www.suse.de/feedback
|
|
#
|
|
# Description:
|
|
#
|
|
# Used to start the sendmail Mail Transport Client service
|
|
# which handles all mails stored at /var/spool/clientmqueue/
|
|
#
|
|
|
|
[Unit]
|
|
Description=Sendmail Mail Transport Client
|
|
Requires=sendmail.service
|
|
After=sendmail.service
|
|
After=systemd-tmpfiles-setup.service
|
|
Wants=mail-transfer-agent.target
|
|
Before=mail-transfer-agent.target
|
|
ConditionDirectoryNotEmpty=|/var/spool/clientmqueue
|
|
JoinsNamespaceOf=sendmail.service
|
|
|
|
[Service]
|
|
Group=mail
|
|
ReadWritePaths=-/var/spool/clientmqueue
|
|
ReadWritePaths=-/var/spool/clientmqueue/sm-client.pid
|
|
ReadOnlyPaths=-/etc/mail/system/sm-client.pre
|
|
ExecPaths=-/etc/mail/system/sm-client.pre
|
|
# added automatically, for details please see
|
|
# https://en.opensuse.org/openSUSE:Security_Features#Systemd_hardening_effort
|
|
ProtectSystem=full
|
|
# Do never do this as maildrop or procmail can not deliver mails anymore
|
|
#ProtectHome=read-only
|
|
PrivateDevices=true
|
|
ProtectHostname=true
|
|
ProtectClock=true
|
|
ProtectKernelTunables=true
|
|
ProtectKernelModules=true
|
|
ProtectKernelLogs=true
|
|
ProtectControlGroups=true
|
|
RestrictRealtime=true
|
|
# end of automatic additions
|
|
Type=forking
|
|
Restart=on-success
|
|
# Note that PIDFile as it has wrong format and also shows timing problems
|
|
PIDFile=/var/spool/clientmqueue/sm-client.pid
|
|
ExecStartPre=-/etc/mail/system/sm-client.pre
|
|
Environment="SENDMAIL_CLIENT_ARGS=-L sendmail-client -Ac -qp30m"
|
|
EnvironmentFile=-/etc/sysconfig/mail
|
|
EnvironmentFile=-/etc/sysconfig/sendmail
|
|
ExecStart=/usr/sbin/sendmail $SENDMAIL_CLIENT_ARGS
|
|
ExecReload=/bin/kill -HUP $MAINPID
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|
|
Also=sendmail.service
|