summaryrefslogtreecommitdiffstats
path: root/network/postgrey/rc.postgrey
diff options
context:
space:
mode:
author Robby Workman <rworkman@slackbuilds.org>2020-08-07 23:10:55 -0500
committer Willy Sudiarto Raharjo <willysr@slackbuilds.org>2020-08-29 10:08:38 +0700
commit5b14a05112d7a55997bb45fa3707e47266ddc6ad (patch)
tree0cf41b6a9f199b4d5cf73feb1990fb2d92c5f8bc /network/postgrey/rc.postgrey
parentc5e55399a0f7319a4d121b903c771474e992ac4d (diff)
downloadslackbuilds-5b14a05112d7a55997bb45fa3707e47266ddc6ad.tar.gz
slackbuilds-5b14a05112d7a55997bb45fa3707e47266ddc6ad.tar.xz
network/postgrey: Updated for version 1.37.
Signed-off-by: Robby Workman <rworkman@slackbuilds.org> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'network/postgrey/rc.postgrey')
-rw-r--r--network/postgrey/rc.postgrey12
1 files changed, 5 insertions, 7 deletions
diff --git a/network/postgrey/rc.postgrey b/network/postgrey/rc.postgrey
index d763884bfa..5c33151085 100644
--- a/network/postgrey/rc.postgrey
+++ b/network/postgrey/rc.postgrey
@@ -1,17 +1,15 @@
#!/bin/bash
-PORT=10025
-PIDFILE=/var/run/postgrey/postgrey.pid
-USER=%POSTGREYUSR%
-GROUP=%POSTGREYGRP%
-HOST=mail.example.com
+. /etc/postgrey.conf || exit 1
postgrey_start() {
echo "Starting postgrey milter: /usr/bin/postgrey -d --inet=$PORT --pidfile=$PIDFILE --user=$USER --group=$GROUP --dbdir=/var/lib/postgrey --hostname=$HOST"
- mkdir -p /var/run/postgrey
+ mkdir -p $(dirname $PIDFILE)
+ chown ${USER}:${GROUP} $(dirname $PIDFILE)
+
/usr/bin/postgrey -d \
--inet=$PORT \
- --pidfile=/var/run/postgrey/postgrey.pid \
+ --pidfile=$PIDFILE \
--user=$USER --group=$GROUP \
--dbdir=/var/lib/postgrey \
--hostname=$HOST