diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2019-04-05 21:17:31 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2019-04-05 21:17:31 +0100 |
commit | dc7cbdfa65fd814b3b9aa3c56257da201109e807 (patch) | |
tree | c85d72f6f31f21f178069c9d41d41a7c1ff4b362 /mail-filter/postfwd/files | |
parent | 0706fc6986773f4e4d391deff4ad5143c464ea4e (diff) |
gentoo resync : 05.04.2019
Diffstat (limited to 'mail-filter/postfwd/files')
-rw-r--r-- | mail-filter/postfwd/files/postfwd.conf.3 | 18 | ||||
-rw-r--r-- | mail-filter/postfwd/files/postfwd.init.3 | 27 | ||||
-rw-r--r-- | mail-filter/postfwd/files/postfwd.init.3-r1 | 11 | ||||
-rw-r--r-- | mail-filter/postfwd/files/postfwd.service.3 | 11 |
4 files changed, 67 insertions, 0 deletions
diff --git a/mail-filter/postfwd/files/postfwd.conf.3 b/mail-filter/postfwd/files/postfwd.conf.3 new file mode 100644 index 000000000000..578b0516171e --- /dev/null +++ b/mail-filter/postfwd/files/postfwd.conf.3 @@ -0,0 +1,18 @@ +# /etc/conf.d/postfwd.conf + +# User and group to execute postfwd as +POSTFWD_USER="postfwd" +POSTFWD_GROUP="postfwd" + +# Configuration file to use +POSTFWD_CONFIG="/etc/postfwd.cf" + +# The IP address postfwd will listen on +# WARNING: You _really_ want this to be localhost for security! +POSTFWD_LISTEN="127.0.0.1" + +# The port postfwd will listen on +POSTFWD_PORT="10040" + +# Additional options to pass to postfwd +POSTFWD_OPTS="" diff --git a/mail-filter/postfwd/files/postfwd.init.3 b/mail-filter/postfwd/files/postfwd.init.3 new file mode 100644 index 000000000000..7fc17344a31d --- /dev/null +++ b/mail-filter/postfwd/files/postfwd.init.3 @@ -0,0 +1,27 @@ +#!/sbin/openrc-run +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +PIDFILE=/var/run/postfwd.pid + +depend() { + need net +} + +start() { + ebegin "Starting postfwd" + start-stop-daemon --start --quiet --background \ + --pidfile ${PIDFILE} \ + --exec /usr/sbin/postfwd3 -- --daemon --file ${POSTFWD_CONFIG} \ + --interface=${POSTFWD_LISTEN} --port=${POSTFWD_PORT} \ + --user=${POSTFWD_USER} --group=${POSTFWD_GROUP} \ + --pidfile ${PIDFILE} \ + ${POSTFWD_OPTS} + eend $? +} + +stop() { + ebegin "Stopping postfwd" + start-stop-daemon --stop --quiet --pidfile ${PIDFILE} + eend $? +} diff --git a/mail-filter/postfwd/files/postfwd.init.3-r1 b/mail-filter/postfwd/files/postfwd.init.3-r1 new file mode 100644 index 000000000000..496fea757208 --- /dev/null +++ b/mail-filter/postfwd/files/postfwd.init.3-r1 @@ -0,0 +1,11 @@ +#!/sbin/openrc-run +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +command="/usr/sbin/postfwd3" +command_args="--nodaemon --file ${POSTFWD_CONFIG} --interface=${POSTFWD_LISTEN} \ + --port=${POSTFWD_PORT} ${POSTFWD_OPTS}" +command_background=true +command_user="${POSTFWD_USER}:${POSTFWD_GROUP}" +pidfile="/run/${RC_SVCNAME}.pid" +required_files="${POSTFWD_CONFIG}" diff --git a/mail-filter/postfwd/files/postfwd.service.3 b/mail-filter/postfwd/files/postfwd.service.3 new file mode 100644 index 000000000000..b1d3b45cce5c --- /dev/null +++ b/mail-filter/postfwd/files/postfwd.service.3 @@ -0,0 +1,11 @@ +[Unit] +Description=Postfix firewall daemon + +[Service] +Type=forking +ExecStart=/usr/sbin/postfwd3 --shortlog --summary=600 --cache=600 --cache-rbl-timeout=3600 --cleanup-requests=1200 --cleanup-rbls=1800 --cleanup-rates=1200 --daemon --file=/etc/postfwd.cf --interface=127.0.0.1 --port=10040 --pidfile=/var/run/postfwd.pid --user=postfwd --group=postfwd +ExecStop=/usr/sbin/postfwd3 --file=/etc/postfwd.cf --pidfile=/var/run/postfwd.pid --kill +ExecReload=/usr/sbin/postfwd3 --file=/etc/postfwd.cf --pidfile=/var/run/postfwd.pid --reload + +[Install] +WantedBy=multi-user.target |