Created
May 28, 2021 20:07
-
-
Save martint17r/98a2ae5e657abaf76f3d07c0380e15d8 to your computer and use it in GitHub Desktop.
systemd service file for rootless Exim on Debian Bullseye
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Unit] | |
Description=Exim Mail Transport Agent | |
After=network.target | |
[Service] | |
EnvironmentFile=-/etc/default/exim4 | |
PIDFile=/run/exim4/exim.pid | |
ExecStartPre=+chmod u-s /usr/sbin/exim4 | |
ExecStartPre=+chmod g+r /etc/exim4/exim4.conf | |
ExecStartPre=+chgrp Debian-exim /etc/exim4/exim4.conf | |
ExecStartPre=+chown Debian-exim /var/log/exim4/paniclog | |
ExecReload=/bin/kill -HUP $MAINPID | |
ExecStart=/usr/sbin/exim4 -bd -q${QFLAGS}${QUEUEINTERVAL} $COMMONOPTIONS $QUEUERUNNEROPTIONS $SMTPLISTENEROPTIONS | |
User=Debian-exim | |
Group=Debian-exim | |
ProtectSystem=full | |
ProtectHome=true | |
PrivateTmp=true | |
PrivateDevices=true | |
NoNewPrivileges=true | |
AmbientCapabilities=CAP_NET_BIND_SERVICE | |
[Install] | |
WantedBy=multi-user.target |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment