Having systemd open sockets and pass them to chasquid is neat, but also adds some complexity to the default config, for very little value in practice. This patch simplifies the default config by having chasquid open the sockets instead. Note that systemd file descriptor passing continues to be supported, and existing installations will not be affected.
26 lines
393 B
Desktop File
26 lines
393 B
Desktop File
[Unit]
|
|
Description=chasquid mail daemon (service)
|
|
|
|
[Service]
|
|
ExecStart=/usr/local/bin/chasquid \
|
|
|
|
# -v=3 \
|
|
# --log_dir=/var/log/chasquid/ \
|
|
# --alsologtostderr \
|
|
|
|
Type=simple
|
|
Restart=always
|
|
|
|
User=mail
|
|
Group=mail
|
|
|
|
# Let chasquid listen on ports < 1024.
|
|
AmbientCapabilities=CAP_NET_BIND_SERVICE
|
|
|
|
# Simple security measures just in case.
|
|
ProtectSystem=full
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|
|
|