add opensmtpd
This commit is contained in:
11
mail-mta/opensmtpd/files/smtpd.initd
Normal file
11
mail-mta/opensmtpd/files/smtpd.initd
Normal 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
|
||||
}
|
||||
4
mail-mta/opensmtpd/files/smtpd.pam
Normal file
4
mail-mta/opensmtpd/files/smtpd.pam
Normal file
@@ -0,0 +1,4 @@
|
||||
auth required pam_nologin.so
|
||||
auth include system-auth
|
||||
account include system-auth
|
||||
session include system-auth
|
||||
10
mail-mta/opensmtpd/files/smtpd.service
Normal file
10
mail-mta/opensmtpd/files/smtpd.service
Normal file
@@ -0,0 +1,10 @@
|
||||
[Unit]
|
||||
Description=OpenSMTPD
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
Type=forking
|
||||
ExecStart=/usr/sbin/smtpd
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
8
mail-mta/opensmtpd/files/smtpd.socket
Normal file
8
mail-mta/opensmtpd/files/smtpd.socket
Normal file
@@ -0,0 +1,8 @@
|
||||
[Unit]
|
||||
Description=OpenSMTPD Socket
|
||||
|
||||
[Socket]
|
||||
ListenStream=/var/run/smtpd.sock
|
||||
|
||||
[Install]
|
||||
WantedBy=sockets.target
|
||||
Reference in New Issue
Block a user