add opensmtpd

This commit is contained in:
2020-01-06 12:29:37 +03:00
parent ed39e6ab34
commit c67881c214
9 changed files with 159 additions and 0 deletions

View File

@@ -0,0 +1,11 @@
#!/sbin/openrc-run
# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
command="smtpd"
pidfile="/run/smtpd.pid"
description="SMTP daemon from OpenBSD"
depend() {
need net
}

View File

@@ -0,0 +1,4 @@
auth required pam_nologin.so
auth include system-auth
account include system-auth
session include system-auth

View File

@@ -0,0 +1,10 @@
[Unit]
Description=OpenSMTPD
After=network.target
[Service]
Type=forking
ExecStart=/usr/sbin/smtpd
[Install]
WantedBy=multi-user.target

View File

@@ -0,0 +1,8 @@
[Unit]
Description=OpenSMTPD Socket
[Socket]
ListenStream=/var/run/smtpd.sock
[Install]
WantedBy=sockets.target