[Unit] Description=Sendmail Mail Transmission Agent Documentation=man:sendmail(8) After=syslog.target network.target nss-lookup.target auditd.service sssd.service autofs.service Conflicts=postfix.service exim.service StartLimitInterval=60 StartLimitBurst=5 StartLimitAction=none [Service] Type=forking PIDFile=/run/sendmail.pid WorkingDirectory=/ LimitNOFILE=64535 ExecStart=/lib/systemd/scripts/sendmail start ExecReload=/lib/systemd/scripts/sendmail refresh ExecStop=/lib/systemd/scripts/sendmail stop Restart=on-failure RestartPreventExitStatus=95 96 # Usually ${ExecStop} takes care of terminating the service. However, if still # running after 30s, let systemd handle it. sendmail SIGTERMs its children on # SIGTERM. Therefore no need for mixed mode. TimeoutStopSec=30s KillMode=process SendSIGHUP=No # Make sure, that finally all processes got terminated. SendSIGKILL=yes [Install] WantedBy=multi-user.target