[Unit] Description=RustBox webmail After=network-online.target Wants=network-online.target [Service] Type=simple User=rustbox Group=rustbox Environment=RUSTBOX_CONFIG=/etc/rustbox/rustbox.toml ExecStart=/usr/local/bin/rustbox Restart=on-failure RestartSec=3 StateDirectory=rustbox UMask=0077 NoNewPrivileges=true PrivateTmp=true PrivateDevices=true ProtectSystem=strict ProtectHome=true ProtectKernelTunables=true ProtectKernelModules=true ProtectControlGroups=true RestrictSUIDSGID=true RestrictAddressFamilies=AF_UNIX AF_INET AF_INET6 LockPersonality=true MemoryDenyWriteExecute=true [Install] WantedBy=multi-user.target