summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc Schiffbauer <mschiff@gentoo.org>2019-03-27 15:15:48 +0100
committerMarc Schiffbauer <mschiff@gentoo.org>2019-03-27 15:20:49 +0100
commit448235c0d7b0d5adc2e49853885e20fd166aa2d3 (patch)
tree2c3ff342a6cdc50e95266be8af199752bd0a3338 /mail-filter/postfwd/files
parentnet-analyzer/netdata: Remove versions with HTML Injection Vulnerability (diff)
downloadgentoo-448235c0d7b0d5adc2e49853885e20fd166aa2d3.tar.gz
gentoo-448235c0d7b0d5adc2e49853885e20fd166aa2d3.tar.bz2
gentoo-448235c0d7b0d5adc2e49853885e20fd166aa2d3.zip
mail-filter/postfwd: added new version 2.00
Signed-off-by: Marc Schiffbauer <mschiff@gentoo.org> Package-Manager: Portage-2.3.51, Repoman-2.3.11
Diffstat (limited to 'mail-filter/postfwd/files')
-rw-r--r--mail-filter/postfwd/files/postfwd.conf.318
-rw-r--r--mail-filter/postfwd/files/postfwd.init.327
-rw-r--r--mail-filter/postfwd/files/postfwd.service.311
3 files changed, 56 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.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