2023-10-26 12:25:19 +02:00
|
|
|
[Unit]
|
|
|
|
Description=qpsmtpd
|
2024-04-25 23:24:35 +02:00
|
|
|
After=network.target network-online.target
|
2023-10-26 12:25:19 +02:00
|
|
|
|
|
|
|
[Service]
|
2024-04-25 23:24:35 +02:00
|
|
|
Type=simple
|
|
|
|
LimitDATA=150000000
|
|
|
|
LimitSTACK=150000000
|
|
|
|
LimitMEMLOCK=150000000
|
|
|
|
Environment=PORT=25 INSTANCES=40 INSTANCES_PER_IP=5 QPSMTPD_CONFIG=/var/service/qpsmtpd/config PATH=/var/qmail/bin:/bin:/usr/bin:/usr/local/bin TCPLOCALHOST=me
|
|
|
|
WorkingDirectory=/var/service/qpsmtpd/
|
|
|
|
|
2023-10-26 12:25:19 +02:00
|
|
|
ExecStartPre=/sbin/e-smith/service-status qpsmtpd
|
2024-04-25 23:24:35 +02:00
|
|
|
ExecStartPre=/sbin/e-smith/systemd/qpsmtpd-init %N
|
|
|
|
ExecStart=/usr/bin/qpsmtpd-forkserver \
|
|
|
|
-u qpsmtpd \
|
|
|
|
-l 0.0.0.0 \
|
|
|
|
-p $PORT \
|
|
|
|
-c $INSTANCES \
|
|
|
|
-m $INSTANCES_PER_IP
|
|
|
|
ExecReload=/bin/kill -HUP $MAINPID
|
|
|
|
Restart=always
|
|
|
|
RestartSec=20s
|
2023-10-26 12:25:19 +02:00
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=sme-server.target
|