Balakrishnan Balasubramanian
95423ebf63
pyc files are not compatible across multiple python versions Harden systemd service files
28 lines
586 B
Desktop File
28 lines
586 B
Desktop File
# mail4one.service
|
|
|
|
[Unit]
|
|
Description=Personal Mail server
|
|
Documentation=https://gitea.balki.me/balki/mail4one
|
|
After=network.target network-online.target
|
|
Requires=network-online.target
|
|
|
|
[Service]
|
|
User=mail4one
|
|
ExecStart=/usr/local/bin/mail4one --config /etc/mail4one/config.json
|
|
AmbientCapabilities=CAP_NET_BIND_SERVICE
|
|
|
|
StateDirectory=mail4one/certs mail4one/mails
|
|
StateDirectoryMode=0750
|
|
UMask=
|
|
LogsDirectory=mail4one
|
|
WorkingDirectory=/var/lib/mail4one
|
|
|
|
ProtectSystem=strict
|
|
PrivateTmp=true
|
|
PrivateUsers=true
|
|
ProtectHome=yes
|
|
NoNewPrivileges=yes
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|