mirror of
https://blitiri.com.ar/repos/chasquid
synced 2026-01-04 17:27:02 +00:00
etc: Add a skeleton configuration structure
This patch adds an "etc" directory, with a basic configuration structure that can be used for an initial installation.
This commit is contained in:
11
etc/systemd/system/chasquid-smtp.socket
Normal file
11
etc/systemd/system/chasquid-smtp.socket
Normal file
@@ -0,0 +1,11 @@
|
||||
[Unit]
|
||||
Description=chasquid mail daemon (SMTP sockets)
|
||||
|
||||
[Socket]
|
||||
ListenStream=25
|
||||
FileDescriptorName=smtp
|
||||
Service=chasquid.service
|
||||
|
||||
[Install]
|
||||
WantedBy=chasquid.target
|
||||
|
||||
11
etc/systemd/system/chasquid-submission.socket
Normal file
11
etc/systemd/system/chasquid-submission.socket
Normal file
@@ -0,0 +1,11 @@
|
||||
[Unit]
|
||||
Description=chasquid mail daemon (submission sockets)
|
||||
|
||||
[Socket]
|
||||
ListenStream=587
|
||||
FileDescriptorName=submission
|
||||
Service=chasquid.service
|
||||
|
||||
[Install]
|
||||
WantedBy=chasquid.target
|
||||
|
||||
23
etc/systemd/system/chasquid.service
Normal file
23
etc/systemd/system/chasquid.service
Normal file
@@ -0,0 +1,23 @@
|
||||
[Unit]
|
||||
Description=chasquid mail daemon (service)
|
||||
Requires = chasquid-smtp.socket chasquid-submission.socket
|
||||
|
||||
[Service]
|
||||
ExecStart = /usr/local/bin/chasquid \
|
||||
|
||||
# -v=3 \
|
||||
# --log_dir=/var/log/chasquid/ \
|
||||
# --alsologtostderr \
|
||||
|
||||
Type = simple
|
||||
Restart = always
|
||||
|
||||
User = mail
|
||||
Group = mail
|
||||
|
||||
# Simple security measures just in case.
|
||||
ProtectSystem = full
|
||||
|
||||
[Install]
|
||||
WantedBy = multi-user.target
|
||||
|
||||
Reference in New Issue
Block a user